summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-15 14:18:43 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-15 14:18:43 -0400
commit1f367931c8e234cc3ac1f20ec191f80aa3a91c2a (patch)
tree48a8bcbb52f5141b0d53f35e59335fec8df2aa09 /net-firewall/iptables
parentgitignore: add pkg_desc_index (diff)
downloadgentoo-1f367931c8e234cc3ac1f20ec191f80aa3a91c2a.tar.gz
gentoo-1f367931c8e234cc3ac1f20ec191f80aa3a91c2a.tar.bz2
gentoo-1f367931c8e234cc3ac1f20ec191f80aa3a91c2a.zip
net-firewall/iptables: fix configure enable flag parsing #557586
Diffstat (limited to 'net-firewall/iptables')
-rw-r--r--net-firewall/iptables/files/iptables-1.4.21-configure.patch34
-rw-r--r--net-firewall/iptables/iptables-1.4.21-r2.ebuild2
2 files changed, 36 insertions, 0 deletions
diff --git a/net-firewall/iptables/files/iptables-1.4.21-configure.patch b/net-firewall/iptables/files/iptables-1.4.21-configure.patch
new file mode 100644
index 000000000000..e827885f1688
--- /dev/null
+++ b/net-firewall/iptables/files/iptables-1.4.21-configure.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/557586
+
+From b24e59fba39120bfdb9e521bbd0af8f33a60466e Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sat, 15 Aug 2015 14:12:39 -0400
+Subject: [PATCH] configure: fix 3rd arg w/AC_ARG_ENABLE
+
+The 3rd arg is used when --{enable,disable}-foo are passed in, not when
+the feature is enabled. Use the existing $enableval instead.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/configure
++++ b/configure
+@@ -11898,14 +11898,14 @@ fi
+
+ # Check whether --enable-bpf-compiler was given.
+ if test "${enable_bpf_compiler+set}" = set; then :
+- enableval=$enable_bpf_compiler; enable_bpfc="yes"
++ enableval=$enable_bpf_compiler; enable_bpfc="$enableval"
+ else
+ enable_bpfc="no"
+ fi
+
+ # Check whether --enable-nfsynproxy was given.
+ if test "${enable_nfsynproxy+set}" = set; then :
+- enableval=$enable_nfsynproxy; enable_nfsynproxy="yes"
++ enableval=$enable_nfsynproxy; enable_nfsynproxy="$enableval"
+ else
+ enable_nfsynproxy="no"
+ fi
diff --git a/net-firewall/iptables/iptables-1.4.21-r2.ebuild b/net-firewall/iptables/iptables-1.4.21-r2.ebuild
index e70cf3346f99..268e0f7de373 100644
--- a/net-firewall/iptables/iptables-1.4.21-r2.ebuild
+++ b/net-firewall/iptables/iptables-1.4.21-r2.ebuild
@@ -34,6 +34,8 @@ src_prepare() {
# use the saner headers from the kernel
rm -f include/linux/{kernel,types}.h
+ epatch "${FILESDIR}"/${P}-configure.patch #557586
+
# Only run autotools if user patched something
epatch_user && eautoreconf || elibtoolize
}