Continue implementing Alpine support

Test: interbase
pull/56/head
Michele Locati 2019-12-11 11:40:13 +01:00
parent f164c691cd
commit ef8f9f622f
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 28 additions and 6 deletions

View File

@ -196,7 +196,7 @@ buildRequiredPackageLists () {
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librabbitmq-dev libssh-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librabbitmq-dev libssh-dev"
;; ;;
apcu@alpine) apcu@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile autoconf g++ make" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS"
;; ;;
bz2@alpine) bz2@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libbz2" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libbz2"
@ -206,7 +206,7 @@ buildRequiredPackageLists () {
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libbz2-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libbz2-dev"
;; ;;
cmark@alpine) cmark@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake make g++ autoconf" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS"
;; ;;
cmark@debian) cmark@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake"
@ -253,11 +253,11 @@ buildRequiredPackageLists () {
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgmp-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgmp-dev"
;; ;;
igbinary@alpine) igbinary@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile autoconf g++ make" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS"
;; ;;
imagick@alpine) imagick@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent imagemagick" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent imagemagick"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile imagemagick-dev autoconf g++ make re2c" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS imagemagick-dev"
;; ;;
imagick@debian) imagick@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmagickwand-6.q16-?" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmagickwand-6.q16-?"
@ -274,8 +274,11 @@ buildRequiredPackageLists () {
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libc-client2007e" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libc-client2007e"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libc-client-dev libkrb5-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libc-client-dev libkrb5-dev"
;; ;;
interbase@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS icu-dev ncurses-dev"
;;
interbase@debian) interbase@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfbclient2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util"
;; ;;
intl@debian) intl@debian)
@ -492,6 +495,25 @@ installBundledModule () {
imap) imap)
PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl
;; ;;
interbase)
case "$(getDistro)" in
alpine)
if ! test -d /tmp/src/firebird; then
mv "$(getPackageSource https://github.com/FirebirdSQL/firebird/releases/download/R2_5_9/Firebird-2.5.9.27139-0.tar.bz2)" /tmp/src/firebird
cd /tmp/src/firebird
#Patch rwlock.h (this has been fixed in later release of firebird 3.x)
sed -i '194s/.*/#if 0/' src/common/classes/rwlock.h
set +x
./configure --with-system-icu
make btyacc_binary gpre_boot libfbstatic libfbclient
cp gen/firebird/lib/libfbclient.so /usr/lib/
ln -s /usr/lib/libfbclient.so /usr/lib/libfbclient.so.2
cd -
fi
CFLAGS='-I/tmp/src/firebird/src/jrd -I/tmp/src/firebird/src/include -I/tmp/src/firebird/src/include/gen' docker-php-ext-configure $2
;;
esac
;;
ldap) ldap)
docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine) docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine)
;; ;;
@ -553,7 +575,7 @@ getPackageSource () {
curl -L -s -S -o "$getPackageSource_tempFile" "$1" curl -L -s -S -o "$getPackageSource_tempFile" "$1"
getPackageSource_tempDir=$(mktemp -p /tmp/src -d) getPackageSource_tempDir=$(mktemp -p /tmp/src -d)
cd "$getPackageSource_tempDir" cd "$getPackageSource_tempDir"
tar -xzf "$getPackageSource_tempFile" tar -xzf "$getPackageSource_tempFile" 2>/dev/null || tar -xf "$getPackageSource_tempFile"
cd - >/dev/null cd - >/dev/null
unlink "$getPackageSource_tempFile" unlink "$getPackageSource_tempFile"
getPackageSource_outDir='' getPackageSource_outDir=''