Date: Fri, 28 Nov 2025 10:40:42 +0000 From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9c7ee1cdd4cf - main - devel/arcanist-lib: Fix runtime with php82 and later Message-ID: <69297c2a.3a450.30eb038@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=9c7ee1cdd4cfd2fa04f6f494ce2fff33c9d03be6 commit 9c7ee1cdd4cfd2fa04f6f494ce2fff33c9d03be6 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2025-11-28 10:08:49 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2025-11-28 10:39:57 +0000 devel/arcanist-lib: Fix runtime with php82 and later Approved by: portmgr (blanket) --- devel/arcanist-lib/Makefile | 6 +++++- devel/arcanist-lib/files/extra-patch-src_utils_utf8.php | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/devel/arcanist-lib/Makefile b/devel/arcanist-lib/Makefile index 599929d5716b..54ae80538f67 100644 --- a/devel/arcanist-lib/Makefile +++ b/devel/arcanist-lib/Makefile @@ -1,6 +1,6 @@ PORTNAME?= arcanist PORTVERSION?= 20220518 -PORTREVISION?= 9 +PORTREVISION?= 10 CATEGORIES?= devel PKGNAMESUFFIX= ${SLAVE_PKGNAMESUFFIX}${PHP_PKGNAMESUFFIX} @@ -52,6 +52,10 @@ PLIST_FILES= bin/arc .include <bsd.port.pre.mk> +.if ${PHP_VER} >= 82 +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_utils_utf8.php +.endif + .if ${PHP_VER} >= 83 post-patch: @${REINPLACE_CMD} -e 's/ | E_STRICT//' ${WRKSRC}/support/init/init-script.php diff --git a/devel/arcanist-lib/files/extra-patch-src_utils_utf8.php b/devel/arcanist-lib/files/extra-patch-src_utils_utf8.php new file mode 100644 index 000000000000..c4f585d17264 --- /dev/null +++ b/devel/arcanist-lib/files/extra-patch-src_utils_utf8.php @@ -0,0 +1,12 @@ +--- src/utils/utf8.php.orig 2025-11-28 10:05:46 UTC ++++ src/utils/utf8.php +@@ -288,9 +288,6 @@ function phutil_utf8_strlen($string) { + * @return int The character length of the string. + */ + function phutil_utf8_strlen($string) { +- if (function_exists('utf8_decode')) { +- return strlen(utf8_decode($string)); +- } + return count(phutil_utf8v($string)); + } +home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69297c2a.3a450.30eb038>
