commit: 624c189ab990ca7f9ef45c046b8d1dd60b66a151
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 21 23:15:23 2021 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Jan 21 23:15:37 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=624c189a
net-firewall/nftables: Fixed build with sys-devel/slibtool
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
net-firewall/nftables/files/nftables-0.9.8-slibtool.patch | 13 +++++++++++++
net-firewall/nftables/nftables-0.9.8.ebuild | 4 ++++
2 files changed, 17 insertions(+)
diff --git a/net-firewall/nftables/files/nftables-0.9.8-slibtool.patch
b/net-firewall/nftables/files/nftables-0.9.8-slibtool.patch
new file mode 100644
index 00000000000..a92645f793c
--- /dev/null
+++ b/net-firewall/nftables/files/nftables-0.9.8-slibtool.patch
@@ -0,0 +1,13 @@
+This fixes build with sys-devel/slibtool
+
+--- nftables-0.9.8/src/Makefile.am
++++ nftables-0.9.8/src/Makefile.am
+@@ -90,7 +90,7 @@
+
+ libnftables_la_LIBADD = ${LIBMNL_LIBS} ${LIBNFTNL_LIBS} libparser.la
+ libnftables_la_LDFLAGS = -version-info ${libnftables_LIBVERSION} \
+- --version-script=$(srcdir)/libnftables.map
++ -Wl,--version-script=$(srcdir)/libnftables.map
+
+ if BUILD_MINIGMP
+ noinst_LTLIBRARIES += libminigmp.la
diff --git a/net-firewall/nftables/nftables-0.9.8.ebuild
b/net-firewall/nftables/nftables-0.9.8.ebuild
index da74dfce922..626037ea8e8 100644
--- a/net-firewall/nftables/nftables-0.9.8.ebuild
+++ b/net-firewall/nftables/nftables-0.9.8.ebuild
@@ -40,6 +40,10 @@ REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.9.8-slibtool.patch"
+)
+
python_make() {
emake \
-C py \