summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-10-23 08:24:19 +0200
committerRemi Collet <remi@php.net>2023-10-23 08:24:19 +0200
commitacd1432d17fce67f5e46ee3ca5128fb8df942ae3 (patch)
tree2c53943d550a49388aeaa24a91d94fe494a6a899
parent78a5d623631660f9d866c6dd97735c2792f674a9 (diff)
fix check
-rw-r--r--php-pecl-xdebug3.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/php-pecl-xdebug3.spec b/php-pecl-xdebug3.spec
index e1b53fc..eca64fb 100644
--- a/php-pecl-xdebug3.spec
+++ b/php-pecl-xdebug3.spec
@@ -219,7 +219,7 @@ for mod in simplexml; do
fi
done
-: check if NTS build extension can be loaded
+: check if NTS extension can be loaded
%{__php} \
--no-php-ini \
--define zend_extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
@@ -228,6 +228,11 @@ done
: check if provided config file is usable
%{__php} \
--no-php-ini \
+ -d extension_dir=%{buildroot}%{php_extdir} \
+ -c %{buildroot}%{php_inidir}/%{ini_name} -v
+%{__php} \
+ --no-php-ini \
+ -d extension_dir=%{buildroot}%{php_extdir} \
-c %{buildroot}%{php_inidir}/%{ini_name} -v 2>err.log \
| grep 'with Xdebug v%{upstream_version}%{?upstream_prever}'
if [ -s err.log ]; then
@@ -236,7 +241,7 @@ if [ -s err.log ]; then
fi
%if %{with_zts}
-: check if ZTS build extension can be loaded
+: check if ZTS extension can be loaded
%{__ztsphp} \
--no-php-ini \
--define zend_extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \