-Use update-alternatives class to resolve conflicts with python3-fail2ban. Signed-off-by: Zang Ruochen <zangrc.f...@cn.fujitsu.com> --- recipes-security/fail2ban/python-fail2ban_0.10.4.0.bb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/recipes-security/fail2ban/python-fail2ban_0.10.4.0.bb b/recipes-security/fail2ban/python-fail2ban_0.10.4.0.bb index 17a7dd8..3eea365 100644 --- a/recipes-security/fail2ban/python-fail2ban_0.10.4.0.bb +++ b/recipes-security/fail2ban/python-fail2ban_0.10.4.0.bb @@ -1,4 +1,13 @@ -inherit setuptools +inherit setuptools update-alternatives require python-fail2ban.inc RDEPENDS_${PN}-ptest = "python python-modules python-fail2ban" + +ALTERNATIVE_${PN} = "fail2ban-client fail2ban-regex fail2ban-server fail2ban-testcases" + +ALTERNATIVE_TARGET[fail2ban-client] = "${bindir}/fail2ban-client" +ALTERNATIVE_TARGET[fail2ban-regex] = "${bindir}/fail2ban-regex" +ALTERNATIVE_TARGET[fail2ban-server] = "${bindir}/fail2ban-server" +ALTERNATIVE_TARGET[fail2ban-testcases] = "${bindir}/fail2ban-testcases" + +ALTERNATIVE_PRIORITY = "30" -- 2.20.1 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto