diff --git a/devel/libgnuregex/Makefile b/devel/libgnuregex/Makefile index 97b562041893..6b5ee1e71b34 100644 --- a/devel/libgnuregex/Makefile +++ b/devel/libgnuregex/Makefile @@ -1,48 +1,50 @@ PORTNAME= libgnuregex PORTVERSION= 6.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= # Nothing to fetch DISTFILES= # Nothing to fetch MAINTAINER= kevans@FreeBSD.org COMMENT= GNU Regex Library WWW= https://www.gnu.org/software/gnulib/ LICENSE= LGPL20+ EXTRACT_DEPENDS= gnulib>0:devel/gnulib USES= uidfix USE_LDCONFIG= yes CFLAGS= -I${WRKSRC} MAKE_ENV+= INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib" REGEX_FILES= lib/attribute.h \ lib/cdefs.h \ lib/dynarray.h \ lib/gettext.h \ lib/intprops.h \ lib/intprops-internal.h \ lib/libc-config.h \ lib/regex.c \ lib/regex.h \ lib/regex_internal.c \ lib/regex_internal.h \ lib/regexec.c \ lib/regcomp.c \ lib/verify.h REGEX_MALLOC_FILES= lib/malloc/dynarray.h \ + lib/malloc/dynarray_resize.c \ lib/malloc/dynarray-skeleton.c do-extract: ${MKDIR} -p ${WRKSRC}/malloc ${CP} -a ${REGEX_FILES:C,^,${LOCALBASE}/share/gnulib/,} ${WRKSRC} ${CP} -a ${REGEX_MALLOC_FILES:C,^,${LOCALBASE}/share/gnulib/,} ${WRKSRC}/malloc ${CP} -a ${FILESDIR}/config.h ${FILESDIR}/gnuregex.h \ ${FILESDIR}/Makefile ${WRKSRC} pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/include/gnu .include diff --git a/devel/libgnuregex/files/patch-regex.c b/devel/libgnuregex/files/patch-regex.c index 68a84ef0d3b3..2b1a6f596ced 100644 --- a/devel/libgnuregex/files/patch-regex.c +++ b/devel/libgnuregex/files/patch-regex.c @@ -1,10 +1,18 @@ --- regex.c.orig 2026-01-27 18:52:19 UTC +++ regex.c @@ -63,6 +63,7 @@ GNU regex allows. Include it before , which correctly #undefs RE_DUP_MAX and sets it to the right value. */ #include +#include #include #include "regex_internal.h" +@@ -70,6 +71,7 @@ + #include "regex_internal.c" + #include "regcomp.c" + #include "regexec.c" ++#include "malloc/dynarray_resize.c" + + /* Binary backward compatibility. */ + #if _LIBC