1 |
commit: 40520ff8732783f898bd7a0c2c16b3c029bbb3b2 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 20 00:58:08 2023 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 20 00:59:29 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40520ff8 |
7 |
|
8 |
sys-power/thermald: warn missing kernel feature |
9 |
|
10 |
Closes: https://bugs.gentoo.org/902153 |
11 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
12 |
|
13 |
sys-power/thermald/thermald-2.5.1.ebuild | 6 ++++-- |
14 |
sys-power/thermald/thermald-2.5.2.ebuild | 4 +++- |
15 |
2 files changed, 7 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/sys-power/thermald/thermald-2.5.1.ebuild b/sys-power/thermald/thermald-2.5.1.ebuild |
18 |
index 97ae4f71f839..bcc7f1b46b8a 100644 |
19 |
--- a/sys-power/thermald/thermald-2.5.1.ebuild |
20 |
+++ b/sys-power/thermald/thermald-2.5.1.ebuild |
21 |
@@ -1,9 +1,9 @@ |
22 |
-# Copyright 1999-2022 Gentoo Authors |
23 |
+# Copyright 1999-2023 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=8 |
27 |
|
28 |
-inherit autotools out-of-source systemd |
29 |
+inherit autotools linux-info out-of-source systemd |
30 |
|
31 |
DESCRIPTION="Thermal daemon for Intel architectures" |
32 |
HOMEPAGE="https://github.com/intel/thermal_daemon" |
33 |
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND} |
34 |
S=${WORKDIR}/thermal_daemon-${PV} |
35 |
DOCS=( thermal_daemon_usage.txt README.txt ) |
36 |
|
37 |
+CONFIG_CHECK="~PERF_EVENTS_INTEL_RAPL ~X86_INTEL_PSTATE ~INTEL_POWERCLAMP ~INT340X_THERMAL ~ACPI_THERMAL_REL ~INT3406_THERMAL" |
38 |
+ |
39 |
src_prepare() { |
40 |
sed -i -e "/group=/s/power/wheel/g" \ |
41 |
data/org.freedesktop.thermald.conf || die |
42 |
|
43 |
diff --git a/sys-power/thermald/thermald-2.5.2.ebuild b/sys-power/thermald/thermald-2.5.2.ebuild |
44 |
index b5ef42067b32..a4a0727b15bf 100644 |
45 |
--- a/sys-power/thermald/thermald-2.5.2.ebuild |
46 |
+++ b/sys-power/thermald/thermald-2.5.2.ebuild |
47 |
@@ -3,7 +3,7 @@ |
48 |
|
49 |
EAPI=8 |
50 |
|
51 |
-inherit autotools out-of-source systemd |
52 |
+inherit autotools linux-info out-of-source systemd |
53 |
|
54 |
DESCRIPTION="Thermal daemon for Intel architectures" |
55 |
HOMEPAGE="https://github.com/intel/thermal_daemon" |
56 |
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND} |
57 |
S=${WORKDIR}/thermal_daemon-${PV} |
58 |
DOCS=( thermal_daemon_usage.txt README.txt ) |
59 |
|
60 |
+CONFIG_CHECK="~PERF_EVENTS_INTEL_RAPL ~X86_INTEL_PSTATE ~INTEL_POWERCLAMP ~INT340X_THERMAL ~ACPI_THERMAL_REL ~INT3406_THERMAL" |
61 |
+ |
62 |
src_prepare() { |
63 |
sed -i -e "/group=/s/power/wheel/g" \ |
64 |
data/org.freedesktop.thermald.conf || die |