Skip to content

Commit 4435b25

Browse files
committed
switch url
1 parent 290de70 commit 4435b25

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,28 @@ fi
4848
# ----------------------------
4949
# Stage prebuilt glibc 2.34
5050
# ----------------------------
51-
5251
set -euo pipefail
5352

5453
GLIBC_VERSION=2.34
55-
PREFIX=/tmp/glibc-install-2.34
54+
PREFIX=/tmp/glibc-install-$GLIBC_VERSION
5655
mkdir -p "$PREFIX/lib"
5756

58-
echo '>>> Downloading prebuilt glibc-libs-2.34 (EL9 family)'
59-
RPM_URL=https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/35/Everything/x86_64/os/Packages/g/glibc-2.34-7.fc35.x86_64.rpm
60-
curl -fsSL "$RPM_URL" -o /tmp/glibc-libs.rpm
57+
echo ">>> Downloading prebuilt glibc-$GLIBC_VERSION (Fedora 35 RPM)"
58+
RPM_URL="https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/35/Everything/x86_64/os/Packages/g/glibc-2.34-7.fc35.x86_64.rpm"
59+
60+
# Download
61+
curl -fsSL "$RPM_URL" -o /tmp/glibc.rpm
6162

62-
bsdtar -xf /tmp/glibc-libs.rpm
63+
# Extract directly
64+
echo ">>> Extracting RPM with bsdtar"
65+
bsdtar -C /tmp -xf /tmp/glibc.rpm
6366

64-
cp ./usr/lib64/libc.so.6 \
65-
./usr/lib64/ld-2.34.so \
66-
./usr/lib64/ld-linux-x86-64.so.2 \
67-
"$PREFIX/lib/
67+
# Copy what we need
68+
cp -av /lib64/libc.so.6 /lib64/ld-linux-x86-64.so.2 "$PREFIX/lib/"
6869

69-
echo ">>> Staged glibc $GLIBC_VERSION to $PREFIX/lib"
70+
# Check staged contents
71+
echo ">>> Contents staged in $PREFIX/lib"
7072
ls -l "$PREFIX/lib"
7173

7274
# Verify
7375
"$PREFIX/lib/libc.so.6" --version || true
74-
"$PREFIX/lib/ld-2.34.so" --version || true

0 commit comments

Comments
 (0)