commit:     32ae3fc56ade04110f1cd082748bb2ef95f29694
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 18 05:38:35 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 18 05:59:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32ae3fc5

app-misc/regex-markup: fix modern C issue in configure

Closes: https://bugs.gentoo.org/923618
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/regex-markup/files/regex-markup-0.10.0-c99.patch     | 11 +++++++++++
 ...-markup-0.10.0-r2.ebuild => regex-markup-0.10.0-r3.ebuild} |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/app-misc/regex-markup/files/regex-markup-0.10.0-c99.patch 
b/app-misc/regex-markup/files/regex-markup-0.10.0-c99.patch
new file mode 100644
index 000000000000..4988b57e9d75
--- /dev/null
+++ b/app-misc/regex-markup/files/regex-markup-0.10.0-c99.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/923618
+--- a/m4/regex.m4
++++ b/m4/regex.m4
+@@ -34,6 +34,7 @@ AC_DEFUN([gl_INCLUDED_REGEX],
+                  jm_cv_func_working_re_compile_pattern,
+       AC_TRY_RUN(
+ [#include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <regex.h>
+         int

diff --git a/app-misc/regex-markup/regex-markup-0.10.0-r2.ebuild 
b/app-misc/regex-markup/regex-markup-0.10.0-r3.ebuild
similarity index 91%
rename from app-misc/regex-markup/regex-markup-0.10.0-r2.ebuild
rename to app-misc/regex-markup/regex-markup-0.10.0-r3.ebuild
index cee94b1f3d2f..e31d3e2708db 100644
--- a/app-misc/regex-markup/regex-markup-0.10.0-r2.ebuild
+++ b/app-misc/regex-markup/regex-markup-0.10.0-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -17,6 +17,7 @@ IUSE="examples nls"
 PATCHES=(
        "${FILESDIR}"/${P}-locale.patch
        "${FILESDIR}"/${PN}-0.10.0-r2-configure.patch
+       "${FILESDIR}"/${PN}-0.10.0-c99.patch
 )
 
 src_prepare() {

Reply via email to