From 87c38b8def9cc076f3cf95d46bc73046aa0ded4a Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 14 Dec 2023 18:04:14 +0100 Subject: [PATCH] Fix installing libssl on Alpine 3.19 (#852) --- install-php-extensions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index e0a74de..fe93408 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -671,7 +671,7 @@ buildRequiredPackageLists() { buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS" fi if test -z "$(apk info 2>/dev/null | grep -E ^libssl)"; then - buildRequiredPackageLists_libssl='libssl1.0' + buildRequiredPackageLists_libssl='^libssl[0-9]+(\.[0-9]+)*$' elif test -z "$(apk info 2>/dev/null | grep -E '^libressl.*-libtls')" && test -z "$(apk info 2>/dev/null | grep -E '^libressl.*-libssl')" && test -z "$(apk info 2>/dev/null | grep -E '^libretls-')"; then buildRequiredPackageLists_libssl=$(apk search -q libressl*-libtls) else @@ -1225,7 +1225,7 @@ buildRequiredPackageLists() { relay@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent lz4-libs zstd-libs" if test $DISTRO_MAJMIN_VERSION -ge 317; then - buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libssl1.1" + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent $buildRequiredPackageLists_libssl" fi ;; saxon@debian)