summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-13 11:03:14 +0200
committerRemi Collet <remi@remirepo.net>2017-10-13 11:03:14 +0200
commitbe666a1672a922506095b207f799b3ea02d94132 (patch)
tree8a878f0aa1529d4c400152c91159b58a9f269118
parentd2024e58b86fdf684a36861b635b7a39866896ab (diff)
disable timecop which breaks zephir see https://github.com/phalcon/zephir/pull/1588
-rw-r--r--zephir-rpm.patch4
-rw-r--r--zephir.spec6
2 files changed, 7 insertions, 3 deletions
diff --git a/zephir-rpm.patch b/zephir-rpm.patch
index 43e36a5..52039be 100644
--- a/zephir-rpm.patch
+++ b/zephir-rpm.patch
@@ -26,8 +26,8 @@ diff -up bin/zephir.rpm bin/zephir
if [ ! -z $1 ] && [ ! -z $2 ] && [ ! -z $3 ] && [ "$1" = "-c" ]; then
- php -c $2 $ZEPHIRDIR/compiler.php ${*:3}
-+ @BINDIR@/php -d memory_limit=1G -d extension=zephir_parser.so -c $2 $ZEPHIRDIR/compiler.php ${*:3}
++ @BINDIR@/php -d timecop.func_override=0 -d memory_limit=1G -d extension=zephir_parser.so -c $2 $ZEPHIRDIR/compiler.php ${*:3}
else
- php $ZEPHIRDIR/compiler.php $*
-+ @BINDIR@/php -d memory_limit=1G -d extension=zephir_parser.so $ZEPHIRDIR/compiler.php $*
++ @BINDIR@/php -d timecop.func_override=0 -d memory_limit=1G -d extension=zephir_parser.so $ZEPHIRDIR/compiler.php $*
fi
diff --git a/zephir.spec b/zephir.spec
index b89fdd1..8249ecd 100644
--- a/zephir.spec
+++ b/zephir.spec
@@ -31,7 +31,7 @@
Name: %{?scl_prefix}%{gh_project}
Version: 0.10.3
-Release: 1%{?gh_date:.%{gh_date}.%{gh_short}}%{?dist}
+Release: 2%{?gh_date:.%{gh_date}.%{gh_short}}%{?dist}
Summary: Zephir language for creation of extensions for PHP.
Group: Development/Languages
@@ -160,6 +160,10 @@ sh ./bin/%{gh_project}.test version | grep %{version}
%changelog
+* Fri Oct 13 2017 Remi Collet <remi@remirepo.net> - 0.10.3-2
+- disable timecop which breaks zephir
+ see https://github.com/phalcon/zephir/pull/1588
+
* Fri Oct 13 2017 Remi Collet <remi@remirepo.net> - 0.10.3-1
- version 0.10.3
- raise dependency on php-zephir-parser 1.1.0