From de6acd466764b8b9000574bba6bc6a1bc0dd6e03 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 11 Dec 2019 15:58:47 +0100 Subject: [PATCH] Continue implementing Alpine support Test: sybase_ct, sysvmsg, sysvsem, sysvshm, tidy, timezonedb, -STOP- --- install-php-extensions | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index c90729b..310d82f 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -448,12 +448,25 @@ buildRequiredPackageLists () { ssh2@debian) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssh2-1-dev" ;; - sybase_ct@debian) + sybase_ct@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev" ;; + sybase_ct@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libct4" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev" + ;; + tidy@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent tidyhtml-libs" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile tidyhtml-dev" + ;; tidy@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libtidy5" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libtidy-dev" ;; + timezonedb@alpine) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS" + ;; uuid@debian) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile uuid-dev" ;; @@ -659,6 +672,16 @@ installBundledModule () { sybase_ct) docker-php-ext-configure sybase_ct --with-sybase-ct=/usr ;; + tidy) + case "$(getDistro)" in + alpine) + if ! test -f /usr/include/buffio.h; then + ln -s /usr/include/tidybuffio.h /usr/include/buffio.h + UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/buffio.h" + fi + ;; + esac + ;; zip) libZipSrc="$(getPackageSource https://libzip.org/download/libzip-1.5.2.tar.gz)" mkdir "$libZipSrc/build"