summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2023-03-20 08:58:08 +0800
committerYixun Lan <dlan@gentoo.org>2023-03-20 08:59:29 +0800
commit40520ff8732783f898bd7a0c2c16b3c029bbb3b2 (patch)
tree82308eeaa709790804ff15d92388997fc260ded0 /sys-power/thermald
parentsci-geosciences/josm-bin: Stabilize 18646 amd64, #901971 (diff)
downloadgentoo-40520ff8732783f898bd7a0c2c16b3c029bbb3b2.tar.gz
gentoo-40520ff8732783f898bd7a0c2c16b3c029bbb3b2.tar.bz2
gentoo-40520ff8732783f898bd7a0c2c16b3c029bbb3b2.zip
sys-power/thermald: warn missing kernel feature
Closes: https://bugs.gentoo.org/902153 Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'sys-power/thermald')
-rw-r--r--sys-power/thermald/thermald-2.5.1.ebuild6
-rw-r--r--sys-power/thermald/thermald-2.5.2.ebuild4
2 files changed, 7 insertions, 3 deletions
diff --git a/sys-power/thermald/thermald-2.5.1.ebuild b/sys-power/thermald/thermald-2.5.1.ebuild
index 97ae4f71f839..bcc7f1b46b8a 100644
--- a/sys-power/thermald/thermald-2.5.1.ebuild
+++ b/sys-power/thermald/thermald-2.5.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit autotools out-of-source systemd
+inherit autotools linux-info out-of-source systemd
DESCRIPTION="Thermal daemon for Intel architectures"
HOMEPAGE="https://github.com/intel/thermal_daemon"
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/thermal_daemon-${PV}
DOCS=( thermal_daemon_usage.txt README.txt )
+CONFIG_CHECK="~PERF_EVENTS_INTEL_RAPL ~X86_INTEL_PSTATE ~INTEL_POWERCLAMP ~INT340X_THERMAL ~ACPI_THERMAL_REL ~INT3406_THERMAL"
+
src_prepare() {
sed -i -e "/group=/s/power/wheel/g" \
data/org.freedesktop.thermald.conf || die
diff --git a/sys-power/thermald/thermald-2.5.2.ebuild b/sys-power/thermald/thermald-2.5.2.ebuild
index b5ef42067b32..a4a0727b15bf 100644
--- a/sys-power/thermald/thermald-2.5.2.ebuild
+++ b/sys-power/thermald/thermald-2.5.2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools out-of-source systemd
+inherit autotools linux-info out-of-source systemd
DESCRIPTION="Thermal daemon for Intel architectures"
HOMEPAGE="https://github.com/intel/thermal_daemon"
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/thermal_daemon-${PV}
DOCS=( thermal_daemon_usage.txt README.txt )
+CONFIG_CHECK="~PERF_EVENTS_INTEL_RAPL ~X86_INTEL_PSTATE ~INTEL_POWERCLAMP ~INT340X_THERMAL ~ACPI_THERMAL_REL ~INT3406_THERMAL"
+
src_prepare() {
sed -i -e "/group=/s/power/wheel/g" \
data/org.freedesktop.thermald.conf || die