Add support for memprof on Debian (#530)

pull/531/head
Michele Locati 2022-03-23 10:55:44 +01:00 committed by GitHub
parent 57c01542fd
commit e3fc02766a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,4 @@
memprof !alpine
parallel zts
pdo_sqlsrv !alpine3.7 !alpine3.8
pthreads zts

View File

@ -43,6 +43,7 @@ maxminddb 7.2 7.3 7.4 8.0 8.1
mcrypt 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
memcache 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
memcached 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
memprof 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
mongo 5.5 5.6
mongodb 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
mosquitto 5.5 5.6 7.0 7.1 7.2 7.3 7.4

View File

@ -793,6 +793,15 @@ buildRequiredPackageLists() {
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ^libmaxminddb[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmaxminddb-dev"
;;
memprof@alpine)
# Only available in testing
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent judy"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile judy-dev"
;;
memprof@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libjudydebian1"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libjudy-dev"
;;
mcrypt@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmcrypt"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmcrypt-dev"
@ -2413,6 +2422,15 @@ installRemoteModule() {
addConfigureOption 'enable-memcached-session' 'yes'
fi
;;
memprof)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=1.0.0
elif test $PHP_MAJMIN_VERSION -le 700; then
installRemoteModule_version=2.1.0
fi
fi
;;
mongo)
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '1.5.0') -ge 0; then
# Build with Cyrus SASL (MongoDB Enterprise Authentication) support?

View File

@ -118,9 +118,20 @@ filterUnsupportedExensionsForDistro() {
fi
filterUnsupportedExensionsForDistro_filtered=''
IFS=' '
case "$IPETEST_DOCKER_DISTRO" in
alpine*)
filterUnsupportedExensionsForDistro_baseDistro="alpine"
;;
*)
filterUnsupportedExensionsForDistro_baseDistro="debian"
;;
esac
for filterUnsupportedExensionsForDistro_extension in $EXTENSIONS_TO_BE_TESTED; do
if stringInList "!$IPETEST_DOCKER_DISTRO" "$(cat "$filterUnsupportedExensionsForDistro_reqs" | grep -E "^$filterUnsupportedExensionsForDistro_extension[ \t]")"; then
printf 'Note: extension "%s" is not supported for distro "%s"\n' "$filterUnsupportedExensionsForDistro_extension" "$IPETEST_DOCKER_DISTRO"
elif stringInList "!$filterUnsupportedExensionsForDistro_baseDistro" "$(cat "$filterUnsupportedExensionsForDistro_reqs" | grep -E "^$filterUnsupportedExensionsForDistro_extension[ \t]")"; then
printf 'Note: extension "%s" is not supported for distro "%s"\n' "$filterUnsupportedExensionsForDistro_extension" "$filterUnsupportedExensionsForDistro_baseDistro"
else
filterUnsupportedExensionsForDistro_filtered="$filterUnsupportedExensionsForDistro_filtered $filterUnsupportedExensionsForDistro_extension"
fi