1 |
commit: 3a10deb82c1bcadbc0977d26dce8650c2bf5ba0a |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 9 14:51:42 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 9 14:51:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a10deb8 |
7 |
|
8 |
net-firewall/iptables: fix building with USE=-nftables |
9 |
|
10 |
Closes: https://bugs.gentoo.org/660790 |
11 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
12 |
|
13 |
...es-1.8.0-fix-building-without-nft-backend.patch | 26 ++++++++++++++++++++++ |
14 |
net-firewall/iptables/iptables-1.8.0.ebuild | 7 ++++-- |
15 |
2 files changed, 31 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-firewall/iptables/files/iptables-1.8.0-fix-building-without-nft-backend.patch b/net-firewall/iptables/files/iptables-1.8.0-fix-building-without-nft-backend.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..6b19c87678b |
20 |
--- /dev/null |
21 |
+++ b/net-firewall/iptables/files/iptables-1.8.0-fix-building-without-nft-backend.patch |
22 |
@@ -0,0 +1,26 @@ |
23 |
+extensions: don't bother to build libebt/libarp extensions if nft backend was disabled |
24 |
+ |
25 |
+Bug: https://bugs.gentoo.org/660790 |
26 |
+Reported-by: Thomas Deutschmann <whissi@g.o> |
27 |
+Signed-off-by: Florian Westphal <fw@××××××.de> |
28 |
+--- |
29 |
+ extensions/GNUmakefile.in | 4 ++-- |
30 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
31 |
+ |
32 |
+diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in |
33 |
+index bee666e80e45..c0d73cd28c03 100644 |
34 |
+--- a/extensions/GNUmakefile.in |
35 |
++++ b/extensions/GNUmakefile.in |
36 |
+@@ -40,8 +40,8 @@ endif |
37 |
+ # Wildcard module list |
38 |
+ # |
39 |
+ pfx_build_mod := $(patsubst ${srcdir}/libxt_%.c,%,$(sort $(wildcard ${srcdir}/libxt_*.c))) |
40 |
+-pfb_build_mod := $(patsubst ${srcdir}/libebt_%.c,%,$(sort $(wildcard ${srcdir}/libebt_*.c))) |
41 |
+-pfa_build_mod := $(patsubst ${srcdir}/libarpt_%.c,%,$(sort $(wildcard ${srcdir}/libarpt_*.c))) |
42 |
++@ENABLE_NFTABLES_TRUE@ pfb_build_mod := $(patsubst ${srcdir}/libebt_%.c,%,$(sort $(wildcard ${srcdir}/libebt_*.c))) |
43 |
++@ENABLE_NFTABLES_TRUE@ pfa_build_mod := $(patsubst ${srcdir}/libarpt_%.c,%,$(sort $(wildcard ${srcdir}/libarpt_*.c))) |
44 |
+ pfx_symlinks := NOTRACK state |
45 |
+ @ENABLE_IPV4_TRUE@ pf4_build_mod := $(patsubst ${srcdir}/libipt_%.c,%,$(sort $(wildcard ${srcdir}/libipt_*.c))) |
46 |
+ @ENABLE_IPV6_TRUE@ pf6_build_mod := $(patsubst ${srcdir}/libip6t_%.c,%,$(sort $(wildcard ${srcdir}/libip6t_*.c))) |
47 |
+-- |
48 |
+2.17.1 |
49 |
|
50 |
diff --git a/net-firewall/iptables/iptables-1.8.0.ebuild b/net-firewall/iptables/iptables-1.8.0.ebuild |
51 |
index 78051935b05..d4cee0085fc 100644 |
52 |
--- a/net-firewall/iptables/iptables-1.8.0.ebuild |
53 |
+++ b/net-firewall/iptables/iptables-1.8.0.ebuild |
54 |
@@ -41,12 +41,15 @@ RDEPEND="${COMMON_DEPEND} |
55 |
nftables? ( net-misc/ethertypes ) |
56 |
" |
57 |
|
58 |
+PATCHES=( "${FILESDIR}"/iptables-1.8.0-fix-building-without-nft-backend.patch ) |
59 |
+ |
60 |
src_prepare() { |
61 |
# use the saner headers from the kernel |
62 |
rm -f include/linux/{kernel,types}.h |
63 |
|
64 |
- # Only run autotools if user patched something |
65 |
- eapply_user && eautoreconf || elibtoolize |
66 |
+ default |
67 |
+ |
68 |
+ eautoreconf |
69 |
} |
70 |
|
71 |
src_configure() { |