summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-06-20 10:23:32 +0200
committerRemi Collet <fedora@famillecollet.com>2014-06-20 10:23:32 +0200
commit717c71a492d6addc7e940c59da7ad2f19ba0e3de (patch)
tree971d6acbcb9128e3d96a5386ed635f47a0591305
parenta7c4084a8e8651dbc684c806e19ad17a516950f4 (diff)
php-pecl-runkit: build fix
-rw-r--r--php-pecl-runkit.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/php-pecl-runkit.spec b/php-pecl-runkit.spec
index 1563016..c50688e 100644
--- a/php-pecl-runkit.spec
+++ b/php-pecl-runkit.spec
@@ -99,9 +99,12 @@ ogólnego użytku. Wykonywanie danego kodu w ograniczonym środowisku
mv runkit-%{gh_commit} NTS
mv NTS/package.xml .
-%if 0%{?rhel} == 5
sed -e 's/-Werror//' -i NTS/config.m4
-%endif
+
+# Quick fix for PHP 5.6
+# https://github.com/zenovich/runkit/issues/69
+sed -e 's/IS_CONSTANT_ARRAY/IS_CONSTANT_AST/' \
+ -i NTS/runkit_import.c NTS/runkit_props.c
%if %{with_zts}
# duplicate for ZTS build