From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EEF5A158094 for ; Fri, 2 Sep 2022 02:11:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05F28E0938; Fri, 2 Sep 2022 02:11:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9E406E0938 for ; Fri, 2 Sep 2022 02:11:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5ABD7335C60 for ; Fri, 2 Sep 2022 02:11:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD9471E for ; Fri, 2 Sep 2022 02:11:21 +0000 (UTC) From: "Jay Faulkner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jay Faulkner" Message-ID: <1662084564.4c77f8f888abd2553fc03a6c54d6c0a2a0424b69.jayf@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-power/tlp/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-power/tlp/tlp-1.5.0.ebuild X-VCS-Directories: sys-power/tlp/ X-VCS-Committer: jayf X-VCS-Committer-Name: Jay Faulkner X-VCS-Revision: 4c77f8f888abd2553fc03a6c54d6c0a2a0424b69 X-VCS-Branch: dev Date: Fri, 2 Sep 2022 02:11:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e85fc6e-7e93-4ae2-9ed6-4db0f0a214d7 X-Archives-Hash: cae5803d2e74cb23b062f8e9a6893a64 commit: 4c77f8f888abd2553fc03a6c54d6c0a2a0424b69 Author: Jay Faulkner jvf cc> AuthorDate: Fri Sep 2 01:47:15 2022 +0000 Commit: Jay Faulkner jvf cc> CommitDate: Fri Sep 2 02:09:24 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c77f8f8 sys-power/tlp: Remove unneeded use flags The systemd and elogind toggles in the tlp build only toggle installation of unit file and sleep triggers. There's no need to conditionally install those per PG#0301. Signed-Off-By: Jay Faulkner jvf.cc> sys-power/tlp/tlp-1.5.0.ebuild | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sys-power/tlp/tlp-1.5.0.ebuild b/sys-power/tlp/tlp-1.5.0.ebuild index 0fc6f0d01..bf18bbbb7 100644 --- a/sys-power/tlp/tlp-1.5.0.ebuild +++ b/sys-power/tlp/tlp-1.5.0.ebuild @@ -12,25 +12,22 @@ S="${WORKDIR}/TLP-${PV}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" -IUSE="bash-completion elogind systemd" RESTRICT="mirror" +# 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="virtual/udev - bash-completion? ( app-shells/bash app-shells/bash-completion ) - elogind? ( sys-auth/elogind ) - systemd? ( sys-apps/systemd )" + || ( sys-auth/elogind sys-apps/systemd )" DEPEND="${RDEPEND}" -REQUIRED_USE="?? ( elogind systemd )" src_install() { emake \ DESTDIR="${D}" \ TLP_NO_INIT=1 \ - TLP_NO_BASHCOMP=$(usex bash-completion 0 1) \ - TLP_WITH_ELOGIND=$(usex elogind 1 0) \ - TLP_WITH_SYSTEMD=$(usex systemd 1 0) \ + TLP_WITH_ELOGIND=1 \ + TLP_WITH_SYSTEMD=1 \ install install-man - chmod 444 "${D}/usr/share/tlp/defaults.conf" # manpage says this file should not be edited + fperms 444 "/usr/share/tlp/defaults.conf" # manpage says this file should not be edited newinitd "${FILESDIR}/tlp.init" tlp keepdir "/var/lib/tlp" # created by Makefile, probably important }