From 410fb2f142bb2a01e72b0d03d6ef2209eb1a3d95 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 16 Dec 2020 18:34:27 +0100 Subject: [PATCH] Add support for DB4 to DBA Test: dba --- install-php-extensions | 30 ++++++++++++++++++++++++++++++ scripts/tests/dba | 29 +++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100755 scripts/tests/dba diff --git a/install-php-extensions b/install-php-extensions index 5a309ec..3e9ab7c 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -339,6 +339,16 @@ buildRequiredPackageLists() { cmark@debian) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake" ;; + dba@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent db" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile db-dev" + ;; + dba@debian) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libdb5.3-dev" + if test $PHP_MAJMIN_VERSION -le 505; then + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile patch" + fi + ;; decimal@debian) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmpdec2" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmpdec-dev" @@ -1120,6 +1130,26 @@ installBundledModule() { printf '### WARNING the module "%s" is bundled with PHP, you can NOT specify a version for it\n' "$1" >&2 fi case "$1" in + dba) + if test -e /usr/lib/$TARGET_TRIPLET/libdb-5.3.so && ! test -e /usr/lib/libdb-5.3.so; then + ln -s /usr/lib/$TARGET_TRIPLET/libdb-5.3.so /usr/lib/ + fi + if test $PHP_MAJMIN_VERSION -le 505; then + docker-php-source extract + patch /usr/src/php/ext/dba/config.m4 <