commit:     1f2448146af74f910ee39d069de31aa1d14763fb
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue May  7 12:31:12 2024 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue May  7 12:37:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f244814

app-text/namazu: fix build with Clang

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

 app-text/namazu/files/namazu-underlinking.patch | 11 +++++++++++
 app-text/namazu/namazu-2.0.21.ebuild            |  3 ++-
 app-text/namazu/namazu-2.0.22_pre8.ebuild       |  7 +++++--
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/app-text/namazu/files/namazu-underlinking.patch 
b/app-text/namazu/files/namazu-underlinking.patch
new file mode 100644
index 000000000000..04af7c21d998
--- /dev/null
+++ b/app-text/namazu/files/namazu-underlinking.patch
@@ -0,0 +1,11 @@
+--- a/nmz/Makefile.am
++++ b/nmz/Makefile.am
+@@ -47,7 +47,7 @@
+       nmzversion.c
+ 
+ libnmz_la_DEPENDENCIES = @NMZ_LIBOBJS@
+-libnmz_la_LIBADD = @LTLIBINTL@
++libnmz_la_LIBADD = @LTLIBINTL@ @NMZ_LIBOBJS@
+ libnmz_la_LDFLAGS = -version-info $(LTVERSION)
+ 
+ nmzversion.c: nmzversion.c.in

diff --git a/app-text/namazu/namazu-2.0.21.ebuild 
b/app-text/namazu/namazu-2.0.21.ebuild
index ef46e76118df..be73f786452f 100644
--- a/app-text/namazu/namazu-2.0.21.ebuild
+++ b/app-text/namazu/namazu-2.0.21.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -38,6 +38,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-emacs-27.patch
        "${FILESDIR}"/${PN}-perl-5.18.patch
        "${FILESDIR}"/${PN}-perl-5.26.patch
+       "${FILESDIR}"/${PN}-underlinking.patch
        "${FILESDIR}"/${P}-memmove.patch
 )
 

diff --git a/app-text/namazu/namazu-2.0.22_pre8.ebuild 
b/app-text/namazu/namazu-2.0.22_pre8.ebuild
index 4c8146e3b313..6dab831697ff 100644
--- a/app-text/namazu/namazu-2.0.22_pre8.ebuild
+++ b/app-text/namazu/namazu-2.0.22_pre8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -36,7 +36,10 @@ DEPEND="${RDEPEND}"
 BDEPEND="nls? ( sys-devel/gettext )"
 S="${WORKDIR}"/${MY_P}
 
-PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-gentoo.patch
+       "${FILESDIR}"/${PN}-underlinking.patch
+)
 
 src_prepare() {
        default

Reply via email to