net-firewall/iptables: avoid autoreconf
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 9 Jul 2018 22:06:07 +0000 (00:06 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 9 Jul 2018 22:06:33 +0000 (00:06 +0200)
Bug: https://bugs.gentoo.org/660790
Package-Manager: Portage-2.3.41, Repoman-2.3.9

net-firewall/iptables/iptables-1.8.0.ebuild

index d4cee0085fc1b5bcf6d19b564312f9ca215cd558..e8e9447e3dd0b1b7c14f19e93f5b83487567e34a 100644 (file)
@@ -41,15 +41,15 @@ RDEPEND="${COMMON_DEPEND}
        nftables? ( net-misc/ethertypes )
 "
 
-PATCHES=( "${FILESDIR}"/iptables-1.8.0-fix-building-without-nft-backend.patch )
-
 src_prepare() {
+       eapply "${FILESDIR}"/iptables-1.8.0-fix-building-without-nft-backend.patch
+       touch -r configure extensions/GNUmakefile.in || die
+
        # use the saner headers from the kernel
        rm -f include/linux/{kernel,types}.h
 
-       default
-
-       eautoreconf
+       # Only run autotools if user patched something
+       eapply_user && eautoreconf || elibtoolize
 }
 
 src_configure() {