mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-09-22 02:29:42 +07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6066b9c3a3 | |||
| 65c3893558 | |||
| cf194af986 |
@@ -8,7 +8,7 @@ add_couchbase_clibs() {
|
|||||||
release=$(get -s -n "" "$trunk"/latest | grep -Eo -m 1 "[0-9]+\.[0-9]+\.[0-9]+" | head -n 1)
|
release=$(get -s -n "" "$trunk"/latest | grep -Eo -m 1 "[0-9]+\.[0-9]+\.[0-9]+" | head -n 1)
|
||||||
fi
|
fi
|
||||||
[[ "$VERSION_ID" = "24.04" || "$VERSION_ID" = "26.04" ]] && vid=22.04 || vid="$VERSION_ID"
|
[[ "$VERSION_ID" = "24.04" || "$VERSION_ID" = "26.04" ]] && vid=22.04 || vid="$VERSION_ID"
|
||||||
[ "$VERSION_CODENAME" = "noble" ] && vcn=jammy || vcn="$VERSION_CODENAME"
|
[[ "$VERSION_CODENAME" = "noble" || "$VERSION_CODENAME" = "resolute" ]] && vcn=jammy || vcn="$VERSION_CODENAME"
|
||||||
deb_url="$trunk/download/$release/libcouchbase-${release}_ubuntu${vid/./}_${vcn}_amd64.tar"
|
deb_url="$trunk/download/$release/libcouchbase-${release}_ubuntu${vid/./}_${vcn}_amd64.tar"
|
||||||
get -q -n /tmp/libcouchbase.tar "$deb_url"
|
get -q -n /tmp/libcouchbase.tar "$deb_url"
|
||||||
if ! [ -e /tmp/libcouchbase.tar ] || ! file /tmp/libcouchbase.tar | grep -q 'tar archive'; then
|
if ! [ -e /tmp/libcouchbase.tar ] || ! file /tmp/libcouchbase.tar | grep -q 'tar archive'; then
|
||||||
@@ -59,6 +59,7 @@ add_couchbase() {
|
|||||||
ext=$(get_couchbase_version)
|
ext=$(get_couchbase_version)
|
||||||
fi
|
fi
|
||||||
if [[ "$ext" =~ couchbase-[2-3].+ ]]; then
|
if [[ "$ext" =~ couchbase-[2-3].+ ]]; then
|
||||||
|
export COUCHBASE_CONFIGURE_PREFIX_OPTS="${COUCHBASE_CONFIGURE_PREFIX_OPTS:-} SED=sed CFLAGS=-Wno-error=incompatible-pointer-types"
|
||||||
add_couchbase_clibs "$ext" >/dev/null 2>&1
|
add_couchbase_clibs "$ext" >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
add_couchbase_cxxlibs >/dev/null 2>&1
|
add_couchbase_cxxlibs >/dev/null 2>&1
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ add_ibm_helper() {
|
|||||||
else
|
else
|
||||||
configure_flag="--with-pdo-ibm=$IBM_DB_HOME"
|
configure_flag="--with-pdo-ibm=$IBM_DB_HOME"
|
||||||
fi
|
fi
|
||||||
|
read -r "${ext}_CONFIGURE_PREFIX_OPTS" <<< "SED=sed"
|
||||||
read -r "${ext}_CONFIGURE_OPTS" <<< "--with-php-config=$(command -v php-config) $configure_flag"
|
read -r "${ext}_CONFIGURE_OPTS" <<< "--with-php-config=$(command -v php-config) $configure_flag"
|
||||||
patch_phpize
|
patch_phpize
|
||||||
add_extension_from_source "$ext" https://github.com php "pecl-database-$ext" master extension get
|
add_extension_from_source "$ext" https://github.com php "pecl-database-$ext" master extension get
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ add_oci_helper() {
|
|||||||
else
|
else
|
||||||
compatibility_flag='-Wno-incompatible-function-pointer-types'
|
compatibility_flag='-Wno-incompatible-function-pointer-types'
|
||||||
fi
|
fi
|
||||||
read -r "${ext}_CONFIGURE_PREFIX_OPTS" <<< "CFLAGS=$compatibility_flag"
|
read -r "${ext}_CONFIGURE_PREFIX_OPTS" <<< "SED=sed CFLAGS=$compatibility_flag"
|
||||||
read -r "${ext}_LINUX_LIBS" <<< "libaio-dev"
|
read -r "${ext}_LINUX_LIBS" <<< "libaio-dev"
|
||||||
read -r "${ext}_CONFIGURE_OPTS" <<< "--with-php-config=$(command -v php-config) --with-${ext/_/-}=instantclient,$oracle_client"
|
read -r "${ext}_CONFIGURE_OPTS" <<< "--with-php-config=$(command -v php-config) --with-${ext/_/-}=instantclient,$oracle_client"
|
||||||
patch_phpize
|
patch_phpize
|
||||||
|
|||||||
Reference in New Issue
Block a user