From acd1432d17fce67f5e46ee3ca5128fb8df942ae3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 23 Oct 2023 08:24:19 +0200 Subject: fix check --- php-pecl-xdebug3.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'php-pecl-xdebug3.spec') 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 \ -- cgit