2018-04-11 17:39:10 +02:00
#!/bin/sh
# This script wraps docker-php-ext-install, properly configuring the system.
#
# Copyright (c) Michele Locati, 2018
#
2018-04-12 12:00:38 +02:00
# Source: https://github.com/mlocati/docker-php-extension-installer
#
# License: MIT - see https://github.com/mlocati/docker-php-extension-installer/blob/master/LICENSE
2018-04-11 17:39:10 +02:00
# Let's set a sane environment
set -o errexit
set -o nounset
2020-09-21 15:38:20 +02:00
if ! which docker-php-ext-configure >/dev/null || ! which docker-php-ext-enable >/dev/null || ! which docker-php-ext-install >/dev/null || ! which docker-php-source >/dev/null; then
printf 'The script %s is meant to be used with official Docker PHP Images - https://hub.docker.com/_/php\n' "$0" >&2
exit 1
fi
2018-04-11 17:39:10 +02:00
# Reset the Internal Field Separator
2019-12-20 16:52:00 +01:00
resetIFS() {
2018-04-11 17:39:10 +02:00
IFS='
'
}
2020-02-28 11:09:15 +01:00
# Set these variables:
# - DISTRO containing distribution name (eg 'alpine', 'debian')
# - DISTO_VERSION containing distribution name and its version(eg 'alpine@3.10', 'debian@9')
setDistro() {
if ! test -r /etc/os-release; then
printf 'The file /etc/os-release is not readable\n' >&2
exit 1
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
fi
2020-02-28 11:09:15 +01:00
DISTRO="$(cat /etc/os-release | grep -E ^ID= | cut -d = -f 2)"
2020-09-18 20:02:07 +02:00
DISTRO_VERSION_NUMBER="$(cat /etc/os-release | grep -E ^VERSION_ID= | cut -d = -f 2 | cut -d '"' -f 2 | cut -d . -f 1,2)"
DISTRO_VERSION="$(printf '%s@%s' $DISTRO $DISTRO_VERSION_NUMBER)"
DISTRO_MAJMIN_VERSION="$(echo "$DISTRO_VERSION_NUMBER" | awk -F. '{print $1*100+$2}')"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
}
2020-02-28 11:09:15 +01:00
# Set the PHP_MAJMIN_VERSION variable containing the PHP Major-Minor version as an integer value, in format MMmm (example: 506 for PHP 5.6.15)
setPHPMajorMinor() {
PHP_MAJMIN_VERSION=$(php-config --version | awk -F. '{print $1*100+$2}')
2018-04-11 17:39:10 +02:00
}
# Get the normalized list of already installed PHP modules
#
# Output:
# Space-separated list of module handles
2019-12-20 16:52:00 +01:00
getPHPInstalledModules() {
2018-04-11 17:39:10 +02:00
getPHPInstalledModules_result=''
IFS='
'
2019-10-07 17:54:18 +02:00
for getPHPInstalledModules_module in $(php -m); do
2018-04-11 17:39:10 +02:00
getPHPInstalledModules_moduleNormalized=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
case "$getPHPInstalledModules_module" in
2019-12-20 16:52:00 +01:00
\[PHP\ Modules\]) ;;
2018-04-11 17:39:10 +02:00
\[Zend\ Modules\])
break
;;
2019-12-20 16:52:00 +01:00
Core | PDO | PDO_* | Phar | Reflection | SimpleXML | SPL | SQLite | Xdebug)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
getPHPInstalledModules_moduleNormalized=$(LC_CTYPE=C printf '%s' "$getPHPInstalledModules_module" | tr '[:upper:]' '[:lower:]')
2018-04-11 17:39:10 +02:00
;;
Zend\ OPcache)
getPHPInstalledModules_moduleNormalized='opcache'
;;
2019-12-20 16:52:00 +01:00
*\ * | *A* | *B* | *C* | *D* | *E* | *F* | *G* | *H* | *I* | *J* | *K* | *L* | *M* | *N* | *O* | *P* | *Q* | *R* | *S* | *T* | *U* | *V* | *W* | *X* | *Y* | *Z*)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf '### WARNING Unrecognized module name: %s ###\n' "$getPHPInstalledModules_module" >&2
2018-04-11 17:39:10 +02:00
;;
*)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
getPHPInstalledModules_moduleNormalized="$getPHPInstalledModules_module"
2018-04-11 17:39:10 +02:00
;;
esac
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test -n "$getPHPInstalledModules_moduleNormalized"; then
if ! stringInList "$getPHPInstalledModules_moduleNormalized" "$getPHPInstalledModules_result"; then
getPHPInstalledModules_result="$getPHPInstalledModules_result $getPHPInstalledModules_moduleNormalized"
2018-04-11 17:39:10 +02:00
fi
fi
done
resetIFS
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf '%s' "${getPHPInstalledModules_result# }"
2018-04-11 17:39:10 +02:00
}
# Get the handles of the modules to be installed
#
# Arguments:
# $@: all module handles
2018-06-28 09:46:14 +02:00
#
# Set:
# PHP_MODULES_TO_INSTALL
#
2018-04-11 17:39:10 +02:00
# Output:
2018-06-28 09:46:14 +02:00
# Nothing
2019-12-20 16:52:00 +01:00
processCommandArguments() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
processCommandArguments_alreadyInstalled="$(getPHPInstalledModules)"
processCommandArguments_endArgs=0
2018-06-28 09:46:14 +02:00
PHP_MODULES_TO_INSTALL=''
2019-10-07 17:54:18 +02:00
while :; do
if test $# -lt 1; then
2018-04-11 17:39:10 +02:00
break
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
processCommandArguments_skip=0
if test $processCommandArguments_endArgs -eq 0; then
case "$1" in
2018-06-28 10:01:51 +02:00
--cleanup)
2019-12-20 15:55:26 +01:00
printf '### WARNING the %s option is deprecated (we always cleanup everything) ###\n' "$1" >&2
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
processCommandArguments_skip=1
2018-06-28 09:46:14 +02:00
;;
--)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
processCommandArguments_skip=1
processCommandArguments_endArgs=1
2018-06-28 09:46:14 +02:00
;;
-*)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf 'Unrecognized option: %s\n' "$1" >&2
2018-06-28 09:46:14 +02:00
exit 1
;;
esac
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test $processCommandArguments_skip -eq 0; then
2019-12-24 12:53:48 +01:00
case "$1" in
pecl_http)
processCommandArguments_name='http'
;;
*)
processCommandArguments_name=$1
;;
esac
if stringInList "$processCommandArguments_name" "$PHP_MODULES_TO_INSTALL"; then
printf '### WARNING Duplicated module name specified: %s ###\n' "$processCommandArguments_name" >&2
elif stringInList "$processCommandArguments_name" "$processCommandArguments_alreadyInstalled"; then
printf '### WARNING Module already installed: %s ###\n' "$processCommandArguments_name" >&2
2018-06-28 09:46:14 +02:00
else
2019-12-24 12:53:48 +01:00
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL $processCommandArguments_name"
2018-06-28 09:46:14 +02:00
fi
2018-04-11 17:39:10 +02:00
fi
shift
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL# }"
2018-04-11 17:39:10 +02:00
}
2019-10-11 16:01:21 +02:00
# Sort the modules to be installed, in order to fix dependencies
#
# Update:
# PHP_MODULES_TO_INSTALL
#
# Output:
# Nothing
2019-12-20 16:52:00 +01:00
sortModulesToInstall() {
2020-05-24 18:40:31 +02:00
if stringInList 'apcu_bc' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'apcu_bc' "$PHP_MODULES_TO_INSTALL")"
sortModulesToInstall_alreadyInstalled="$(getPHPInstalledModules)"
if ! stringInList 'apcu' "$PHP_MODULES_TO_INSTALL" && ! stringInList 'apcu' "$sortModulesToInstall_alreadyInstalled"; then
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL apcu"
fi
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL apcu_bc"
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if stringInList 'igbinary' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'igbinary' "$PHP_MODULES_TO_INSTALL")"
2019-10-11 16:01:21 +02:00
if test -z "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL='igbinary'
else
PHP_MODULES_TO_INSTALL="igbinary $PHP_MODULES_TO_INSTALL"
fi
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if stringInList 'msgpack' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'msgpack' "$PHP_MODULES_TO_INSTALL")"
2019-10-11 16:01:21 +02:00
if test -z "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL='msgpack'
else
PHP_MODULES_TO_INSTALL="msgpack $PHP_MODULES_TO_INSTALL"
fi
fi
2019-12-24 12:53:48 +01:00
if stringInList 'http' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'http' "$PHP_MODULES_TO_INSTALL")"
sortModulesToInstall_alreadyInstalled="$(getPHPInstalledModules)"
if ! stringInList 'propro' "$PHP_MODULES_TO_INSTALL" && ! stringInList 'propro' "$sortModulesToInstall_alreadyInstalled"; then
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL propro"
fi
if ! stringInList 'raphf' "$PHP_MODULES_TO_INSTALL" && ! stringInList 'raphf' "$sortModulesToInstall_alreadyInstalled"; then
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL raphf"
fi
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL http"
fi
2019-10-11 16:01:21 +02:00
}
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# Get the required APT/APK packages for a specific PHP version and for the list of module handles
2018-04-11 17:39:10 +02:00
#
# Arguments:
# $@: the PHP module handles
#
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# Set:
# PACKAGES_PERSISTENT
# PACKAGES_VOLATILE
2020-01-23 14:50:55 +01:00
# PACKAGES_PREVIOUS
2019-12-20 16:52:00 +01:00
buildRequiredPackageLists() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_persistent=''
buildRequiredPackageLists_volatile=''
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2020-02-15 21:40:54 +01:00
alpine)
apk update
;;
esac
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2019-12-23 10:31:24 +01:00
alpine@*)
2019-12-19 16:17:29 +01:00
buildRequiredPackageLists_volatile="$PHPIZE_DEPS"
2019-12-20 15:28:39 +01:00
if test -z "$(apk info 2>/dev/null | grep -E ^libssl)"; then
buildRequiredPackageLists_libssl='libssl1.0'
elif test -z "$(apk info 2>/dev/null | grep -E '^libressl.*-libtls')"; then
2020-02-14 14:38:07 +01:00
buildRequiredPackageLists_libssl=$(apk search -q libressl*-libtls)
2019-12-20 15:28:39 +01:00
else
buildRequiredPackageLists_libssl=''
fi
2019-12-19 16:17:29 +01:00
;;
2019-12-23 10:31:24 +01:00
debian@9)
2019-12-23 12:45:53 +01:00
buildRequiredPackageLists_libssldev='libssl1.0-dev'
2019-12-23 10:31:24 +01:00
;;
debian@*)
buildRequiredPackageLists_libssldev='libssl([0-9]+(\.[0-9]+)*)?-dev$'
2019-12-19 16:17:29 +01:00
;;
esac
2019-10-07 17:54:18 +02:00
while :; do
2020-07-27 14:30:14 +02:00
if test $# -lt 1; then
2018-04-11 17:39:10 +02:00
break
fi
2020-02-28 11:09:15 +01:00
case "$1@$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
amqp@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent rabbitmq-c"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile rabbitmq-c-dev"
2018-10-16 23:06:22 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
amqp@debian)
2019-12-20 15:01:47 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librabbitmq[0-9]"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librabbitmq-dev libssh-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
bz2@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libbz2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile bzip2-dev"
;;
bz2@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libbz2-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
cmark@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
;;
cmark@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake"
;;
2020-02-04 09:54:02 +01:00
decimal@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmpdec2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmpdec-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
enchant@alpine)
2020-09-18 20:02:07 +02:00
if test $DISTRO_MAJMIN_VERSION -ge 312; then
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent enchant2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile enchant2-dev"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent enchant"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile enchant-dev"
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
;;
enchant@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libenchant1c2a"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libenchant-dev"
;;
2020-02-17 13:29:17 +01:00
ffi@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libffi"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libffi-dev"
;;
ffi@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libffi-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
gd@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetype libjpeg-turbo libpng libxpm"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetype-dev libjpeg-turbo-dev libpng-dev libxpm-dev"
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libvpx"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libvpx-dev"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libwebp"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libwebp-dev"
fi
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
gd@debian)
2019-12-23 09:12:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfreetype6 libjpeg62-turbo libpng[0-9]+-[0-9]+$ libxpm4"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libfreetype6-dev libjpeg62-turbo-dev libpng-dev libxpm-dev"
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-23 09:12:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libvpx[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libvpx-dev"
2018-04-11 17:39:10 +02:00
else
2019-12-23 09:12:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libwebp[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libwebp-dev"
2018-04-11 17:39:10 +02:00
fi
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
gettext@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libintl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gettext-dev"
2018-04-11 17:39:10 +02:00
;;
2020-01-07 11:24:42 +01:00
gmagick@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent graphicsmagick"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile graphicsmagick-dev libtool"
;;
gmagick@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libgraphicsmagick(-q16-)?[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgraphicsmagick1-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
gmp@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent gmp"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gmp-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
gmp@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgmp-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-16 14:47:29 +01:00
grpc@alpine)
2019-12-16 17:04:01 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++"
2020-02-15 21:37:12 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev linux-headers"
2019-12-16 14:47:29 +01:00
;;
grpc@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev"
;;
2019-12-24 12:53:48 +01:00
http@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libevent"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev curl-dev libevent-dev"
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-24 12:53:48 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libidn"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libidn-dev"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs libidn"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev libidn-dev"
fi
;;
http@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libcurl3-gnutls libevent[0-9\.\-]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev libgnutls28-dev libcurl4-gnutls-dev libevent-dev"
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-24 12:53:48 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libidn1[0-9+]-dev$"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libicu[0-9]+$ libidn2-[0-9+]$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev libidn2-[0-9+]-dev$"
fi
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
imagick@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent imagemagick"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile imagemagick-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
imagick@debian)
2019-12-23 15:12:18 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmagickwand-6.q16-[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmagickwand-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
imap@alpine)
2019-12-20 15:28:39 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent c-client $buildRequiredPackageLists_libssl"
2019-12-19 14:03:33 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile krb5-dev imap-dev libressl-dev"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
;;
imap@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libc-client2007e"
2020-01-22 13:40:40 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libkrb5-dev"
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2020-01-22 13:40:40 +01:00
debian@9)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev comerr-dev krb5-multidev libc-client2007e libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-8 libpam0g-dev libssl-doc mlock"
;;
*)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libc-client-dev"
;;
esac
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
;;
2019-12-11 11:40:13 +01:00
interbase@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev ncurses-dev"
2019-12-11 11:40:13 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
interbase@debian)
2019-12-11 11:40:13 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfbclient2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util"
;;
2019-12-11 12:29:48 +01:00
intl@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
intl@debian)
2019-12-23 09:22:03 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libicu[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev"
;;
2019-12-11 12:29:48 +01:00
ldap@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libldap"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile openldap-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
ldap@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libldap2-dev"
;;
2019-12-11 12:29:48 +01:00
mcrypt@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmcrypt"
2019-12-11 12:29:48 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmcrypt-dev"
;;
mcrypt@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmcrypt4"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmcrypt-dev"
;;
memcache@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev"
2019-12-11 12:29:48 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
memcache@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 12:29:48 +01:00
memcached@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmemcached-libs"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmemcached-dev zlib-dev"
2019-12-11 12:29:48 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
memcached@debian)
2019-12-11 12:29:48 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmemcachedutil2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmemcached-dev zlib1g-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-12 12:41:49 +01:00
mongo@alpine)
2019-12-20 15:28:39 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsasl $buildRequiredPackageLists_libssl"
2019-12-19 14:03:33 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libressl-dev cyrus-sasl-dev"
2019-12-12 12:41:49 +01:00
;;
mongo@debian)
2019-12-19 16:17:29 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev libsasl2-dev"
2019-12-12 12:41:49 +01:00
;;
mongodb@alpine)
2019-12-20 15:28:39 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs libsasl $buildRequiredPackageLists_libssl snappy"
2019-12-19 14:03:33 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev cyrus-sasl-dev snappy-dev libressl-dev zlib-dev"
2019-12-12 12:41:49 +01:00
;;
mongodb@debian)
2019-12-23 10:31:24 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsnappy[0-9]+(v[0-9]+)?$ libicu[0-9]+$"
2019-12-19 16:17:29 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev libsasl2-dev libsnappy-dev $buildRequiredPackageLists_libssldev zlib1g-dev"
2019-12-12 12:41:49 +01:00
;;
2019-12-11 12:57:53 +01:00
mssql@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
mssql@debian)
2019-12-11 12:57:53 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsybdb5"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
2018-04-11 17:39:10 +02:00
;;
2020-02-16 18:28:30 +01:00
oauth@alpine)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-16 18:28:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile pcre-dev"
fi
;;
oauth@debian)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-16 18:28:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpcre3-dev"
fi
;;
2019-12-11 13:57:45 +01:00
odbc@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2019-12-11 13:57:45 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
odbc@debian)
2019-12-11 13:57:45 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libodbc1"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 14:23:15 +01:00
pdo_dblib@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
pdo_dblib@debian)
2019-12-11 14:23:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsybdb5"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 14:23:15 +01:00
pdo_firebird@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev ncurses-dev"
2019-12-11 14:23:15 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
pdo_firebird@debian)
2019-12-11 14:23:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfbclient2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 14:23:15 +01:00
pdo_odbc@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
pdo_odbc@debian)
2019-12-11 14:23:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libodbc1"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 14:23:15 +01:00
pdo_pgsql@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile postgresql-dev"
;;
pdo_pgsql@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libpq5"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpq-dev"
;;
pdo_sqlsrv@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ unixodbc"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2019-12-11 14:23:15 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
pdo_sqlsrv@debian)
2019-12-11 14:23:15 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libodbc1 odbcinst"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 15:04:19 +01:00
pgsql@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile postgresql-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
pgsql@debian)
2019-12-11 15:04:19 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libpq5"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpq-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 15:04:19 +01:00
pspell@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent aspell-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile aspell-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
pspell@debian)
2019-12-11 15:04:19 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libaspell15"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpspell-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-18 15:13:56 +01:00
rdkafka@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librdkafka"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librdkafka-dev"
2019-12-18 15:13:56 +01:00
;;
rdkafka@debian)
2019-12-23 11:15:29 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librdkafka\+*[0-9]*$"
2019-12-18 15:13:56 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librdkafka-dev"
;;
2019-12-11 15:04:19 +01:00
recode@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent recode"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile recode-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
recode@debian)
2019-12-11 15:04:19 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librecode0"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librecode-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-23 18:09:22 +01:00
redis@alpine)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2019-12-23 18:09:22 +01:00
alpine@3.7)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent zstd"
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent zstd-libs"
;;
esac
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zstd-dev"
fi
;;
redis@debian)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2019-12-23 18:09:22 +01:00
debian@8)
## There's no APT package for libzstd
;;
debian@9)
## libzstd is too old (available: 1.1.2, required: 1.3.0+)
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzstd[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libzstd-dev"
;;
esac
fi
;;
2020-02-26 11:18:28 +01:00
snuffleupagus@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent pcre"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile pcre-dev"
;;
2020-02-27 21:51:55 +01:00
snuffleupagus@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpcre3-dev"
;;
2019-12-11 15:38:27 +01:00
snmp@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent net-snmp-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile net-snmp-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
snmp@debian)
2019-12-11 15:38:27 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent snmp"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libsnmp-dev"
;;
soap@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
soap@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 15:38:27 +01:00
solr@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev libxml2-dev"
2019-12-11 15:38:27 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
solr@debian)
2019-12-11 15:38:27 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libcurl3-gnutls"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libcurl4-gnutls-dev libxml2-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 15:38:27 +01:00
sqlsrv@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ unixodbc"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2019-12-11 15:38:27 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
sqlsrv@debian)
2019-12-11 15:38:27 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 17:39:10 +02:00
;;
2019-12-11 15:38:27 +01:00
ssh2@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libssh2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssh2-dev"
2019-12-11 15:38:27 +01:00
;;
ssh2@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssh2-1-dev"
;;
2019-12-11 15:58:47 +01:00
sybase_ct@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
sybase_ct@debian)
2019-12-11 15:58:47 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libct4"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
2018-04-11 17:39:10 +02:00
;;
2020-03-02 10:43:25 +01:00
tdlib@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ $buildRequiredPackageLists_libssl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git cmake gperf zlib-dev libressl-dev linux-headers readline-dev"
;;
tdlib@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git cmake gperf zlib1g-dev $buildRequiredPackageLists_libssldev"
;;
2019-12-11 15:58:47 +01:00
tidy@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent tidyhtml-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile tidyhtml-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
tidy@debian)
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libtidy5*"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libtidy-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
uuid@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libuuid"
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile util-linux-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
uuid@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile uuid-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
wddx@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
wddx@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
xmlrpc@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
xmlrpc@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
xsl@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libxslt"
2019-12-11 17:34:32 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxslt-dev libgcrypt-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
xsl@debian)
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libxslt1.1"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxslt-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
yaml@alpine)
2019-12-19 14:02:02 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent yaml"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile yaml-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
yaml@debian)
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libyaml-0-2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libyaml-dev"
2018-04-11 17:39:10 +02:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
zip@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzip"
2019-12-19 14:03:33 +01:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake gnutls-dev libzip-dev libressl-dev zlib-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
zip@debian)
2019-12-23 10:31:24 +01:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzip[0-9]$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake gnutls-dev $buildRequiredPackageLists_libssldev libzip-dev libbz2-dev zlib1g-dev"
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2019-12-23 10:31:24 +01:00
debian@8)
# Debian Jessie doesn't seem to provide libmbedtls
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmbedtls[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmbedtls-dev"
;;
esac
2018-04-11 17:39:10 +02:00
;;
2020-07-27 16:50:21 +02:00
zookeeper@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzookeeper-mt2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libzookeeper-mt-dev"
;;
2018-04-11 17:39:10 +02:00
esac
2020-07-27 14:30:14 +02:00
shift
2018-04-11 17:39:10 +02:00
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
PACKAGES_PERSISTENT=''
PACKAGES_VOLATILE=''
2020-01-23 14:50:55 +01:00
PACKAGES_PREVIOUS=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test -z "$buildRequiredPackageLists_persistent$buildRequiredPackageLists_volatile"; then
2019-12-23 11:50:42 +01:00
return
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
fi
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
debian)
2019-12-12 12:24:08 +01:00
DEBIAN_FRONTEND=noninteractive apt-get update -q
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
;;
esac
if test -n "$buildRequiredPackageLists_persistent"; then
PACKAGES_PERSISTENT="$(expandPackagesToBeInstalled $buildRequiredPackageLists_persistent)"
2019-12-23 12:40:28 +01:00
if test -s "$IPE_ERRFLAG_FILE"; then
2019-12-23 08:55:33 +01:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
fi
if test -n "$buildRequiredPackageLists_volatile"; then
2019-12-23 08:55:33 +01:00
buildRequiredPackageLists_packages="$(expandPackagesToBeInstalled $buildRequiredPackageLists_volatile)"
2019-12-23 12:40:28 +01:00
if test -s "$IPE_ERRFLAG_FILE"; then
2019-12-23 08:55:33 +01:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
resetIFS
2019-12-23 08:55:33 +01:00
for buildRequiredPackageLists_package in $buildRequiredPackageLists_packages; do
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if ! stringInList "$buildRequiredPackageLists_package" "$PACKAGES_PERSISTENT"; then
PACKAGES_VOLATILE="$PACKAGES_VOLATILE $buildRequiredPackageLists_package"
fi
done
PACKAGES_VOLATILE="${PACKAGES_VOLATILE# }"
fi
2020-01-23 14:50:55 +01:00
if test -n "$PACKAGES_PERSISTENT$PACKAGES_VOLATILE"; then
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2020-01-23 14:50:55 +01:00
debian)
PACKAGES_PREVIOUS="$(dpkg --get-selections | grep -E '\sinstall$' | awk '{ print $1 }')"
;;
esac
fi
2018-04-11 17:39:10 +02:00
}
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# Get the full list of APT/APK packages that will be installed, given the required packages
2018-06-28 09:46:14 +02:00
#
# Arguments:
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# $1: the list of required APT/APK packages
2018-06-28 09:46:14 +02:00
#
# Output:
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# Space-separated list of every APT/APK packages that will be installed
2019-12-20 16:52:00 +01:00
expandPackagesToBeInstalled() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
expandPackagesToBeInstalled_result=''
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
alpine)
2019-12-19 15:59:08 +01:00
expandPackagesToBeInstalled_log="$(apk add --simulate $@ 2>&1 || printf '\nERROR: apk failed\n')"
2019-12-19 14:04:35 +01:00
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_log" | grep -E '^ERROR:')"; then
2019-12-23 12:40:28 +01:00
printf 'FAILED TO LIST THE WHOLE PACKAGE LIST FOR\n' >&2
printf '%s ' "$@" >&2
printf '\n\nCOMMAND OUTPUT:\n%s\n' "$expandPackagesToBeInstalled_log" >&2
echo 'y' >"$IPE_ERRFLAG_FILE"
2019-12-19 14:04:35 +01:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
IFS='
2018-06-28 09:46:14 +02:00
'
2019-12-19 14:04:35 +01:00
for expandPackagesToBeInstalled_line in $expandPackagesToBeInstalled_log; do
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_line" | grep -E '^\([0-9]*/[0-9]*) Installing ')"; then
expandPackagesToBeInstalled_result="$expandPackagesToBeInstalled_result $(printf '%s' "$expandPackagesToBeInstalled_line" | cut -d ' ' -f 3)"
fi
2018-06-28 09:46:14 +02:00
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
resetIFS
;;
debian)
2019-12-19 15:59:08 +01:00
expandPackagesToBeInstalled_log="$(DEBIAN_FRONTEND=noninteractive apt-get install -sy $@ 2>&1 || printf '\nE: apt-get failed\n')"
2019-12-19 14:04:35 +01:00
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_log" | grep -E '^E:')"; then
2019-12-23 12:40:28 +01:00
printf 'FAILED TO LIST THE WHOLE PACKAGE LIST FOR\n' >&2
printf '%s ' "$@" >&2
printf '\n\nCOMMAND OUTPUT:\n%s\n' "$expandPackagesToBeInstalled_log" >&2
echo 'y' >"$IPE_ERRFLAG_FILE"
2019-12-19 14:04:35 +01:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
expandPackagesToBeInstalled_inNewPackages=0
IFS='
'
2019-12-19 14:04:35 +01:00
for expandPackagesToBeInstalled_line in $expandPackagesToBeInstalled_log; do
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test $expandPackagesToBeInstalled_inNewPackages -eq 0; then
if test "$expandPackagesToBeInstalled_line" = 'The following NEW packages will be installed:'; then
expandPackagesToBeInstalled_inNewPackages=1
fi
elif test "$expandPackagesToBeInstalled_line" = "${expandPackagesToBeInstalled_line# }"; then
break
else
resetIFS
for expandPackagesToBeInstalled_newPackage in $expandPackagesToBeInstalled_line; do
expandPackagesToBeInstalled_result="$expandPackagesToBeInstalled_result $expandPackagesToBeInstalled_newPackage"
done
IFS='
'
fi
done
resetIFS
;;
esac
printf '%s' "${expandPackagesToBeInstalled_result# }"
}
Enable parallel compilation for many pecl extensions
Test: amqp, bcmath, bz2, calendar, exif, gd, gettext, grpc, imagick, intl, mysqli, opcache, pcntl, pdo_mysql, protobuf, redis, soap, sockets, tidy, xdebug, xsl, yaml, zip
2020-08-19 16:45:41 +02:00
# Retrieve the number of processors to be used when compiling an extension
#
# Arguments:
# $1: the handle of the PHP extension to be compiled
# Output:
# The number of processors to be used
getCompilationProcessorCount() {
case "$1" in
amqp | bcmath | bz2 | calendar | exif | gd | gettext | grpc | imagick | intl | mysqli | opcache | pcntl | pdo_mysql | protobuf | redis | soap | sockets | tidy | xdebug | xsl | yaml | zip)
nproc
;;
*)
echo 1
;;
esac
}
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# Install the required APT/APK packages
#
# Arguments:
# $@: the list of APT/APK packages to be installed
2019-12-20 16:52:00 +01:00
installRequiredPackages() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf '### INSTALLING REQUIRED PACKAGES ###\n'
2019-12-19 16:06:42 +01:00
printf '# Packages to be kept after installation: %s\n' "$PACKAGES_PERSISTENT"
printf '# Packages to be used only for installation: %s\n' "$PACKAGES_VOLATILE"
2019-12-18 13:53:29 +01:00
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
alpine)
apk add $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
;;
debian)
2019-12-12 12:24:08 +01:00
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
;;
esac
2018-06-28 09:46:14 +02:00
}
2019-12-19 10:14:38 +01:00
# Get the version of an installed APT/APK package
#
# Arguments:
# $1: the name of the installed package
#
# Output:
# The numeric part of the package version, with from 1 to 3 numbers
#
# Example:
# 1
# 1.2
# 1.2.3
getInstalledPackageVersion() {
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2019-12-19 10:14:38 +01:00
alpine)
2019-12-20 16:52:00 +01:00
apk info "$1" | head -n1 | cut -c $((${#1} + 2))- | grep -o -E '^[0-9]+(\.[0-9]+){0,2}'
2019-12-19 10:14:38 +01:00
;;
debian)
dpkg-query --showformat='${Version}' --show "$1" 2>/dev/null | grep -o -E '^[0-9]+(\.[0-9]+){0,2}'
;;
esac
}
# Compare two versions
#
# Arguments:
# $1: the first version
# $2: the second version
#
# Output
# -1 if $1 is less than $2
# 0 if $1 is the same as $2
# 1 if $1 is greater than $2
compareVersions() {
compareVersions_v1="$1.0.0"
compareVersions_v2="$2.0.0"
2019-12-20 16:52:00 +01:00
compareVersions_vMin="$(printf '%s\n%s' "$compareVersions_v1" "$compareVersions_v2" | sort -t '.' -n -k1,1 -k2,2 -k3,3 | head -n 1)"
2019-12-19 10:14:38 +01:00
if test "$compareVersions_vMin" != "$compareVersions_v1"; then
echo '1'
elif test "$compareVersions_vMin" = "$compareVersions_v2"; then
echo '0'
else
echo '-1'
fi
}
2018-04-11 17:39:10 +02:00
# Install a bundled PHP module given its handle
#
# Arguments:
2020-07-27 14:30:14 +02:00
# $1: the handle of the PHP module
2018-06-28 09:46:14 +02:00
#
# Set:
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
# UNNEEDED_PACKAGE_LINKS
2018-06-28 09:46:14 +02:00
#
# Output:
# Nothing
2019-12-20 16:52:00 +01:00
installBundledModule() {
2020-07-27 14:30:14 +02:00
printf '### INSTALLING BUNDLED MODULE %s ###\n' "$1"
case "$1" in
2018-04-11 17:39:10 +02:00
gd)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-vpx-dir
2020-07-27 14:30:14 +02:00
elif test $PHP_MAJMIN_VERSION -le 701; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-webp-dir
2020-07-27 14:30:14 +02:00
elif test $PHP_MAJMIN_VERSION -le 703; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-webp-dir
2019-12-06 17:12:05 +01:00
else
docker-php-ext-configure gd --enable-gd --with-webp --with-jpeg --with-xpm --with-freetype
2018-04-11 17:39:10 +02:00
fi
;;
gmp)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-01-31 16:35:43 +01:00
if ! test -f /usr/include/gmp.h; then
ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/gmp.h"
fi
fi
2018-04-11 17:39:10 +02:00
;;
imap)
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2020-01-22 13:40:40 +01:00
debian@9)
installBundledModule_tmp="$(pwd)"
cd /tmp
apt-get download libc-client2007e-dev
dpkg -i --ignore-depends=libssl-dev libc-client2007e-dev*
rm libc-client2007e-dev*
cd "$installBundledModule_tmp"
;;
esac
2019-10-10 12:19:40 +02:00
PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl
2018-04-11 17:39:10 +02:00
;;
2019-12-20 16:52:00 +01:00
interbase | pdo_firebird)
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2019-12-11 11:40:13 +01:00
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)
2019-12-19 10:37:03 +01:00
sed -i '194s/.*/#if 0/' src/common/classes/rwlock.h
2019-12-11 11:40:13 +01:00
./configure --with-system-icu
2019-12-11 13:57:45 +01:00
# -j option can't be used: make targets must be compiled sequentially
2019-12-11 12:57:53 +01:00
make -s btyacc_binary gpre_boot libfbstatic libfbclient
2019-12-11 11:40:13 +01:00
cp gen/firebird/lib/libfbclient.so /usr/lib/
ln -s /usr/lib/libfbclient.so /usr/lib/libfbclient.so.2
2019-12-24 09:19:56 +01:00
cd - >/dev/null
2019-12-11 11:40:13 +01:00
fi
2020-07-27 14:30:14 +02:00
CFLAGS='-I/tmp/src/firebird/src/jrd -I/tmp/src/firebird/src/include -I/tmp/src/firebird/src/include/gen' docker-php-ext-configure $1
2019-12-11 11:40:13 +01:00
;;
esac
;;
2018-04-11 17:39:10 +02:00
ldap)
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2019-12-23 09:45:57 +01:00
debian)
docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine)
;;
esac
2018-04-11 17:39:10 +02:00
;;
2019-12-20 16:52:00 +01:00
mssql | pdo_dblib)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 704; then
2020-02-03 08:26:38 +01:00
if ! test -f /usr/lib/libsybdb.so; then
ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/lib/libsybdb.so"
fi
fi
2018-04-11 17:39:10 +02:00
;;
odbc)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 704; then
2020-02-03 08:26:38 +01:00
docker-php-source extract
cd /usr/src/php/ext/odbc
phpize
sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure
./configure --with-unixODBC=shared,/usr
cd - >/dev/null
fi
2018-04-11 17:39:10 +02:00
;;
pdo_odbc)
docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr
;;
2019-12-11 15:38:27 +01:00
snmp)
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2019-12-11 15:38:27 +01:00
alpine)
mkdir -p -m 0755 /var/lib/net-snmp/mib_indexes
;;
esac
;;
2018-04-11 17:39:10 +02:00
sybase_ct)
docker-php-ext-configure sybase_ct --with-sybase-ct=/usr
;;
2019-12-11 15:58:47 +01:00
tidy)
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2019-12-11 15:58:47 +01:00
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
;;
2019-07-31 15:13:18 +02:00
zip)
2020-07-27 14:30:14 +02:00
if test $PHP_MAJMIN_VERSION -le 505; then
2020-01-31 16:35:43 +01:00
docker-php-ext-configure zip
2020-07-27 14:30:14 +02:00
elif test $PHP_MAJMIN_VERSION -le 703; then
2019-12-06 17:12:05 +01:00
docker-php-ext-configure zip --with-libzip
else
docker-php-ext-configure zip --with-zip
fi
2019-07-31 15:13:18 +02:00
;;
2018-04-11 17:39:10 +02:00
esac
2020-07-27 14:30:14 +02:00
docker-php-ext-install -j$(nproc) "$1"
case "$1" in
2020-01-22 13:40:40 +01:00
imap)
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2020-01-22 13:40:40 +01:00
debian@9)
dpkg -r libc-client2007e-dev
;;
esac
;;
esac
2018-04-11 17:39:10 +02:00
}
# Fetch a tar.gz file, extract it and returns the path of the extracted folder.
#
# Arguments:
# $1: the URL of the file to be downloaded
#
# Output:
# The path of the extracted directory
2019-12-20 16:52:00 +01:00
getPackageSource() {
2018-04-11 17:39:10 +02:00
mkdir -p /tmp/src
getPackageSource_tempFile=$(mktemp -p /tmp/src)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
curl -L -s -S -o "$getPackageSource_tempFile" "$1"
2018-04-11 17:39:10 +02:00
getPackageSource_tempDir=$(mktemp -p /tmp/src -d)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
cd "$getPackageSource_tempDir"
2019-12-19 10:37:03 +01:00
tar -xzf "$getPackageSource_tempFile" 2>/dev/null || tar -xf "$getPackageSource_tempFile"
2018-04-11 17:39:10 +02:00
cd - >/dev/null
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
unlink "$getPackageSource_tempFile"
2018-04-11 17:39:10 +02:00
getPackageSource_outDir=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
for getPackageSource_i in $(ls "$getPackageSource_tempDir"); do
if test -n "$getPackageSource_outDir" || test -f "$getPackageSource_tempDir/$getPackageSource_i"; then
2018-04-11 17:39:10 +02:00
getPackageSource_outDir=''
break
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
getPackageSource_outDir="$getPackageSource_tempDir/$getPackageSource_i"
2018-04-11 17:39:10 +02:00
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test -n "$getPackageSource_outDir"; then
printf '%s' "$getPackageSource_outDir"
2018-04-11 17:39:10 +02:00
else
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf '%s' "$getPackageSource_tempDir"
2018-04-11 17:39:10 +02:00
fi
}
# Install a PHP module given its handle from source code
#
# Arguments:
# $1: the handle of the PHP module
# $2: the URL of the module source code
# $3: the options of the configure command
2019-05-16 17:21:15 +02:00
# $4: the value of CFLAGS
2019-12-20 16:52:00 +01:00
installModuleFromSource() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf '### INSTALLING MODULE %s FROM SOURCE CODE ###\n' "$1"
installModuleFromSource_dir="$(getPackageSource "$2")"
2020-02-27 23:13:16 +01:00
case "$1" in
snuffleupagus)
cd "$installModuleFromSource_dir/src"
;;
*)
cd "$installModuleFromSource_dir"
;;
esac
2018-04-11 17:39:10 +02:00
phpize
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
./configure $3 CFLAGS="${4:-}"
2018-04-11 17:39:10 +02:00
make -j$(nproc) install
2019-12-24 09:19:56 +01:00
cd - >/dev/null
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
docker-php-ext-enable "$1"
2020-02-27 20:59:35 +01:00
case "$1" in
2020-02-27 23:06:48 +01:00
snuffleupagus)
2020-02-27 23:40:15 +01:00
cp -a "$installModuleFromSource_dir/config/default.rules" "$PHP_INI_DIR/conf.d/snuffleupagus.rules"
2020-02-27 23:44:16 +01:00
printf 'sp.configuration_file=%s\n' "$PHP_INI_DIR/conf.d/snuffleupagus.rules" >>"$PHP_INI_DIR/conf.d/docker-php-ext-snuffleupagus.ini"
2020-02-27 21:05:25 +01:00
;;
2020-02-27 20:59:35 +01:00
esac
2018-04-11 17:39:10 +02:00
}
# Install a PECL PHP module given its handle
#
# Arguments:
2020-07-27 12:19:04 +02:00
# $1: the handle of the PHP module
2019-12-20 16:52:00 +01:00
installPECLModule() {
2020-07-27 12:19:04 +02:00
printf '### INSTALLING PECL MODULE %s ###\n' "$1"
installPECLModule_actual="$1"
2019-10-11 10:51:08 +02:00
installPECLModule_stdin='\n'
2019-12-17 11:14:04 +01:00
installPECLModule_manuallyInstalled=0
2020-07-27 12:19:04 +02:00
case "$1" in
2019-12-20 15:01:47 +01:00
amqp)
2020-02-28 11:09:15 +01:00
case "$DISTRO_VERSION" in
2019-12-20 15:01:47 +01:00
debian@8)
# in Debian Jessie we have librammitmq version 0.5.2
2020-07-27 12:19:04 +02:00
installPECLModule_actual="$1-1.9.3"
2019-12-20 15:01:47 +01:00
;;
esac
;;
2019-10-10 11:51:13 +02:00
apcu)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-4.0.11"
2019-10-10 11:51:13 +02:00
fi
;;
2020-02-04 09:54:02 +01:00
decimal)
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2020-02-04 09:54:02 +01:00
alpine)
installPECLModule_src="$(getPackageSource https://codeload.github.com/bematech/libmpdec/tar.gz/master)"
cd -- "$installPECLModule_src"
./configure CFLAGS='-w'
make -j$(nproc)
make install
cd - >/dev/null
;;
esac
;;
2020-01-07 11:24:42 +01:00
gmagick)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-1.1.7RC3"
2020-01-07 11:24:42 +01:00
else
2020-07-27 12:19:04 +02:00
installPECLModule_actual="$1-beta"
2020-01-07 11:24:42 +01:00
fi
;;
2019-12-24 12:53:48 +01:00
http)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-24 12:53:48 +01:00
installPECLModule_actual="pecl_http-2.6.0"
else
installPECLModule_actual="pecl_http"
if ! test -e /usr/local/lib/libidnkit.so; then
installPECLModule_src="$(getPackageSource https://jprs.co.jp/idn/idnkit-2.3.tar.bz2)"
cd -- "$installPECLModule_src"
./configure
make -j$(nproc) install
cd - >/dev/null
fi
fi
;;
2020-06-15 17:17:15 +02:00
igbinary)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-2.0.8"
2020-06-15 17:17:15 +02:00
fi
;;
2019-12-19 17:07:13 +01:00
memcache)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-2.2.7"
2019-12-19 17:07:13 +01:00
fi
;;
2019-12-23 17:38:09 +01:00
mailparse)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-2.1.6"
2019-12-23 17:38:09 +01:00
fi
;;
2018-04-11 17:39:10 +02:00
memcached)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-2.2.0"
2019-10-11 15:30:57 +02:00
# --with-libmemcached-dir (default: no) Set the path to libmemcached install prefix
else
installPECLModule_stdin=''
# --with-libmemcached-dir (default: no) Set the path to libmemcached install prefix
installPECLModule_stdin="${installPECLModule_stdin}\n"
# --with-zlib-dir (default: no) Set the path to ZLIB install prefix
installPECLModule_stdin="${installPECLModule_stdin}\n"
# --with-system-fastlz (default: no) Use system FastLZ library
installPECLModule_stdin="${installPECLModule_stdin}no\n"
# --enable-memcached-igbinary (default: no) Enable memcached igbinary serializer support
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin="${installPECLModule_stdin}yes\n" || installPECLModule_stdin="${installPECLModule_stdin}no\n"
# --enable-memcached-msgpack (default: no) Enable memcached msgpack serializer support
php --ri msgpack >/dev/null 2>/dev/null && installPECLModule_stdin="${installPECLModule_stdin}yes\n" || installPECLModule_stdin="${installPECLModule_stdin}no\n"
# --enable-memcached-json (default: no) Enable memcached json serializer support
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
# --enable-memcached-protocol (default: no) Enable memcached protocol support
installPECLModule_stdin="${installPECLModule_stdin}no\n" # https://github.com/php-memcached-dev/php-memcached/issues/418#issuecomment-449587972
# --enable-memcached-sasl (default: yes) Enable memcached sasl support
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
# --enable-memcached-session (default: yes) Enable memcached session handler support
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
2018-04-11 17:39:10 +02:00
fi
;;
2019-12-12 12:41:49 +01:00
mongo)
installPECLModule_stdin=''
# --with-mongo-sasl (default: no) Build with Cyrus SASL (MongoDB Enterprise Authentication) support?
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
;;
2020-02-03 08:26:38 +01:00
mongodb)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 505; then
installPECLModule_actual="$1-1.5.5"
2020-07-31 18:18:08 +02:00
elif test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-1.7.5"
2020-02-03 08:26:38 +01:00
fi
;;
2019-10-11 15:22:43 +02:00
msgpack)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-0.5.7"
2019-10-11 15:22:43 +02:00
fi
;;
2020-02-16 18:28:30 +01:00
oauth)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-1.2.3"
2020-02-16 18:28:30 +01:00
fi
;;
2019-12-17 09:34:54 +01:00
opencensus)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 702; then
installPECLModule_actual="$1-alpha"
2019-12-17 11:14:04 +01:00
else
installPECLModule_manuallyInstalled=1
installPECLModule_src="$(getPackageSource https://pecl.php.net/get/opencensus)"
cd "$installPECLModule_src"/opencensus-*
find . -name '*.c' -type f -exec sed -i 's/\bZVAL_DESTRUCTOR\b/zval_dtor/g' {} +
phpize
./configure
make install
2019-12-24 09:19:56 +01:00
cd - >/dev/null
2019-12-17 11:14:04 +01:00
fi
2019-12-17 09:34:54 +01:00
;;
2019-10-11 08:12:46 +02:00
parallel)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 701; then
installPECLModule_actual="$1-0.8.3"
2019-10-11 08:12:46 +02:00
fi
;;
2019-08-21 12:44:24 +02:00
pcov)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 701; then
installPECLModule_actual="$1-0.9.0"
2019-08-21 12:44:24 +02:00
fi
;;
2019-10-07 18:27:02 +02:00
pdo_sqlsrv | sqlsrv)
# https://docs.microsoft.com/it-it/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 700; then
installPECLModule_actual="$1-5.3.0"
elif test $PHP_MAJMIN_VERSION -le 701; then
installPECLModule_actual="$1-5.6.1"
2019-10-07 18:27:02 +02:00
fi
;;
2019-12-24 10:33:31 +01:00
propro)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-1.0.2"
2019-12-24 10:33:31 +01:00
fi
;;
2020-08-18 10:02:00 +02:00
protobuf)
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-3.12.4"
fi
;;
2018-04-11 17:39:10 +02:00
pthreads)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-2.0.10"
2018-04-11 17:39:10 +02:00
fi
2019-12-18 15:13:56 +01:00
;;
2019-12-24 10:20:45 +01:00
raphf)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-1.1.2"
2019-12-24 10:20:45 +01:00
fi
;;
2019-12-18 15:13:56 +01:00
rdkafka)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 505; then
installPECLModule_actual="$1-3.0.5"
2020-02-03 08:26:38 +01:00
else
installPECLModule_tmp=
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2020-02-03 08:26:38 +01:00
alpine)
installPECLModule_tmp='librdkafka'
;;
debian)
installPECLModule_tmp='librdkafka*'
;;
esac
2019-12-19 10:14:38 +01:00
if test -n "$installPECLModule_tmp"; then
2020-02-03 08:26:38 +01:00
installPECLModule_tmp="$(getInstalledPackageVersion "$installPECLModule_tmp")"
if test -n "$installPECLModule_tmp"; then
if test $(compareVersions "$installPECLModule_tmp" '0.11.0') -lt 0; then
2020-07-27 12:19:04 +02:00
installPECLModule_actual="$1-3.1.3"
2020-02-03 08:26:38 +01:00
fi
2019-12-19 10:14:38 +01:00
fi
fi
fi
2018-04-11 17:39:10 +02:00
;;
2019-10-10 17:00:42 +02:00
redis)
2020-09-21 15:06:43 +02:00
if test $PHP_MAJMIN_VERSION -ge 800; then
installPECLModule_src="$(getPackageSource https://codeload.github.com/phpredis/phpredis/tar.gz/develop)"
cd -- "$installPECLModule_src"
installPECLModule_cmd='./configure'
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_cmd="$installPECLModule_cmd --enable-redis-igbinary"
phpize
$installPECLModule_cmd
make -j$(nproc)
make install
cd - >/dev/null
installPECLModule_manuallyInstalled=1
2019-12-23 18:09:22 +01:00
else
2020-09-21 15:06:43 +02:00
# enable igbinary serializer support?
php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin='yes\n' || installPECLModule_stdin='no\n'
# enable lzf compression support?
2019-12-23 18:09:22 +01:00
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
2020-09-21 15:06:43 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-4.3.0"
else
installPECLModule_machine=$(gcc -dumpmachine)
if ! test -e /usr/include/zstd.h || ! test -e /usr/lib/libzstd.so -o -e "/usr/lib/$installPECLModule_machine/libzstd.so"; then
installPECLModule_zstdVersion=1.4.4
installPECLModule_zstdVersionMajor=$(echo $installPECLModule_zstdVersion | cut -d. -f1)
rm -rf /tmp/src/zstd
mv "$(getPackageSource https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-$installPECLModule_zstdVersion.tar.gz)" /tmp/src/zstd
cd /tmp/src/zstd
make V=0 -j$(nproc) lib
cp -f lib/libzstd.so "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion"
ln -sf "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion" "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersionMajor"
ln -sf "/usr/lib/$installPECLModule_machine/libzstd.so.$installPECLModule_zstdVersion" "/usr/lib/$installPECLModule_machine/libzstd.so"
ln -sf /tmp/src/zstd/lib/zstd.h /usr/include/zstd.h
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/zstd.h"
cd - >/dev/null
fi
# enable zstd compression support?
installPECLModule_stdin="${installPECLModule_stdin}yes\n"
fi
2019-10-10 17:00:42 +02:00
fi
;;
2019-10-10 17:16:58 +02:00
solr)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-2.4.0"
2019-10-10 17:16:58 +02:00
fi
;;
2018-04-11 17:39:10 +02:00
ssh2)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-0.13"
2019-10-09 14:07:20 +02:00
else
# see https://bugs.php.net/bug.php?id=78560
installPECLModule_actual='https://pecl.php.net/get/ssh2'
2018-04-11 17:39:10 +02:00
fi
;;
2020-03-02 10:43:25 +01:00
tdlib)
if ! test -f /usr/lib/libphpcpp.so || ! test -f /usr/include/phpcpp.h; then
2020-03-03 12:09:28 +01:00
if test $PHP_MAJMIN_VERSION -le 701; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/v2.1.4)"
elif test $PHP_MAJMIN_VERSION -le 703; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/v2.2.0)"
else
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/444d1f90cf6b7f3cb5178fa0d0b5ab441b0389d0)"
fi
2020-03-02 10:43:25 +01:00
make -j$(nproc)
make install
cd - >/dev/null
fi
installPECLModule_tmp="$(mktemp -p /tmp/src -d)"
git clone --depth=1 --recurse-submodules https://github.com/yaroslavche/phptdlib.git "$installPECLModule_tmp"
mkdir "$installPECLModule_tmp/build"
cd "$installPECLModule_tmp/build"
cmake -D USE_SHARED_PHPCPP:BOOL=ON ..
make
make install
rm "$PHP_INI_DIR/conf.d/tdlib.ini"
installPECLModule_manuallyInstalled=1
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
uuid)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-1.0.5"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 17:11:55 +01:00
fi
;;
2018-04-11 17:39:10 +02:00
xdebug)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 500; then
installPECLModule_actual="$1-2.0.5"
elif test $PHP_MAJMIN_VERSION -le 503; then
installPECLModule_actual="$1-2.2.7"
elif test $PHP_MAJMIN_VERSION -le 504; then
installPECLModule_actual="$1-2.4.1"
elif test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-2.5.5"
elif test $PHP_MAJMIN_VERSION -le 700; then
installPECLModule_actual="$1-2.6.1"
2020-09-21 14:50:13 +02:00
elif test $PHP_MAJMIN_VERSION -ge 800; then
installPECLModule_src="$(getPackageSource https://codeload.github.com/xdebug/xdebug/tar.gz/master)"
cd -- "$installPECLModule_src"
phpize
./configure --enable-xdebug
make -j$(nproc)
make install
cd - >/dev/null
installPECLModule_manuallyInstalled=1
2018-04-11 17:39:10 +02:00
fi
;;
2019-09-27 17:29:02 +02:00
uopz)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-2.0.7"
elif test $PHP_MAJMIN_VERSION -lt 701; then
installPECLModule_actual="$1-5.0.2"
2019-09-27 17:29:02 +02:00
fi
;;
2020-04-30 09:02:29 +02:00
xhprof)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -le 506; then
installPECLModule_actual="$1-0.9.4"
2020-04-30 09:02:29 +02:00
fi
;;
2018-04-11 17:39:10 +02:00
yaml)
2020-07-27 12:19:04 +02:00
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-1.3.1"
elif test $PHP_MAJMIN_VERSION -lt 701; then
installPECLModule_actual="$1-2.0.4"
2018-04-11 17:39:10 +02:00
fi
;;
2020-07-27 16:50:21 +02:00
zookeeper)
case "$DISTRO" in
alpine)
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
installPECLModule_src="$(getPackageSource https://downloads.apache.org/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz)"
cd -- "$installPECLModule_src/zookeeper-client/zookeeper-client-c"
./configure --without-cppunit
2020-07-27 17:35:20 +02:00
make -j$(nproc) CFLAGS='-Wno-stringop-truncation -Wno-format-overflow'
2020-07-27 16:50:21 +02:00
make install
cd - >/dev/null
fi
;;
esac
if test $PHP_MAJMIN_VERSION -lt 700; then
installPECLModule_actual="$1-0.5.0"
elif test $PHP_MAJMIN_VERSION -gt 702; then
installPECLModule_actual="$1-0.7.2"
fi
;;
2018-04-11 17:39:10 +02:00
esac
2019-12-17 11:14:04 +01:00
if test $installPECLModule_manuallyInstalled -eq 0; then
2020-07-27 12:19:04 +02:00
if test "$1" != "$installPECLModule_actual"; then
2019-12-17 11:14:04 +01:00
printf ' (installing version %s)\n' "$installPECLModule_actual"
fi
2020-09-18 13:05:53 +02:00
printf "$installPECLModule_stdin" | MAKE="make -j$(getCompilationProcessorCount $1)" $PECL_COMMAND "$installPECLModule_actual"
2018-04-11 17:39:10 +02:00
fi
2020-07-27 12:19:04 +02:00
case "$1" in
2020-05-24 18:40:31 +02:00
apcu_bc)
# apcu_bc must be loaded after apcu
2020-07-27 12:19:04 +02:00
docker-php-ext-enable --ini-name "xx-php-ext-$1.ini" apc
2020-05-24 18:40:31 +02:00
;;
2019-12-24 12:53:48 +01:00
http)
# http must be loaded after raphf and propro
2020-07-27 12:19:04 +02:00
docker-php-ext-enable --ini-name "xx-php-ext-$1.ini" "$1"
2020-05-24 13:05:25 +02:00
;;
memcached)
# memcached must be loaded after msgpack
2020-07-27 12:19:04 +02:00
docker-php-ext-enable --ini-name "xx-php-ext-$1.ini" "$1"
2019-12-24 12:53:48 +01:00
;;
*)
2020-07-27 12:19:04 +02:00
docker-php-ext-enable "$1"
2019-12-24 12:53:48 +01:00
;;
esac
2018-04-11 17:39:10 +02:00
}
2020-09-18 13:05:53 +02:00
# Installs pickle to use instead of pecl
# and add the zip extension that it requires, making sure its installed first
installPickle() {
for PHP_MODULE_TO_INSTALL in $PHP_MODULES_TO_INSTALL; do
if ! stringInList "$PHP_MODULE_TO_INSTALL" "$BUNDLED_MODULES"; then
if test $PHP_MAJMIN_VERSION -lt 800; then
pecl channel-update pecl.php.net || true
PECL_COMMAND="pecl install"
return
fi
curl -L -f https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -o /tmp/pickle
chmod +x /tmp/pickle
if ! stringInList 'zip' "$(getPHPInstalledModules)"; then
PHP_MODULES_TO_INSTALL="zip $(removeStringFromList 'zip' "$PHP_MODULES_TO_INSTALL")"
fi
PECL_COMMAND="/tmp/pickle install --defaults"
return
fi
done
}
2018-04-11 17:39:10 +02:00
# Check if a string is in a list of space-separated string
#
# Arguments:
# $1: the string to be checked
# $2: the string list
#
# Return:
# 0 (true): if the string is in the list
# 1 (false): if the string is not in the list
2019-12-20 16:52:00 +01:00
stringInList() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
for stringInList_listItem in $2; do
if test "$1" = "$stringInList_listItem"; then
2018-04-11 17:39:10 +02:00
return 0
fi
done
return 1
}
2019-10-11 16:01:21 +02:00
# Remove a word from a space-separated list
#
# Arguments:
# $1: the word to be removed
# $2: the string list
#
# Output:
# The list without the word
2019-12-20 16:52:00 +01:00
removeStringFromList() {
2019-10-11 16:01:21 +02:00
removeStringFromList_result=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
for removeStringFromList_listItem in $2; do
if test "$1" != "$removeStringFromList_listItem"; then
2019-10-11 16:01:21 +02:00
if test -z "$removeStringFromList_result"; then
removeStringFromList_result="$removeStringFromList_listItem"
else
removeStringFromList_result="$removeStringFromList_result $removeStringFromList_listItem"
fi
fi
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
printf '%s' "$removeStringFromList_result"
}
# Cleanup everything at the end of the execution
2019-12-20 16:52:00 +01:00
cleanup() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
if test -n "$UNNEEDED_PACKAGE_LINKS"; then
printf '### REMOVING UNNEEDED PACKAGE LINKS ###\n'
for cleanup_link in $UNNEEDED_PACKAGE_LINKS; do
if test -L "$cleanup_link"; then
rm -f "$cleanup_link"
fi
done
fi
if test -n "$PACKAGES_VOLATILE"; then
printf '### REMOVING UNNEEDED PACKAGES ###\n'
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
alpine)
apk del --purge $PACKAGES_VOLATILE
;;
debian)
DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y $PACKAGES_VOLATILE
;;
esac
fi
2020-01-23 14:50:55 +01:00
if test -n "$PACKAGES_PREVIOUS"; then
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
2020-01-23 14:50:55 +01:00
debian)
printf '### RESTORING PREVIOUSLY INSTALLED PACKAGES ###\n'
2020-02-15 20:37:40 +01:00
DEBIAN_FRONTEND=noninteractive apt-get install --no-upgrade -qqy $PACKAGES_PREVIOUS
2020-01-23 14:50:55 +01:00
;;
esac
fi
2020-02-28 11:09:15 +01:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
alpine)
rm -rf /var/cache/apk/*
;;
debian)
rm -rf /var/lib/apt/lists/*
;;
esac
docker-php-source delete
rm -rf /tmp/pear
rm -rf /tmp/src
2020-09-18 13:05:53 +02:00
rm -rf /tmp/pickle
2019-10-11 16:01:21 +02:00
}
2018-04-11 17:39:10 +02:00
resetIFS
2019-12-23 08:55:33 +01:00
mkdir -p /tmp/src
2019-12-23 12:40:28 +01:00
IPE_ERRFLAG_FILE="$(mktemp -p /tmp/src)"
2020-02-28 11:09:15 +01:00
setDistro
setPHPMajorMinor
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
case "$PHP_MAJMIN_VERSION" in
2020-09-18 13:05:53 +02:00
505 | 506 | 700 | 701 | 702 | 703 | 704 | 800) ;;
2018-04-11 17:39:10 +02:00
*)
2019-12-20 16:52:00 +01:00
printf "### ERROR: Unsupported PHP version: %s.%s ###\n" $((PHP_MAJMIN_VERSION / 100)) $((PHP_MAJMIN_VERSION % 100))
;;
2018-04-11 17:39:10 +02:00
esac
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
UNNEEDED_PACKAGE_LINKS=''
processCommandArguments "$@"
if test -z "$PHP_MODULES_TO_INSTALL"; then
exit 0
fi
2019-10-11 16:01:21 +02:00
sortModulesToInstall
2020-09-18 13:05:53 +02:00
docker-php-source extract
BUNDLED_MODULES="$(find /usr/src/php/ext -mindepth 2 -maxdepth 2 -type f -name 'config.m4' | xargs -n1 dirname | xargs -n1 basename | xargs)"
installPickle
2020-07-27 14:30:14 +02:00
buildRequiredPackageLists $PHP_MODULES_TO_INSTALL
2019-12-23 11:50:42 +01:00
if test -n "$PACKAGES_PERSISTENT$PACKAGES_VOLATILE"; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
installRequiredPackages
fi
for PHP_MODULE_TO_INSTALL in $PHP_MODULES_TO_INSTALL; do
if stringInList "$PHP_MODULE_TO_INSTALL" "$BUNDLED_MODULES"; then
2020-07-27 14:30:14 +02:00
installBundledModule "$PHP_MODULE_TO_INSTALL"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
else
MODULE_SOURCE=''
MODULE_SOURCE_CONFIGOPTIONS=''
MODULE_SOURCE_CFLAGS=''
case "$PHP_MODULE_TO_INSTALL" in
cmark)
MODULE_SOURCE=https://github.com/krakjoe/cmark/archive/v1.0.0.tar.gz
cd "$(getPackageSource https://github.com/commonmark/cmark/archive/0.28.3.tar.gz)"
make install
2019-12-24 09:19:56 +01:00
cd - >/dev/null
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
MODULE_SOURCE_CONFIGOPTIONS=--with-cmark
;;
2020-02-26 11:18:28 +01:00
snuffleupagus)
2020-02-27 23:41:21 +01:00
MODULE_SOURCE="https://codeload.github.com/jvoisin/snuffleupagus/tar.gz/v0.5.0"
2020-02-26 11:18:28 +01:00
MODULE_SOURCE_CONFIGOPTIONS=--enable-snuffleupagus
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
esac
if test -n "$MODULE_SOURCE"; then
installModuleFromSource "$PHP_MODULE_TO_INSTALL" "$MODULE_SOURCE" "$MODULE_SOURCE_CONFIGOPTIONS" "$MODULE_SOURCE_CFLAGS"
else
2020-07-27 12:19:04 +02:00
installPECLModule "$PHP_MODULE_TO_INSTALL"
2018-06-28 09:46:14 +02:00
fi
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 09:06:30 +01:00
done
cleanup