commit:     9b7058f9b92eaabf9ec188a94ef9036bc946a076
Author:     Vivian Heisz (vhz) <demize <AT> unstable <DOT> systems>
AuthorDate: Thu Jun  5 12:51:18 2025 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jun  5 13:00:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9b7058f9

sys-power/system76-power: Replace systemd RDEPEND with postinst ewarn

This fixes a pkgcheck issue now that systemd is masked on
split-usr profiles, and is more consistent with how this
type of systemd runtime dependency is handled in ::gentoo.

Signed-off-by: Vivian Heisz (vhz) <demize <AT> unstable.systems>

 ...em76-power-1.2.1-r1.ebuild => system76-power-1.2.1-r2.ebuild} | 9 ++++++---
 sys-power/system76-power/system76-power-9999.ebuild              | 9 ++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/sys-power/system76-power/system76-power-1.2.1-r1.ebuild 
b/sys-power/system76-power/system76-power-1.2.1-r2.ebuild
similarity index 96%
rename from sys-power/system76-power/system76-power-1.2.1-r1.ebuild
rename to sys-power/system76-power/system76-power-1.2.1-r2.ebuild
index bc09fb9f7f..6774bc90c3 100644
--- a/sys-power/system76-power/system76-power-1.2.1-r1.ebuild
+++ b/sys-power/system76-power/system76-power-1.2.1-r2.ebuild
@@ -204,9 +204,6 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 
-DEPEND="sys-apps/systemd"
-RDEPEND="${DEPEND}"
-
 src_prepare() {
        default
        # Replace dynamic git dependency of 'sysfs-class' with a static one
@@ -218,3 +215,9 @@ src_install() {
        default
        elog "Enable the service: 'systemctl enable --now 
com.system76.PowerDaemon.service'"
 }
+
+pkg_postinst(){
+       if ! has_version sys-apps/systemd; then
+               ewarn "${PN} is not functional without sys-apps/systemd at this 
point."
+       fi
+}

diff --git a/sys-power/system76-power/system76-power-9999.ebuild 
b/sys-power/system76-power/system76-power-9999.ebuild
index fae78009ab..92a8eacbe5 100644
--- a/sys-power/system76-power/system76-power-9999.ebuild
+++ b/sys-power/system76-power/system76-power-9999.ebuild
@@ -13,9 +13,6 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS=""
 
-DEPEND="sys-apps/systemd"
-RDEPEND="${DEPEND}"
-
 src_unpack(){
        git-r3_src_unpack
        cargo_live_src_unpack
@@ -25,3 +22,9 @@ src_install(){
        default
        elog "Enable the service: 'systemctl enable --now 
com.system76.PowerDaemon.service'"
 }
+
+pkg_postinst(){
+       if ! has_version sys-apps/systemd; then
+               ewarn "${PN} is not functional without sys-apps/systemd at this 
point."
+       fi
+}

Reply via email to