diff --git a/devel/pecl-swoole/Makefile b/devel/pecl-swoole/Makefile index 05172db55f44..e16380aa08b3 100644 --- a/devel/pecl-swoole/Makefile +++ b/devel/pecl-swoole/Makefile @@ -1,36 +1,36 @@ PORTNAME= swoole -PORTVERSION= 5.1.5 +PORTVERSION= 5.1.6 CATEGORIES= devel net MAINTAINER= vanilla@FreeBSD.org COMMENT= Asynchronous, concurrent, and distributed networking framework WWW= https://pecl.php.net/package/swoole LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE NOT_FOR_ARCHS= i386 powerpc NOT_FOR_ARCHS_REASON= upstream drop 32 bits support USES= compiler:c11 localbase:ldflags php:build,pecl pkgconfig ssl IGNORE_WITH_PHP= 84 CONFIGURE_ARGS+= --enable-mysqlnd OPTIONS_DEFINE= BROTLI CARES CURL PGSQL SOCKETS CARES_LIB_DEPENDS= libcares.so:dns/c-ares CARES_CONFIGURE_ON= --enable-cares SOCKETS_USE= PHP=sockets:build SOCKETS_DESC= Use native php sockets extension SOCKETS_CONFIGURE_ON= --enable-sockets CURL_LIB_DEPENDS= libcurl.so:ftp/curl CURL_CONFIGURE_ON= --enable-swoole-curl CURL_USE= PHP=curl PGSQL_CONFIGURE_ON= --enable-swoole-pgsql PGSQL_USES= pgsql PGSQL_USE= PHP=pdo:build BROTLI_CONFIGURE_ON= --enable-brotli BROTLI_CONFIGURE_OFF= --disable-brotli BROTLI_LIB_DEPENDS= libbrotlicommon.so:archivers/brotli .include diff --git a/devel/pecl-swoole/distinfo b/devel/pecl-swoole/distinfo index 45750735aad7..f694855d5210 100644 --- a/devel/pecl-swoole/distinfo +++ b/devel/pecl-swoole/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1730442057 -SHA256 (PECL/swoole-5.1.5.tgz) = fdc856f746452c3333d0b2b70047da6172c3636e9b23a874c7aeb5abc312cf0a -SIZE (PECL/swoole-5.1.5.tgz) = 2265268 +TIMESTAMP = 1735627788 +SHA256 (PECL/swoole-5.1.6.tgz) = 335bf67aba33789450701b36fb21d5b46d72f837de92def2f80d4a0090eb57c8 +SIZE (PECL/swoole-5.1.6.tgz) = 2266113 diff --git a/devel/pecl-swoole/files/patch-include_swoole__async.h b/devel/pecl-swoole/files/patch-include_swoole__async.h index 641b5f3381fd..e84e2731f615 100644 --- a/devel/pecl-swoole/files/patch-include_swoole__async.h +++ b/devel/pecl-swoole/files/patch-include_swoole__async.h @@ -1,13 +1,14 @@ ---- include/swoole_async.h.orig 2023-10-01 04:44:15 UTC +--- include/swoole_async.h.orig 2024-11-28 03:39:05 UTC +++ include/swoole_async.h -@@ -23,6 +23,10 @@ +@@ -23,6 +23,11 @@ #include #include +#ifdef __FreeBSD__ +#include ++#include +#endif + #ifndef O_DIRECT #define O_DIRECT 040000 #endif diff --git a/devel/pecl-swoole/files/patch-src_coroutine_system.cc b/devel/pecl-swoole/files/patch-src_coroutine_system.cc index 95b124ebe059..ad235fcfbf97 100644 --- a/devel/pecl-swoole/files/patch-src_coroutine_system.cc +++ b/devel/pecl-swoole/files/patch-src_coroutine_system.cc @@ -1,12 +1,12 @@ ---- src/coroutine/system.cc.orig 2023-10-01 03:15:13 UTC +--- src/coroutine/system.cc.orig 2024-11-28 03:39:05 UTC +++ src/coroutine/system.cc -@@ -711,7 +711,8 @@ std::shared_ptr async_lock(void *resource) +@@ -701,7 +701,8 @@ std::shared_ptr async_lock(void *resource) "resource(%p) has already been bound to another coroutine#%ld, " "%s of the same resource in coroutine#%ld at the same time is not allowed", resource, - *iter, + iter->second, + iter->first, Coroutine::get_current_cid()); return nullptr; }