From 64e2e2cff3945a3121fbf13f7b9efb9a7099c02b Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 4 Jun 2021 20:42:33 +0200 Subject: [PATCH] Ports/PHP: Enable Phar extension --- Ports/php/package.sh | 1 - Ports/php/patches/configure-disable-pharcmd.patch | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Ports/php/patches/configure-disable-pharcmd.patch diff --git a/Ports/php/package.sh b/Ports/php/package.sh index 03d765d6630..53d8f00a157 100755 --- a/Ports/php/package.sh +++ b/Ports/php/package.sh @@ -7,7 +7,6 @@ auth_type=sha256 depends="libiconv libxml2 sqlite zlib" configopts=" --disable-opcache - --disable-phar --prefix=${SERENITY_INSTALL_ROOT}/usr/local --with-iconv=${SERENITY_INSTALL_ROOT}/usr/local " diff --git a/Ports/php/patches/configure-disable-pharcmd.patch b/Ports/php/patches/configure-disable-pharcmd.patch new file mode 100644 index 00000000000..0861cb1e4b6 --- /dev/null +++ b/Ports/php/patches/configure-disable-pharcmd.patch @@ -0,0 +1,13 @@ +--- php-8.0.6/configure 2021-06-04 20:36:10.053986191 +0200 ++++ php-8.0.6-patched/configure 2021-06-04 20:36:20.769935808 +0200 +@@ -91478,8 +91478,8 @@ + CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)" + + if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then +- pharcmd=pharcmd +- pharcmd_install=install-pharcmd ++ pharcmd= ++ pharcmd_install= + else + pharcmd= + pharcmd_install=