Skip to content

Commit

Permalink
Fix installing libssl on old Alpine versions (#902)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
transistive and mlocati committed Apr 3, 2024
1 parent dab1adb commit 749afd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ buildRequiredPackageLists() {
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS"
fi
if test -z "$(apk info 2>/dev/null | grep -E ^libssl)"; then
buildRequiredPackageLists_libssl='^libssl[0-9]+(\.[0-9]+)*$'
buildRequiredPackageLists_libssl="$(apk search | grep -E '^libssl[0-9]' | head -1 | cut -d- -f1)"
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
Expand Down

0 comments on commit 749afd0

Please sign in to comment.