commit:     5542212403a33d8c2a2c8087b47e4fa1a2b4a267
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 26 02:16:28 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 26 02:16:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55422124

dev-php/swoole: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/895232
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-php/swoole/files/swoole-4.8.7-gcc13.patch | 19 +++++++++++++++++++
 dev-php/swoole/swoole-4.8.7.ebuild            |  6 +++++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/dev-php/swoole/files/swoole-4.8.7-gcc13.patch 
b/dev-php/swoole/files/swoole-4.8.7-gcc13.patch
new file mode 100644
index 000000000000..a99088af87cf
--- /dev/null
+++ b/dev-php/swoole/files/swoole-4.8.7-gcc13.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/895232
+https://github.com/swoole/swoole-src/issues/4983
+https://github.com/swoole/swoole-src/commit/402eec43ec385b63307b3ba772f871f0f86fa299
+
+From 402eec43ec385b63307b3ba772f871f0f86fa299 Mon Sep 17 00:00:00 2001
+From: Remi Collet <[email protected]>
+Date: Sun, 19 Feb 2023 13:00:01 +0100
+Subject: [PATCH] Fix #4983 Add missing header for GCC 13 (#4985)
+
+--- a/include/swoole_proxy.h
++++ b/include/swoole_proxy.h
+@@ -17,6 +17,7 @@
+ #pragma once
+ 
+ #include <string>
++#include <cstdint>
+ 
+ #define SW_SOCKS5_VERSION_CODE 0x05
+ 

diff --git a/dev-php/swoole/swoole-4.8.7.ebuild 
b/dev-php/swoole/swoole-4.8.7.ebuild
index 74dd612ea9a3..843f0db71a41 100644
--- a/dev-php/swoole/swoole-4.8.7.ebuild
+++ b/dev-php/swoole/swoole-4.8.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
@@ -41,6 +41,10 @@ RDEPEND="${DEPEND}"
 
 IUSE="debug http2 mysql sockets ssl"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc13.patch
+)
+
 src_configure() {
        # JEMalloc not included as it refuses to find a 
${ESYSROOT}/usr/includes/jemalloc subdirectory
        local PHP_EXT_ECONF_ARGS=(

Reply via email to