From cb0c6405d5e86959a07f093aea91ebb50d7cc1c4 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Fri, 2 Aug 2024 14:12:53 -0500 Subject: setup-abuild: multiple improvements and fixes. * Instruct 'curl' to follow redirects (required for GitHub links) * Update OpenSSL with a TEMPORARY WORKAROUND (Ref. #6) * Remove artifact from earlier iteration which substituted 'ar' for a tuple-prefixed version. Fixes #7. * Add 'ZSTD=no' to the 'apk-tools' configuration, which appeared as a build error due to missing . We do not need it. --- setup-abuild | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/setup-abuild b/setup-abuild index 46122c8..1e8af8d 100755 --- a/setup-abuild +++ b/setup-abuild @@ -5,7 +5,6 @@ DEST=/usr/local; git config --global http.sslCAInfo "${CURL_CA_BUNDLE}"; - mkdir -p "${DEST}"; cd "${DEST}"; # this directory will already exist if correct @@ -20,7 +19,7 @@ vmus=1.2.3; test ! -f ._${nmus}-${vmus} && \ ( test ! -d ${nmus}-${vmus} \ - && curl -s https://musl.libc.org/releases/${nmus}-${vmus}.tar.gz \ + && curl -sL https://musl.libc.org/releases/${nmus}-${vmus}.tar.gz \ | tar -xzf - \ ; cd ${nmus}-${vmus}; @@ -41,11 +40,14 @@ rm -fr ${nmus}-${vmus}; # OpenSSL # nssl=openssl; -vssl=1.1.1v; +#vssl=1.1.1v; +vssl=1.1.1w; test ! -f ._${nssl}-${vssl} && \ ( +#https://www.openssl.org/source/${nssl}-${vssl}.tar.gz +temp=https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz; test ! -d ${nssl}-${vssl} \ - && curl -s https://www.openssl.org/source/${nssl}-${vssl}.tar.gz \ + && curl -sL ${temp} \ | tar -xzf - \ ; cd ${nssl}-${vssl}; @@ -66,11 +68,11 @@ rm -fr ${nssl}-${vssl}; # zlib # nzlb=zlib; -vzlb=1.3; +vzlb=1.3.1; test ! -f ._${nzlb}-${vzlb} && \ ( test ! -d ${nzlb}-${vzlb} \ - && curl -s https://www.zlib.net/${nzlb}-${vzlb}.tar.gz \ + && curl -sL https://www.zlib.net/${nzlb}-${vzlb}.tar.gz \ | tar -xzf - \ ; cd ${nzlb}-${vzlb}; @@ -98,7 +100,7 @@ test ! -f ._${nbld}-${vbld} && \ ; cd abuild-${vbld}; git checkout ${vbld}; - while read k; do curl -s ${k} | patch -p1 || true; done <