summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2024-05-07 21:32:54 +0900
committerAkinori Hattori <hattya@gentoo.org>2024-05-07 21:37:52 +0900
commite73f9de71ba9c9b51a4c4e55bbc7b94e795470ec (patch)
treece999b19005d22446dc08ff5d256d9b738e88db6
parentapp-text/namazu: fix build with Clang (diff)
downloadgentoo-e73f9de71ba9c9b51a4c4e55bbc7b94e795470ec.tar.gz
gentoo-e73f9de71ba9c9b51a4c4e55bbc7b94e795470ec.tar.bz2
gentoo-e73f9de71ba9c9b51a4c4e55bbc7b94e795470ec.zip
app-text/namazu: fix configure
Closes: https://bugs.gentoo.org/900182 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
-rw-r--r--app-text/namazu/files/namazu-configure.patch13
-rw-r--r--app-text/namazu/namazu-2.0.21.ebuild1
-rw-r--r--app-text/namazu/namazu-2.0.22_pre8.ebuild1
3 files changed, 15 insertions, 0 deletions
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
)