From a09f25f9224e2fa102cd7c2f0547784ec1b6e217 Mon Sep 17 00:00:00 2001 From: Elan Ruusamäe Date: Mon, 27 Dec 2021 21:28:23 +0200 Subject: Fix module load test 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 -- cgit v0.10.2