From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 99930138334 for ; Wed, 24 Oct 2018 13:26:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68BE5E096E; Wed, 24 Oct 2018 13:26:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 324B0E096E for ; Wed, 24 Oct 2018 13:26:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 18EFB335CB7 for ; Wed, 24 Oct 2018 13:26:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F0A4E3F1 for ; Wed, 24 Oct 2018 13:26:41 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1540387593.281ad1c5b4f2d41492b69aaf169f5fa6ea1ab20b.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/iptables/files/, net-firewall/iptables/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-firewall/iptables/files/iptables-1.8.1-build_limit_without_libnftnl_fix.patch net-firewall/iptables/iptables-1.8.1.ebuild X-VCS-Directories: net-firewall/iptables/files/ net-firewall/iptables/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 281ad1c5b4f2d41492b69aaf169f5fa6ea1ab20b X-VCS-Branch: master Date: Wed, 24 Oct 2018 13:26:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 50b3f991-af66-4c97-b60b-a87b75b4fffd X-Archives-Hash: 8ca046ca563af3437e36bcd334c6bee0 commit: 281ad1c5b4f2d41492b69aaf169f5fa6ea1ab20b Author: Lars Wendler gentoo org> AuthorDate: Wed Oct 24 13:26:18 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Wed Oct 24 13:26:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281ad1c5 net-firewall/iptables: Fixed build with USE="-nftables" Closes: https://bugs.gentoo.org/669486 Signed-off-by: Lars Wendler gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 ...es-1.8.1-build_limit_without_libnftnl_fix.patch | 44 ++++++++++++++++++++++ net-firewall/iptables/iptables-1.8.1.ebuild | 2 + 2 files changed, 46 insertions(+) diff --git a/net-firewall/iptables/files/iptables-1.8.1-build_limit_without_libnftnl_fix.patch b/net-firewall/iptables/files/iptables-1.8.1-build_limit_without_libnftnl_fix.patch new file mode 100644 index 00000000000..a0fca7efa93 --- /dev/null +++ b/net-firewall/iptables/files/iptables-1.8.1-build_limit_without_libnftnl_fix.patch @@ -0,0 +1,44 @@ +From b2fc2a368562d55fadad94d995247bb8cd7e68a3 Mon Sep 17 00:00:00 2001 +From: Florian Westphal +Date: Wed, 24 Oct 2018 12:00:11 +0200 +Subject: extensions: limit: unbreak build without libnftnl + +Lars Wendler reported 1.8.1 build failure when trying to build without nft backend: + + In file included from ../iptables/nft.h:5, from libxt_limit.c:18: libnftnl/rule.h: No such file or directory + +Reported-by: Lars Wendler +Fixes: 02b80972c43 ("ebtables: Merge libebt_limit.c into libxt_limit.c") +Signed-off-by: Florian Westphal +--- + extensions/libxt_limit.c | 1 - + iptables/nft-bridge.h | 1 + + 2 files changed, 1 insertion(+), 1 deletion(-) + +diff --git a/extensions/libxt_limit.c b/extensions/libxt_limit.c +index c7b66295..1b324657 100644 +--- a/extensions/libxt_limit.c ++++ b/extensions/libxt_limit.c +@@ -15,7 +15,6 @@ + #include + #include + #include +-#include "iptables/nft.h" + #include "iptables/nft-bridge.h" + + #define XT_LIMIT_AVG "3/hour" +diff --git a/iptables/nft-bridge.h b/iptables/nft-bridge.h +index 9d49ccbe..de52cd71 100644 +--- a/iptables/nft-bridge.h ++++ b/iptables/nft-bridge.h +@@ -68,6 +68,7 @@ int ebt_get_mac_and_mask(const char *from, unsigned char *to, unsigned char *mas + #define EBT_VERDICT_BITS 0x0000000F + + struct nftnl_rule; ++struct iptables_command_state; + + static const char *ebt_standard_targets[NUM_STANDARD_TARGETS] = { + "ACCEPT", +-- +cgit v1.2.1 + diff --git a/net-firewall/iptables/iptables-1.8.1.ebuild b/net-firewall/iptables/iptables-1.8.1.ebuild index 043562633bd..3db0cde5904 100644 --- a/net-firewall/iptables/iptables-1.8.1.ebuild +++ b/net-firewall/iptables/iptables-1.8.1.ebuild @@ -42,6 +42,8 @@ RDEPEND="${COMMON_DEPEND} " src_prepare() { + eapply "${FILESDIR}/${P}-build_limit_without_libnftnl_fix.patch" #669486 + # use the saner headers from the kernel rm -f include/linux/{kernel,types}.h