Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555502 - net-analyzer/fail2ban-0.9.2 should not depend on sys-apps/systemd[python]
Summary: net-analyzer/fail2ban-0.9.2 should not depend on sys-apps/systemd[python]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 20:14 UTC by Craig Andrews
Modified: 2015-07-24 04:49 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 Craig Andrews gentoo-dev 2015-07-20 20:14:55 UTC
The net-analyzer/fail2ban-0.9.2 ebuild says:
RDEPEND="
        net-misc/whois
        virtual/mta
        virtual/logger
        net-firewall/iptables
        selinux? ( sec-policy/selinux-fail2ban )
        systemd? ( $(python_gen_cond_dep '|| (
                dev-python/python-systemd[${PYTHON_USEDEP}]
                sys-apps/systemd[python,${PYTHON_USEDEP}]
        )' 'python*' ) )
"


But the sys-apps/systemd-222-r1 ebuild doesn't have a "python" use flag:
IUSE="acl apparmor audit cryptsetup curl elfutils gcrypt gnuefi http
        idn importd +kdbus +kmod +lz4 lzma nat pam policykit
        qrcode +seccomp selinux ssl sysv-utils terminal test vanilla xkb"

The result is this error:
--
# emerge systemd -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/systemd-221:0/2::gentoo  USE="acl cryptsetup curl elfutils gcrypt http idn kdbus kmod lz4 lzma pam policykit python qrcode seccomp ssl terminal -apparmor -audit -gnuefi -importd -nat (-selinux) -sysv-utils {-test} -vanilla -xkb" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_3 -python2_7 -python3_4" PYTHON_TARGETS="python2_7 python3_3 -python3_4" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

sys-apps/systemd:0

  (sys-apps/systemd-222-r1:0/2::gentoo, ebuild scheduled for merge) conflicts with
    sys-apps/systemd[python,python_targets_python2_7(-),python_targets_python3_3(-),python_single_target_python3_3(+)] required by (net-analyzer/fail2ban-0.9.2:0/0::gentoo, installed)
--

Perhaps fail2ban needs to depend on sys-apps/python-systemd instead?

Reproducible: Always
Comment 1 Alexander Tsoy 2015-07-21 19:31:08 UTC
Please try
emerge -1av sys-apps/systemd dev-python/python-systemd
Comment 2 Craig Andrews gentoo-dev 2015-07-21 19:53:36 UTC
That does fix the problem.

After running
emerge -1av sys-apps/systemd dev-python/python-systemd

I don't get any more errors about fail2ban / the systemd python use flag.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-24 04:49:11 UTC
# ChangeLog for net-analyzer/fail2ban
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/ChangeLog,v 1.164 2015/07/10 01:01:59 floppym Exp $
 
  10 Jul 2015; Mike Gilbert <floppym@gentoo.org> fail2ban-0.9.2.ebuild,
  fail2ban-99999999.ebuild:
  Adjust systemd dep for dev-python/python-systemd.