[packages/php-pecl-apcu] Pcre needed on < 7.4

arekm arekm at pld-linux.org
Mon Apr 20 22:43:04 CEST 2026


commit 35305384e2aac4a4b7588396524a161d07cdbdc6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Apr 20 22:42:48 2026 +0200

    Pcre needed on < 7.4

 php-pecl-apcu.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec
index 99ec8f2..1a55d48 100644
--- a/php-pecl-apcu.spec
+++ b/php-pecl-apcu.spec
@@ -13,7 +13,7 @@
 Summary:	APCu - APC User Cache
 Name:		%{php_name}-pecl-%{modname}
 Version:	5.1.28
-Release:	3
+Release:	4
 License:	PHP 3.01
 Group:		Development/Languages/PHP
 Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -88,7 +88,11 @@ cat <<'EOF' > run-tests.sh
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 exec %{__make} test \
 	PHP_EXECUTABLE=%{__php} \
+%if "%php_major_version.%php_minor_version" < "7.4"
+	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre" \
+%else
 	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="" \
+%endif
 	RUN_TESTS_SETTINGS="-q $*"
 EOF
 chmod +x run-tests.sh
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-apcu.git/commitdiff/35305384e2aac4a4b7588396524a161d07cdbdc6



More information about the pld-cvs-commit mailing list