commit: 5134ba9598ea25f48f657c74dfc0ebc627c78a6a Author: Jay Faulkner <jayf <AT> gentoo <DOT> org> AuthorDate: Sat Oct 11 21:27:55 2025 +0000 Commit: Jay Faulkner <jayf <AT> gentoo <DOT> org> CommitDate: Sat Oct 11 21:37:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5134ba95
sys-power/tlp: remove elogind/systemd req'ment elogind and systemd are needed for the sleep hooks -- an important part of TLP -- however it's not the only part of TLP. This moves the hard dependency over to an optfeature so it's more ergonomic for people who don't want elogind or systemd. Closes-Bug: https://bugs.gentoo.org/963994 Signed-off-by: Jay Faulkner <jayf <AT> gentoo.org> sys-power/tlp/tlp-1.8.0.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys-power/tlp/tlp-1.8.0.ebuild b/sys-power/tlp/tlp-1.8.0.ebuild index 3b9f9373902c..1f9485f03a13 100644 --- a/sys-power/tlp/tlp-1.8.0.ebuild +++ b/sys-power/tlp/tlp-1.8.0.ebuild @@ -14,12 +14,9 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64" -# It's uncertain if elogind/systemd is actually required, however, without the sleep -# hooks working, which require one of them, it doesn't seem like this app is very useful. RDEPEND=" dev-lang/perl virtual/udev - || ( sys-auth/elogind sys-apps/systemd ) " src_install() { @@ -45,6 +42,8 @@ pkg_postinst() { optfeature "disable Wake-on-LAN" sys-apps/ethtool optfeature "see disk drive health info in tlp-stat" sys-apps/smartmontools + optfeature "Sleep hooks (elogind)" sys-auth/elogind + optfeature "Sleep hooks (systemd)" sys-apps/systemd } pkg_postrm() {
