[packages/php-ast] i686 requires pcre
glen
glen at pld-linux.org
Mon Jun 27 13:38:37 CEST 2016
commit 448997a9a27eea43d79c01f39448987f9d2d5a2d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jun 27 14:37:07 2016 +0300
i686 requires pcre
but not x86_64/x32!
undefined symbol: php_pcre_split_impl
php-ast.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/php-ast.spec b/php-ast.spec
index 3a3f016..1750ef0 100644
--- a/php-ast.spec
+++ b/php-ast.spec
@@ -18,9 +18,12 @@ BuildRequires: %{php_name}-devel >= 4:7.0
BuildRequires: rpmbuild(macros) >= 1.666
%if %{with tests}
BuildRequires: %{php_name}-cli
+BuildRequires: %{php_name}-pcre
BuildRequires: %{php_name}-spl
%endif
%{?requires_php_extension}
+Requires: %{php_name}-pcre
+Requires: %{php_name}-spl
Provides: php(ast) = %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,6 +42,7 @@ phpize
# simple module load test
%{__php} -n -q \
-d extension_dir=modules \
+ -d extension=%{php_extensiondir}/pcre.so \
-d extension=%{php_extensiondir}/spl.so \
-d extension=%{modname}.so \
-m > modules.log
@@ -47,7 +51,7 @@ grep %{modname} modules.log
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
%{__make} test \
PHP_EXECUTABLE=%{__php} \
- PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl" \
+ PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl" \
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-ast.git/commitdiff/448997a9a27eea43d79c01f39448987f9d2d5a2d
More information about the pld-cvs-commit
mailing list