mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 21:50:59 -05:00
build: install zlib from alpine packages (#5317)
This commit is contained in:
parent
e0fc164bba
commit
1eea6127e1
1 changed files with 1 additions and 19 deletions
|
@ -2,19 +2,6 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
case $TARGETARCH in
|
||||
amd64)
|
||||
target=x86_64
|
||||
;;
|
||||
arm64)
|
||||
target=arm64
|
||||
;;
|
||||
*)
|
||||
echo "$TARGETARCH is not supported"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
url=$(
|
||||
set -euo pipefail
|
||||
curl -s \
|
||||
|
@ -31,14 +18,9 @@ apk add --no-cache --force-overwrite "glibc-${GLIBC_VERSION}.apk"
|
|||
rm "glibc-${GLIBC_VERSION}.apk"
|
||||
|
||||
# Install zlib
|
||||
mkdir /tmp/libz
|
||||
|
||||
apk add --no-cache --virtual .glibc-build-deps \
|
||||
tar \
|
||||
zlib \
|
||||
zstd
|
||||
|
||||
curl --retry 5 --retry-delay 5 -sL https://www.archlinux.org/packages/core/${target}/zlib/download | tar -x --zstd -C /tmp/libz
|
||||
mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib
|
||||
rm -rf /tmp/libz
|
||||
|
||||
apk del --no-network --purge .glibc-build-deps
|
||||
|
|
Loading…
Reference in a new issue