Skip to content

Commit fd00700

Browse files
committed
switch url
1 parent 9b52c30 commit fd00700

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,17 @@ mkdir -p "$PREFIX/lib"
5757

5858
echo '>>> Downloading prebuilt glibc-2.34 (EL9 family)'
5959

60-
# Try Rocky Linux mirror first
61-
RPM_URL="http://dl.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/g/glibc-2.34-100.el9.x86_64.rpm"
60+
RPM_URL=http://dl.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/g/glibc-2.34-168.el9_6.23.x86_64.rpm
61+
curl -fsSL "$RPM_URL" -o /tmp/glibc.rpm
6262

63-
curl -fsSL "$RPM_URL" -o /tmp/glibc.rpm || {
64-
echo "Download failed: $RPM_URL"
65-
exit 1
66-
}
67-
68-
echo ">>> Extracting RPM with bsdtar..."
63+
# safer than rpm2cpio: use bsdtar
6964
bsdtar -xf /tmp/glibc.rpm
7065

71-
# Copy out libraries
66+
mkdir -p "$PREFIX/lib"
7267
cp ./usr/lib64/libc.so.6 \
7368
./usr/lib64/ld-2.34.so \
7469
./usr/lib64/ld-linux-x86-64.so.2 \
75-
"$PREFIX/lib"
70+
"$PREFIX/lib/"
7671

7772
echo ">>> Staged glibc $GLIBC_VERSION to $PREFIX/lib"
7873
ls -l "$PREFIX/lib"

0 commit comments

Comments
 (0)