From e73f9de71ba9c9b51a4c4e55bbc7b94e795470ec Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Tue, 7 May 2024 21:32:54 +0900 Subject: [PATCH] app-text/namazu: fix configure Closes: https://bugs.gentoo.org/900182 Signed-off-by: Akinori Hattori --- 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(+) create mode 100644 app-text/namazu/files/namazu-configure.patch diff --git a/app-text/namazu/files/namazu-configure.patch b/app-text/namazu/files/namazu-configure.patch new file mode 100644 index 0000000000000..02b6fcde8dc6f --- /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 ++#include ++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 be73f786452f4..1bb859ef8de6f 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 6dab831697ff9..55d8fa5444e9f 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 )