File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 5252set -euo pipefail
5353
5454GLIBC_VERSION=2.34
55- PREFIX=/tmp/glibc-install-$GLIBC_VERSION
55+ PREFIX=/tmp/glibc-install-2.34
5656mkdir -p " $PREFIX /lib"
5757
58- echo ' >>> Downloading prebuilt glibc-2.34 (EL9 family)'
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
5961
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
62+ bsdtar -xf /tmp/glibc-libs.rpm
6263
63- # safer than rpm2cpio: use bsdtar
64- bsdtar -xf /tmp/glibc.rpm
65-
66- mkdir -p " $PREFIX /lib"
6764cp ./usr/lib64/libc.so.6 \
6865 ./usr/lib64/ld-2.34.so \
6966 ./usr/lib64/ld-linux-x86-64.so.2 \
70- " $PREFIX /lib/"
67+ " $PREFIX /lib/
7168
7269echo " >>> Staged glibc $GLIBC_VERSION to $PREFIX /lib"
7370ls -l " $PREFIX /lib"
You can’t perform that action at this time.
0 commit comments