git: 82fbc5a41c20 - main - databases/pecl-memcached: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:43 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=82fbc5a41c20887d312fd4ebc067a1a980ec5ee2
commit 82fbc5a41c20887d312fd4ebc067a1a980ec5ee2
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:20:18 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:46:00 +0000
databases/pecl-memcached: Fix build with php85
Approved by: portmgr (blanket)
---
databases/pecl-memcached/Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/databases/pecl-memcached/Makefile b/databases/pecl-memcached/Makefile
index 79610b833e5b..e5e1c231e375 100644
--- a/databases/pecl-memcached/Makefile
+++ b/databases/pecl-memcached/Makefile
@@ -34,4 +34,13 @@ MSGPACK_RUN_DEPENDS= ${PECL_PKGNAMEPREFIX}msgpack>=0:devel/pecl-msgpack@${PHP_FL
SASL_CONFIGURE_ENABLE= memcached-sasl
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
-.include <bsd.port.mk>
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${PHP_VER} >= 85
+ @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string.h|Zend/zend_smart_string.h|' \
+ ${WRKSRC}/php_memcached_private.h
+.endif
+
+.include <bsd.port.post.mk>