]> git.pld-linux.org Git - packages/php-pecl-imagick.git/commitdiff
Fix build on PHP 7.4 without shared builtin extensions
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 23 Sep 2019 18:02:09 +0000 (21:02 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 23 Sep 2019 18:06:03 +0000 (21:06 +0300)
php-pecl-imagick.spec

index dee6f23a9ec2c22cf11d344a6ab5451992fcf367..5fa7db38b240a2705793c4ba96c4de098f51e7a7 100644 (file)
@@ -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
This page took 0.109422 seconds and 4 git commands to generate.