summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole2.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-12-28 11:39:52 +0100
committerRemi Collet <remi@remirepo.net>2017-12-28 11:39:52 +0100
commit9576aa13d8853801bca6c6dcf3cbfcabcc2af720 (patch)
treee2a7305bec63b615cf538113235dc9709c172e2b /php-pecl-swoole2.spec
parent86798d680146b3e80e3f4ab68bace1148b3dd150 (diff)
add upstream patch to fix broken build with PHP 5.xphp5
Diffstat (limited to 'php-pecl-swoole2.spec')
-rw-r--r--php-pecl-swoole2.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/php-pecl-swoole2.spec b/php-pecl-swoole2.spec
index 236afc6..3e747a0 100644
--- a/php-pecl-swoole2.spec
+++ b/php-pecl-swoole2.spec
@@ -37,6 +37,8 @@ Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Patch0: https://github.com/swoole/swoole-src/commit/5945408fc74922a25a5d3c1500363ce474eb87dc.patch
+
BuildRequires: %{?scl_prefix}php-devel >= 5.5
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-sockets
@@ -151,6 +153,7 @@ sed -e '/examples/s/role="src"/role="doc"/' \
cd NTS
+%patch0 -p1 -b .upstream
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' php_swoole.h)
@@ -310,7 +313,8 @@ cd ../ZTS
%changelog
* Thu Dec 28 2017 Remi Collet <remi@remirepo.net> - 2.0.11-1
- Update to 2.0.11 (stable)
-- open https://github.com/swoole/swoole-src/issues/1433 - broken with PHP 5
+- add upstream patch to fix broken build with PHP 5.x
+ https://github.com/swoole/swoole-src/issues/1433
* Thu Dec 14 2017 Remi Collet <remi@remirepo.net> - 2.0.10-1
- Update to 2.0.10 (stable)