commit: 9ee1529db2cfe395c122c9675476784e32893a55 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun May 9 11:52:02 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun May 9 11:52:02 2021 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9ee1529d
kde-plasma/plasma-firewall: Replace systemd RDEPEND w/ postinst ewarn For administrative reasons we can't have a package pulling in systemd, this would render it essentially unsupported. Instead make clear that it will not work properly. Whoever wants to install/play around with it on openrc can now do so with that roadblock removed. Bug: https://bugs.gentoo.org/778527 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> kde-plasma/plasma-firewall/plasma-firewall-9999.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kde-plasma/plasma-firewall/plasma-firewall-9999.ebuild b/kde-plasma/plasma-firewall/plasma-firewall-9999.ebuild index 6541d6c6bf..525e35fc9c 100644 --- a/kde-plasma/plasma-firewall/plasma-firewall-9999.ebuild +++ b/kde-plasma/plasma-firewall/plasma-firewall-9999.ebuild @@ -35,7 +35,6 @@ DEPEND=" " RDEPEND="${DEPEND} ${PYTHON_DEPS} - sys-apps/systemd || ( net-firewall/firewalld net-firewall/ufw @@ -48,3 +47,12 @@ src_prepare() { sed -e "1 s:^.*$:\#\!/usr/bin/env python3.8:" \ -i kcm/backends/ufw/helper/kcm_ufw_helper.py.cmake || die } + +pkg_postinst () { + ecm_pkg_postinst + + if ! has_version sys-apps/systemd; then + ewarn "${PN} is not functional without sys-apps/systemd at this point." + ewarn "See also: https://bugs.gentoo.org/778527" + fi +}