summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole6.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-10-22 12:08:25 +0200
committerRemi Collet <remi@php.net>2024-10-22 12:08:25 +0200
commit87a0f33effbe7d8e29dfcced9059d556ba65e242 (patch)
tree1bd76f873398171221b5326e5eb0d5fa66d5743d /php-pecl-swoole6.spec
parentf8a9cb44e4bc1e3d765693f542c56bdb8f61f46e (diff)
add fix for PHP 8.4 from
https://github.com/swoole/swoole-src/pull/5537
Diffstat (limited to 'php-pecl-swoole6.spec')
-rw-r--r--php-pecl-swoole6.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/php-pecl-swoole6.spec b/php-pecl-swoole6.spec
index e85b430..213730d 100644
--- a/php-pecl-swoole6.spec
+++ b/php-pecl-swoole6.spec
@@ -53,7 +53,7 @@
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?scl_prefix}php-pecl-%{pecl_name}6
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# Extension is Apache-2.0
# BSD-3-Clause: Hiredis
# MIT: nlohmann/json, nghttp2
@@ -61,6 +61,8 @@ License: Apache-2.0 AND BSD-3-Clause AND MIT
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Patch0: 5537.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
@@ -196,6 +198,8 @@ rm -r thirdparty/nghttp2
cp -p thirdparty/nghttp2/COPYING nghttp2-COPYING
%endif
+%patch -P0 -p1 -b .pr5537
+
# Sanity check, really often broken
extver=$(sed -n '/#define SWOOLE_VERSION /{s/.* "//;s/".*$//;p}' include/swoole_version.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
@@ -364,6 +368,10 @@ cd ../ZTS
%changelog
+* Tue Oct 22 2024 Remi Collet <remi@remirepo.net> - 6.0.0-3
+- add fix for PHP 8.4 from
+ https://github.com/swoole/swoole-src/pull/5537
+
* Tue Oct 22 2024 Remi Collet <remi@remirepo.net> - 6.0.0-2
- update to 6.0.0beta