File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -57,22 +57,17 @@ mkdir -p "$PREFIX/lib"
5757
5858echo ' >>> 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
6964bsdtar -xf /tmp/glibc.rpm
7065
71- # Copy out libraries
66+ mkdir -p " $PREFIX /lib "
7267cp ./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
7772echo " >>> Staged glibc $GLIBC_VERSION to $PREFIX /lib"
7873ls -l " $PREFIX /lib"
You can’t perform that action at this time.
0 commit comments