net-firewall/iptables: Fix USE="conntrack static-libs" compilation
authorSebastian Pipping <sping@gentoo.org>
Tue, 31 Dec 2019 18:08:06 +0000 (19:08 +0100)
committerSebastian Pipping <sping@gentoo.org>
Tue, 31 Dec 2019 18:11:24 +0000 (19:11 +0100)
Closes: https://bugs.gentoo.org/586106
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-2.3.83, Repoman-2.3.20

net-firewall/iptables/files/iptables-1.8.2-link.patch [new file with mode: 0644]
net-firewall/iptables/iptables-1.8.2-r2.ebuild
net-firewall/iptables/iptables-1.8.3-r1.ebuild
net-firewall/iptables/iptables-1.8.4.ebuild

diff --git a/net-firewall/iptables/files/iptables-1.8.2-link.patch b/net-firewall/iptables/files/iptables-1.8.2-link.patch
new file mode 100644 (file)
index 0000000..c20f2e5
--- /dev/null
@@ -0,0 +1,24 @@
+From ee4fc7c558d9eb9c37035250046d4eac9af3fa28 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Thu, 27 Dec 2018 23:47:33 +0100
+Subject: [PATCH] Fix link errors for USE="conntrack static-libs" (bug #586106)
+
+---
+ iptables/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/iptables/Makefile.am b/iptables/Makefile.am
+index 581dc32..2c3db86 100644
+--- a/iptables/Makefile.am
++++ b/iptables/Makefile.am
+@@ -26,6 +26,7 @@ xtables_legacy_multi_LDADD   += ../libiptc/libip6tc.la ../extensions/libext6.a
+ endif
+ xtables_legacy_multi_SOURCES += xshared.c
+ xtables_legacy_multi_LDADD   += ../libxtables/libxtables.la -lm
++xtables_legacy_multi_LDADD   += ${libnetfilter_conntrack_LIBS}
+ # iptables using nf_tables api
+ if ENABLE_NFTABLES
+-- 
+2.19.1
+
index 65bb18d8aad2f33d222f37aaac65caddf39d7f7f..6fdac74e6d4b3a3ba2ba26de375ecce466beb42f 100644 (file)
@@ -45,8 +45,9 @@ src_prepare() {
        # use the saner headers from the kernel
        rm -f include/linux/{kernel,types}.h
 
-       # Only run autotools if user patched something
-       eapply_user && eautoreconf || elibtoolize
+       eapply "${FILESDIR}"/${P}-link.patch
+       eapply_user
+       eautoreconf
 }
 
 src_configure() {
index 108426718102950dfaeb86a88429e1b114ebcebe..52246a8ac413ab56de6a0d6e0d7031f2d9dd775e 100644 (file)
@@ -47,8 +47,9 @@ src_prepare() {
        # use the saner headers from the kernel
        rm include/linux/{kernel,types}.h || die
 
-       # Only run autotools if user patched something
-       eapply_user && eautoreconf || elibtoolize
+       eapply "${FILESDIR}"/${PN}-1.8.2-link.patch
+       eapply_user
+       eautoreconf
 }
 
 src_configure() {
index 890475e4e57d1fc602dfdae366e77a3fc5c26cf9..8cb78dfb30bef0d38b575e1db93cd96c7b595adf 100644 (file)
@@ -47,8 +47,9 @@ src_prepare() {
        # use the saner headers from the kernel
        rm include/linux/{kernel,types}.h || die
 
-       # Only run autotools if user patched something
-       eapply_user && eautoreconf || elibtoolize
+       eapply "${FILESDIR}"/${PN}-1.8.2-link.patch
+       eapply_user
+       eautoreconf
 }
 
 src_configure() {