Here's an update to the latest release of devel/pcre2.

While we apparently missed out on a security issue by skipping
10.45 (introducing the problem) and 10.46 (fixing the problem),
10.47 seems to contain a pretty significant bugfix

https://github.com/PCRE2Project/pcre2/releases

Given the amount of consumers, I guess that's something worth
putting in a bulk?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/pcre2/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- Makefile	18 Dec 2024 09:40:10 -0000	1.21
+++ Makefile	18 May 2026 17:41:07 -0000
@@ -1,16 +1,16 @@
 COMMENT =	perl-compatible regular expression library, version 2
 
-DISTNAME =	pcre2-10.44
-
-SHARED_LIBS +=  pcre2-16                  0.6 # 13.0
-SHARED_LIBS +=  pcre2-32                  0.6 # 13.0
-SHARED_LIBS +=  pcre2-8                   0.7 # 13.0
+V =		10.47
+PKGNAME=	pcre2-${V}
+DIST_TUPLE =	github PCRE2Project pcre2 pcre2-${V} .
+
+SHARED_LIBS +=  pcre2-16                  0.7 # 13.0
+SHARED_LIBS +=  pcre2-32                  0.7 # 13.0
+SHARED_LIBS +=  pcre2-8                   0.8 # 13.0
 SHARED_LIBS +=  pcre2-posix               1.0 # 3.5
 
 CATEGORIES =	devel
 
-SITES =		https://github.com/PCRE2Project/pcre2/releases/download/${DISTNAME}/
-
 HOMEPAGE =	https://pcre2project.github.io/pcre2/
 MAINTAINER =	Nam Nguyen <[email protected]>
 
@@ -26,7 +26,9 @@ CONFIGURE_ARGS =	--enable-pcre2-16 \
 			--enable-pcre2-32 \
 			--enable-pcre2grep-libz \
 			--enable-pcre2grep-libbz2 \
-			--enable-pcre2test-libreadline
+			--enable-pcre2test-libreadline \
+			--disable-symvers
+
 # explicitly disable JIT that would require WXNEEDED
 CONFIGURE_ARGS +=	--disable-jit
 CONFIGURE_ENV =		CPPFLAGS="-I${LOCALBASE}/include" \
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/pcre2/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo	18 Dec 2024 09:40:10 -0000	1.10
+++ distinfo	18 May 2026 17:41:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (pcre2-10.44.tar.gz) = hrnLCqO8t5lPqogBgpK8cEzbtwjnhffHQ1L/bqfTF1s=
-SIZE (pcre2-10.44.tar.gz) = 2552792
+SHA256 (PCRE2Project-pcre2-pcre2-10.47.tar.gz) = QJxENUmxOyFtpABJhQoy8+bFfUIkqxFVOrWnhoeKFY4=
+SIZE (PCRE2Project-pcre2-pcre2-10.47.tar.gz) = 3354275
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/pcre2/pkg/PLIST,v
retrieving revision 1.7
diff -u -p -r1.7 PLIST
--- pkg/PLIST	18 Dec 2024 09:40:10 -0000	1.7
+++ pkg/PLIST	18 May 2026 17:41:07 -0000
@@ -62,6 +62,7 @@ lib/pkgconfig/libpcre2-posix.pc
 @man man/man3/pcre2_match_data_create.3
 @man man/man3/pcre2_match_data_create_from_pattern.3
 @man man/man3/pcre2_match_data_free.3
+@man man/man3/pcre2_next_match.3
 @man man/man3/pcre2_pattern_convert.3
 @man man/man3/pcre2_pattern_info.3
 @man man/man3/pcre2_serialize_decode.3
@@ -83,10 +84,12 @@ lib/pkgconfig/libpcre2-posix.pc
 @man man/man3/pcre2_set_max_varlookbehind.3
 @man man/man3/pcre2_set_newline.3
 @man man/man3/pcre2_set_offset_limit.3
+@man man/man3/pcre2_set_optimize.3
 @man man/man3/pcre2_set_parens_nest_limit.3
 @man man/man3/pcre2_set_recursion_limit.3
 @man man/man3/pcre2_set_recursion_memory_management.3
 @man man/man3/pcre2_set_substitute_callout.3
+@man man/man3/pcre2_set_substitute_case_callout.3
 @man man/man3/pcre2_substitute.3
 @man man/man3/pcre2_substring_copy_byname.3
 @man man/man3/pcre2_substring_copy_bynumber.3
@@ -117,9 +120,10 @@ lib/pkgconfig/libpcre2-posix.pc
 @man man/man3/pcre2syntax.3
 @man man/man3/pcre2unicode.3
 share/doc/pcre2/
-share/doc/pcre2/AUTHORS
+share/doc/pcre2/AUTHORS.md
 share/doc/pcre2/COPYING
 share/doc/pcre2/ChangeLog
-share/doc/pcre2/LICENCE
+share/doc/pcre2/LICENCE.md
 share/doc/pcre2/NEWS
 share/doc/pcre2/README
+share/doc/pcre2/SECURITY.md

Reply via email to