Skip to content

Commit 9b52c30

Browse files
committed
switch url
1 parent a68bd39 commit 9b52c30

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,20 @@ GLIBC_VERSION=2.34
5555
PREFIX=/tmp/glibc-install-$GLIBC_VERSION
5656
mkdir -p "$PREFIX/lib"
5757

58-
echo ">>> Downloading prebuilt glibc-$GLIBC_VERSION (CentOS Stream 9)"
59-
60-
# Pick a mirror with real packages
61-
RPM_URL="http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/glibc-${GLIBC_VERSION}-100.el9.x86_64.rpm"
62-
63-
# Download RPM
64-
curl -fsSL "$RPM_URL" -o /tmp/glibc.rpm
65-
66-
echo ">>> Extracting RPM..."
67-
if command -v bsdtar >/dev/null 2>&1; then
68-
bsdtar -xf /tmp/glibc.rpm
69-
elif command -v rpm2cpio >/dev/null 2>&1; then
70-
rpm2cpio /tmp/glibc.rpm | cpio -idmv
71-
else
72-
echo "Neither bsdtar nor rpm2cpio found, trying to fetch rpm2cpio.sh..."
73-
curl -fsSL https://raw.githubusercontent.com/rpm-software-management/rpm/main/scripts/rpm2cpio.sh -o /tmp/rpm2cpio.sh
74-
chmod +x /tmp/rpm2cpio.sh
75-
/tmp/rpm2cpio.sh /tmp/glibc.rpm | cpio -idmv
76-
fi
58+
echo '>>> Downloading prebuilt glibc-2.34 (EL9 family)'
59+
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"
62+
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..."
69+
bsdtar -xf /tmp/glibc.rpm
7770

78-
# Copy only runtime loader + libc
71+
# Copy out libraries
7972
cp ./usr/lib64/libc.so.6 \
8073
./usr/lib64/ld-2.34.so \
8174
./usr/lib64/ld-linux-x86-64.so.2 \

0 commit comments

Comments
 (0)