From 4c3682a563e49fb74bb87f1433ce8c5fcbb7ebd0 Mon Sep 17 00:00:00 2001 From: Max <49632507+maxm86545@users.noreply.github.com> Date: Sun, 19 Feb 2023 18:34:41 +0300 Subject: [PATCH] Support cassandra (#693) --- data/special-requirements | 1 + data/supported-extensions | 1 + install-php-extensions | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/data/special-requirements b/data/special-requirements index 501bfe3..29d59aa 100644 --- a/data/special-requirements +++ b/data/special-requirements @@ -1,3 +1,4 @@ +cassandra !alpine3.7 !alpine3.8 !jessie !stretch !buster !bullseye ddtrace !alpine3.7 !alpine3.8 !jessie geos !alpine3.7 !alpine3.8 !alpine3.9 !alpine3.10 lz4 !jessie diff --git a/data/supported-extensions b/data/supported-extensions index 720e38a..bce6a2f 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -6,6 +6,7 @@ bcmath 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 blackfire 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 bz2 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 calendar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 +cassandra 7.2 7.3 7.4 8.0 8.1 8.2 cmark 7.0 7.1 7.2 7.3 7.4 csv 7.3 7.4 8.0 8.1 8.2 dba 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index a3a0efe..f252c97 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -692,6 +692,10 @@ buildRequiredPackageLists() { bz2@debian) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libbz2-dev" ;; + cassandra@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent cassandra-cpp-driver gmp" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cassandra-cpp-driver-dev gmp-dev" + ;; cmark@alpine) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake" ;; @@ -2533,6 +2537,15 @@ installRemoteModule() { installRemoteModule_manuallyInstalled=1 installRemoteModule_ini_extra="$(printf '%sblackfire.agent_socket=tcp://blackfire:8307\n' "$installRemoteModule_ini_extra")" ;; + cassandra) + installRemoteModule_src="$(getPackageSource https://github.com/nano-interactive/ext-cassandra/tarball/1cf12c5ce49ed43a2c449bee4b7b23ce02a37bf0)" + cd "$installRemoteModule_src/ext" + phpize + ./configure + make -j$(getProcessorCount) install + cd - >/dev/null + installRemoteModule_manuallyInstalled=1 + ;; cmark) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 701; then