Skip to content

Commit 9da8052

Browse files
committed
fix lib path
1 parent 413390a commit 9da8052

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ RPM_URL="https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/35
6060
# Download
6161
curl -fsSL "$RPM_URL" -o /tmp/glibc.rpm
6262

63-
# Extract directly
63+
# Extract directly with bsdtar
6464
echo ">>> Extracting RPM with bsdtar"
6565
bsdtar -C /tmp -xf /tmp/glibc.rpm
6666

67-
# Copy what we need
68-
cp -av /lib64/libc.so.6 /lib64/ld-linux-x86-64.so.2 "$PREFIX/lib/"
67+
# Copy needed files from the extracted tree (not host system!)
68+
cp -av /tmp/lib64/libc.so.6 /tmp/lib64/ld-linux-x86-64.so.2 "$PREFIX/lib/" || true
6969

70-
# Check staged contents
70+
# Check what we staged
7171
echo ">>> Contents staged in $PREFIX/lib"
7272
ls -l "$PREFIX/lib"
7373

74-
# Verify
74+
# Verify version
7575
"$PREFIX/lib/libc.so.6" --version || true

0 commit comments

Comments
 (0)