commit: 19afa78e9acb241201c7beb58587c1b5fa4919b3 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 30 09:16:26 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 30 09:18:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19afa78e
net-firewall/iptables: tests need nftables Bug: https://bugs.gentoo.org/890628 Signed-off-by: Sam James <sam <AT> gentoo.org> net-firewall/iptables/iptables-1.8.10.ebuild | 5 ++++- net-firewall/iptables/iptables-1.8.9-r1.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/net-firewall/iptables/iptables-1.8.10.ebuild b/net-firewall/iptables/iptables-1.8.10.ebuild index 1a6b39f5f98a..2413f6f65e43 100644 --- a/net-firewall/iptables/iptables-1.8.10.ebuild +++ b/net-firewall/iptables/iptables-1.8.10.ebuild @@ -14,7 +14,10 @@ LICENSE="GPL-2" # the last time. SLOT="0/1.8.3" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="conntrack netlink nftables pcap static-libs" +IUSE="conntrack netlink nftables pcap static-libs test" +RESTRICT="!test? ( test )" +# TODO: skip tests needing nftables if no xtables-nft-multi (bug #890628) +REQUIRED_USE="test? ( nftables )" COMMON_DEPEND=" conntrack? ( >=net-libs/libnetfilter_conntrack-1.0.6 ) diff --git a/net-firewall/iptables/iptables-1.8.9-r1.ebuild b/net-firewall/iptables/iptables-1.8.9-r1.ebuild index a69af11c227a..0631c0ae7762 100644 --- a/net-firewall/iptables/iptables-1.8.9-r1.ebuild +++ b/net-firewall/iptables/iptables-1.8.9-r1.ebuild @@ -14,7 +14,10 @@ LICENSE="GPL-2" # the last time. SLOT="0/1.8.3" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="conntrack netlink nftables pcap static-libs" +IUSE="conntrack netlink nftables pcap static-libs test" +RESTRICT="!test? ( test )" +# TODO: skip tests needing nftables if no xtables-nft-multi (bug #890628) +REQUIRED_USE="test? ( nftables )" COMMON_DEPEND=" conntrack? ( >=net-libs/libnetfilter_conntrack-1.0.6 )
