Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627872 - net-analyzer/fail2ban: drop net-firewall/iptables dependency
Summary: net-analyzer/fail2ban: drop net-firewall/iptables dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 683360 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-14 18:42 UTC by Joe
Modified: 2019-04-14 23:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe 2017-08-14 18:42:34 UTC
As of fail2ban-0.9.7.ebuild iptables is listed as a mandatory requirement. A few versions back nftables support was added to fail2ban. So currently fail2ban is pulling in net-firewall/iptables even though it is not required for a nftables based firewall.

Please introduce an "iptables" USE flag to resolve this issue.

Thank you.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-08-14 19:12:33 UTC
Introducing USE flags just to pull in dependencies is a bad idea.
Comment 2 Vladimir Datsevich 2017-09-26 09:56:25 UTC
How about just removing the iptables dep?

Fail2Ban supports nftables since 0.9.4.

Also a USE flag for a dependency, why not? There are examples in the portage tree, where it is used, i.e. net-misc/connman, iproute2....
Comment 3 Vladimir Datsevich 2017-09-26 10:02:42 UTC
Would it be possible, if the USE flag option is not considered, to modify then the ebuild so it takes nftables into account by:

kernel_linux? ( || ( net-firewall/iptables net-firewall/nftables ) )

?
Comment 4 Vladimir Datsevich 2018-01-12 15:08:25 UTC
Any news?
Comment 5 Larry the Git Cow gentoo-dev 2019-03-27 10:22:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d568a99cb999a26abb068949fccc771a0fea15

commit 19d568a99cb999a26abb068949fccc771a0fea15
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-03-27 10:18:19 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-03-27 10:22:21 +0000

    net-analyzer/fail2ban: Drop various optional runtime dependencies
    
    Support for net-firewall/iptables, net-misc/whois and
    sys-freebsd/freebsd-pf is entirely optional and depends on your local
    configuration.
    
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Fixes: https://bugs.gentoo.org/627872
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../fail2ban/{fail2ban-0.10.4-r1.ebuild => fail2ban-0.10.4-r2.ebuild} | 4 ----
 net-analyzer/fail2ban/fail2ban-99999999.ebuild                        | 4 ----
 2 files changed, 8 deletions(-)
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2019-04-14 23:52:55 UTC
*** Bug 683360 has been marked as a duplicate of this bug. ***