---
 .../iptables-1.4.21-configure-with-ppc64le.patch   | 26 ++++++++++++++++++++++
 net-firewall/iptables/iptables-1.4.21-r1.ebuild    |  3 +++
 net-firewall/iptables/iptables-1.4.21-r2.ebuild    |  2 ++
 net-firewall/iptables/iptables-1.4.21-r3.ebuild    |  2 ++
 net-firewall/iptables/iptables-1.4.21-r4.ebuild    |  1 +
 5 files changed, 34 insertions(+)
 create mode 100644 
net-firewall/iptables/files/iptables-1.4.21-configure-with-ppc64le.patch

diff --git 
a/net-firewall/iptables/files/iptables-1.4.21-configure-with-ppc64le.patch 
b/net-firewall/iptables/files/iptables-1.4.21-configure-with-ppc64le.patch
new file mode 100644
index 0000000..58ebb6a
--- /dev/null
+++ b/net-firewall/iptables/files/iptables-1.4.21-configure-with-ppc64le.patch
@@ -0,0 +1,26 @@
+--- configure.orig     2016-04-08 14:03:11.035208027 -0400
++++ configure  2016-04-08 14:05:22.270056952 -0400
+@@ -6707,6 +6707,9 @@
+         ppc64-*linux*|powerpc64-*linux*)
+           LD="${LD-ld} -m elf32ppclinux"
+           ;;
++        ppc64le-*linux*|powerpc64le-*linux*)
++          LD="${LD-ld} -m elf32lppclinux"
++          ;;
+         s390x-*linux*)
+           LD="${LD-ld} -m elf_s390"
+           ;;
+@@ -6723,9 +6726,12 @@
+         x86_64-*linux*)
+           LD="${LD-ld} -m elf_x86_64"
+           ;;
+-        ppc*-*linux*|powerpc*-*linux*)
++        ppc64-*linux*|powerpc64-*linux*)
+           LD="${LD-ld} -m elf64ppc"
+           ;;
++        ppc64le-*linux*|powerpc64le-*linux*)
++          LD="${LD-ld} -m elf64lppc"
++          ;;
+         s390*-*linux*|s390*-*tpf*)
+           LD="${LD-ld} -m elf64_s390"
+           ;;
diff --git a/net-firewall/iptables/iptables-1.4.21-r1.ebuild 
b/net-firewall/iptables/iptables-1.4.21-r1.ebuild
index 056b1b4..288f2da 100644
--- a/net-firewall/iptables/iptables-1.4.21-r1.ebuild
+++ b/net-firewall/iptables/iptables-1.4.21-r1.ebuild
@@ -31,6 +31,9 @@ src_prepare() {
        # use the saner headers from the kernel
        rm -f include/linux/{kernel,types}.h
 
+       # fix the configure problem for ppc64le
+       epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
+
        # Only run autotools if user patched something
        epatch_user && eautoreconf || elibtoolize
 }
diff --git a/net-firewall/iptables/iptables-1.4.21-r2.ebuild 
b/net-firewall/iptables/iptables-1.4.21-r2.ebuild
index e87e4ed..1baaf2d 100644
--- a/net-firewall/iptables/iptables-1.4.21-r2.ebuild
+++ b/net-firewall/iptables/iptables-1.4.21-r2.ebuild
@@ -35,6 +35,8 @@ src_prepare() {
        rm -f include/linux/{kernel,types}.h
 
        epatch "${FILESDIR}"/${P}-configure.patch #557586
+       # fix the configure problem for ppc64le
+        epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
 
        # Only run autotools if user patched something
        epatch_user && eautoreconf || elibtoolize
diff --git a/net-firewall/iptables/iptables-1.4.21-r3.ebuild 
b/net-firewall/iptables/iptables-1.4.21-r3.ebuild
index ef4eb78..7eb801f 100644
--- a/net-firewall/iptables/iptables-1.4.21-r3.ebuild
+++ b/net-firewall/iptables/iptables-1.4.21-r3.ebuild
@@ -36,6 +36,8 @@ src_prepare() {
 
        epatch "${FILESDIR}"/${P}-configure.patch #557586
        epatch "${FILESDIR}"/${P}-static-connlabel-config.patch #558234
+        epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
+
 
        # Only run autotools if user patched something
        epatch_user && eautoreconf || elibtoolize
diff --git a/net-firewall/iptables/iptables-1.4.21-r4.ebuild 
b/net-firewall/iptables/iptables-1.4.21-r4.ebuild
index 49b9bd8..27c89fe 100644
--- a/net-firewall/iptables/iptables-1.4.21-r4.ebuild
+++ b/net-firewall/iptables/iptables-1.4.21-r4.ebuild
@@ -36,6 +36,7 @@ src_prepare() {
 
        epatch "${FILESDIR}"/${P}-configure.patch #557586
        epatch "${FILESDIR}"/${P}-static-connlabel-config.patch #558234
+       epatch "${FILESDIR}"/${P}-configure-with-ppc64le.patch
 
        # Only run autotools if user patched something
        epatch_user && eautoreconf || elibtoolize
-- 
1.9.1


Reply via email to