From e65d33fa1454c8c9a587e5927957fff5b240a3ed Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 31 Jul 2019 15:13:18 +0200 Subject: [PATCH] Fix "Use of bundled libzip is deprecated and will be removed" --- install-php-extensions | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index f1d72d7..c3f5cef 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -257,7 +257,7 @@ getRequiredAptPackages () { getRequiredAptPackages_result="${getRequiredAptPackages_result} libyaml-dev" ;; zip) - getRequiredAptPackages_result="${getRequiredAptPackages_result} libzip-dev" + getRequiredAptPackages_result="${getRequiredAptPackages_result} cmake zlib1g-dev libbz2-dev libmbedtls-dev" ;; esac done @@ -374,6 +374,15 @@ installBundledModule () { sybase_ct) docker-php-ext-configure sybase_ct --with-sybase-ct=/usr ;; + zip) + libZipSrc="$(getPackageSource https://libzip.org/download/libzip-1.5.2.tar.gz)" + mkdir "$libZipSrc/build" + cd "$libZipSrc/build" + cmake .. + make install + cd - + docker-php-ext-configure zip --with-libzip + ;; esac docker-php-ext-install -j$(nproc) "${2}" }