commit:     e73f9de71ba9c9b51a4c4e55bbc7b94e795470ec
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue May  7 12:32:54 2024 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue May  7 12:37:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e73f9de7

app-text/namazu: fix configure

Closes: https://bugs.gentoo.org/900182
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-text/namazu/files/namazu-configure.patch | 13 +++++++++++++
 app-text/namazu/namazu-2.0.21.ebuild         |  1 +
 app-text/namazu/namazu-2.0.22_pre8.ebuild    |  1 +
 3 files changed, 15 insertions(+)

diff --git a/app-text/namazu/files/namazu-configure.patch 
b/app-text/namazu/files/namazu-configure.patch
new file mode 100644
index 000000000000..02b6fcde8dc6
--- /dev/null
+++ b/app-text/namazu/files/namazu-configure.patch
@@ -0,0 +1,13 @@
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -165,7 +165,9 @@
+ [AC_TRY_RUN(
+ changequote(<<, >>)dnl
+ <<
+-main()
++#include <stdlib.h>
++#include <string.h>
++int main(void)
+ {
+   /* Some versions of memcmp are not 8-bit clean.  */
+   char c0 = 0x40, c1 = 0x80, c2 = 0x81;

diff --git a/app-text/namazu/namazu-2.0.21.ebuild 
b/app-text/namazu/namazu-2.0.21.ebuild
index be73f786452f..1bb859ef8de6 100644
--- a/app-text/namazu/namazu-2.0.21.ebuild
+++ b/app-text/namazu/namazu-2.0.21.ebuild
@@ -35,6 +35,7 @@ BDEPEND="nls? ( sys-devel/gettext )"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-gentoo.patch
+       "${FILESDIR}"/${PN}-configure.patch
        "${FILESDIR}"/${PN}-emacs-27.patch
        "${FILESDIR}"/${PN}-perl-5.18.patch
        "${FILESDIR}"/${PN}-perl-5.26.patch

diff --git a/app-text/namazu/namazu-2.0.22_pre8.ebuild 
b/app-text/namazu/namazu-2.0.22_pre8.ebuild
index 6dab831697ff..55d8fa5444e9 100644
--- a/app-text/namazu/namazu-2.0.22_pre8.ebuild
+++ b/app-text/namazu/namazu-2.0.22_pre8.ebuild
@@ -38,6 +38,7 @@ S="${WORKDIR}"/${MY_P}
 
 PATCHES=(
        "${FILESDIR}"/${PN}-gentoo.patch
+       "${FILESDIR}"/${PN}-configure.patch
        "${FILESDIR}"/${PN}-underlinking.patch
 )
 

Reply via email to