[packages/php-pecl-imagick] Fix build on PHP 7.4 without shared builtin extensions

glen glen at pld-linux.org
Mon Sep 23 20:07:24 CEST 2019


commit e8211def0b2291b6b7610f988a73a502464493fd
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Sep 23 21:02:09 2019 +0300

    Fix build on PHP 7.4 without shared builtin extensions

 php-pecl-imagick.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/php-pecl-imagick.spec b/php-pecl-imagick.spec
index dee6f23..5fa7db3 100644
--- a/php-pecl-imagick.spec
+++ b/php-pecl-imagick.spec
@@ -121,8 +121,10 @@ phpize
 %if %{with tests}
 %{__php} -n -q \
 	-d extension_dir=modules \
+%if "%php_major_version.%php_minor_version" < "7.4"
 	-d extension=%{php_extensiondir}/pcre.so \
 	-d extension=%{php_extensiondir}/spl.so \
+%endif
 	-d extension=%{modname}.so \
 	-m > modules.log
 grep %{modname} modules.log
@@ -130,8 +132,10 @@ grep %{modname} modules.log
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 %{__make} test \
 	PHP_EXECUTABLE=%{__php} \
+%if "%php_major_version.%php_minor_version" < "7.4"
 	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl" \
 %endif
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-imagick.git/commitdiff/7628200848b771eaa35cafc597b78caeb3b67732



More information about the pld-cvs-commit mailing list