From baadbc2c9fce1ea7ce0150ba2723ef18ce87b46d Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 12 Apr 2023 10:56:41 +0200 Subject: [PATCH] Fix installing gRPC on Alpine 3.7/3.8 and Stretch (#726) --- install-php-extensions | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index e5ab625..663c950 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2742,6 +2742,15 @@ installRemoteModule() { if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then installRemoteModule_version=1.33.1 + else + case "$DISTRO_VERSION" in + debian@8) + installRemoteModule_version=1.46.3 + ;; + alpine@3.7 | alpine@3.8 | debian@9) # With newer version: "This package requires GCC 7 or higher" + installRemoteModule_version=1.52.1 + ;; + esac fi fi if test -z "$installRemoteModule_version" || test "$installRemoteModule_version" = 1.35.0; then @@ -2751,13 +2760,6 @@ installRemoteModule() { ;; esac fi - if test -z "$installRemoteModule_version"; then - case "$DISTRO_VERSION" in - debian@8) - installRemoteModule_version=1.46.3 - ;; - esac - fi ;; http) if test -z "$installRemoteModule_version"; then