[packages/php-pecl-ds] Handle built in json extension for 8.0
glen
glen at pld-linux.org
Mon Dec 27 11:24:39 CET 2021
commit 5b322bace775395a2f5cbef6dfa0764159c3ba11
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Dec 27 11:58:17 2021 +0200
Handle built in json extension for 8.0
php-pecl-ds.spec | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/php-pecl-ds.spec b/php-pecl-ds.spec
index 801f97e..5c122d9 100644
--- a/php-pecl-ds.spec
+++ b/php-pecl-ds.spec
@@ -39,11 +39,14 @@ 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="json" \
-%else
- PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl json" \
+ PHP_TEST_SHARED_SYSTEM_EXTENSIONS="\
+%if "%php_major_version.%php_minor_version" < "8.0"
+ json \
%endif
+%if "%php_major_version.%php_minor_version" < "7.4"
+ pcre spl \
+%endif
+ " \
RUN_TESTS_SETTINGS="-q $*"
EOF
chmod +x run-tests.sh
@@ -60,7 +63,9 @@ phpize
-d extension=%{php_extensiondir}/pcre.so \
-d extension=%{php_extensiondir}/spl.so \
%endif
+%if "%php_major_version.%php_minor_version" < "8.0"
-d extension=%{php_extensiondir}/json.so \
+%endif
-d extension=%{modname}.so \
-m > modules.log
grep %{modname} modules.log
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-ds.git/commitdiff/5b322bace775395a2f5cbef6dfa0764159c3ba11
More information about the pld-cvs-commit
mailing list