git: 1d8b7f5114e6 - main - databases/pecl-redis: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:44 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1d8b7f5114e6dcc7b22b362b2bb3162e2bef6ec9
commit 1d8b7f5114e6dcc7b22b362b2bb3162e2bef6ec9
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:21:41 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:46:01 +0000
databases/pecl-redis: Fix build with php85
Approved by: portmgr (blanket)
---
databases/pecl-redis/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/databases/pecl-redis/Makefile b/databases/pecl-redis/Makefile
index 8436e112db52..7f1e5dd08253 100644
--- a/databases/pecl-redis/Makefile
+++ b/databases/pecl-redis/Makefile
@@ -18,4 +18,12 @@ IGBINARY_DESC= Build with Igbinary serializer
IGBINARY_USE= PHP=igbinary:build
IGBINARY_CONFIGURE_ENABLE= redis-igbinary
-.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}/common.h
+.endif
+
+.include <bsd.port.post.mk>