Skip to content

Commit 749afd0

Browse files
transistivemlocati
andauthored
Fix installing libssl on old Alpine versions (#902)
* install ^libssl[0-9]+(\.[0-9]+)*$ if it exists in apk info * use pattern matching that works in older versions of php alpine too * Improve way to retrieve libssl on Alpine Test: event, imap, mongo, mongodb, openswoole, relay, stomp, swoole --------- Co-authored-by: Michele Locati <michele@locati.it>
1 parent dab1adb commit 749afd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-php-extensions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ buildRequiredPackageLists() {
679679
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS"
680680
fi
681681
if test -z "$(apk info 2>/dev/null | grep -E ^libssl)"; then
682-
buildRequiredPackageLists_libssl='^libssl[0-9]+(\.[0-9]+)*$'
682+
buildRequiredPackageLists_libssl="$(apk search | grep -E '^libssl[0-9]' | head -1 | cut -d- -f1)"
683683
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
684684
buildRequiredPackageLists_libssl=$(apk search -q libressl*-libtls)
685685
else

0 commit comments

Comments
 (0)