[packages/php-pecl-mysql] Fix module load test
glen
glen at pld-linux.org
Mon Dec 27 20:32:25 CET 2021
commit a09f25f9224e2fa102cd7c2f0547784ec1b6e217
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Dec 27 21:28:23 2021 +0200
Fix module load test
php-pecl-mysql.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/php-pecl-mysql.spec b/php-pecl-mysql.spec
index 51862e8..25de44c 100644
--- a/php-pecl-mysql.spec
+++ b/php-pecl-mysql.spec
@@ -22,10 +22,10 @@ Patch0: revert-deprecate-ext-mysql.patch
URL: https://secure.php.net/manual/en/book.mysql.php
%{?with_tests:BuildRequires: %{php_name}-cli}
BuildRequires: %{php_name}-devel >= 4:7.0.0
+%{?with_mysqlnd:BuildRequires: %{php_name}-mysqlnd}
BuildRequires: rpmbuild(macros) >= 1.666
%if %{with tests}
BuildRequires: %{php_name}-cli
-%{?with_mysqlnd:BuildRequires: %{php_name}-mysqlnd}
BuildRequires: %{php_name}-pcre
%endif
%{?with_mysqlnd:Requires: %{php_name}-mysqlnd}
@@ -89,14 +89,14 @@ phpize
%{__make}
# simple module load test
-%{__php} -n -q \
+%{__php} -n -q -d display_errors=off \
-d extension_dir=modules \
%if %{with mysqlnd}
-d extension=%{php_extensiondir}/mysqlnd.so \
%endif
-d extension=%{modname}.so \
-m > modules.log
-grep %{modname} modules.log
+grep "^%{modname}$" modules.log
%if %{with tests}
./run-tests.sh --show-diff
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-mysql.git/commitdiff/a09f25f9224e2fa102cd7c2f0547784ec1b6e217
More information about the pld-cvs-commit
mailing list