1 |
commit: 9b2a5e5d3b05a54a75c05e5954c0aba866e83310 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 24 05:53:35 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 24 05:55:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b2a5e5d |
7 |
|
8 |
sys-power/powertop: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
sys-power/powertop/Manifest | 1 - |
13 |
...onfigure.ac-Use-PKG_PROG_PKG_CONFIG-macro.patch | 62 ----------- |
14 |
sys-power/powertop/powertop-2.13-r2.ebuild | 120 --------------------- |
15 |
3 files changed, 183 deletions(-) |
16 |
|
17 |
diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest |
18 |
index 7509e164f2d7..48905cdeb4b4 100644 |
19 |
--- a/sys-power/powertop/Manifest |
20 |
+++ b/sys-power/powertop/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST powertop-2.13.tar.gz 303030 BLAKE2B 3c88e05f9889cc4b276bea3bc50a3a83228ca8efae278379a14fadc6104754f2837174e028bf9c5ded9f3af84ce6b8766ac3d24b6ae62b9b192c03fc3afdec11 SHA512 8ebeccd17b6f76d9e445382d9ce5b1c00ab2daf4f1e6e133c249bceb35ea582ca3e76da5415fd0b55a28b8a124655dc5ac7a18aaf2a3df955547d77495e59181 |
23 |
DIST powertop-2.14.tar.gz 302578 BLAKE2B 5f53f81b01e83004f6436f497818d2a552b5e7ffda5007749aad415773adeab2a256aeffbacbf9e5fe803ff343a0c1954b5264aebdffa841bb70406b8b9611bc SHA512 f3e25901fb29405e0c8016643855a209cf9dba589fe9dd3e27c291d44699cebeb00dc8c7264c24436db08deb496759bd106666cb52d9ebd5f831bbb99e30f20f |
24 |
|
25 |
diff --git a/sys-power/powertop/files/0001-configure.ac-Use-PKG_PROG_PKG_CONFIG-macro.patch b/sys-power/powertop/files/0001-configure.ac-Use-PKG_PROG_PKG_CONFIG-macro.patch |
26 |
deleted file mode 100644 |
27 |
index c864020514e1..000000000000 |
28 |
--- a/sys-power/powertop/files/0001-configure.ac-Use-PKG_PROG_PKG_CONFIG-macro.patch |
29 |
+++ /dev/null |
30 |
@@ -1,62 +0,0 @@ |
31 |
-From 311b88d2a078aa68b042dc37b416a9bdb3f650e5 Mon Sep 17 00:00:00 2001 |
32 |
-From: Ed Baker <edward.baker@×××××.com> |
33 |
-Date: Thu, 3 Sep 2020 09:01:25 -0700 |
34 |
-Subject: [PATCH] configure.ac: Use PKG_PROG_PKG_CONFIG macro |
35 |
- |
36 |
-The goal of this commit is to fix an error encountered when building |
37 |
-2.13 on Chromium OS. |
38 |
-emerge-${board} powertop |
39 |
- <snip> |
40 |
- checking for libnl-3.0 >= 3.0 libnl-genl-3.0 >= 3.0... yes |
41 |
- checking for library containing inet_aton... none required |
42 |
- * pkg-config: ERROR: Do not call unprefixed tools directly. |
43 |
- * pkg-config: ERROR: For board tools, use `tc-export PKG_CONFIG` (or ${CHOST}-pkg-config). |
44 |
- * pkg-config: ERROR: For build-time-only tools, `tc-export BUILD_PKG_CONFIG` (or ${CBUILD}-pkg-config). |
45 |
- * python3 /mnt/data/chromiumos/chromite/bin/cros_sdk --enter --chrome_root=chrome_root |
46 |
- * `-python3 /mnt/data/chromiumos/chromite/bin/cros_sdk --enter --chrome_root=chrome_root |
47 |
- * `-bash |
48 |
- * `-emerge -b /usr/lib/python-exec/python3.6/emerge --root-deps powertop |
49 |
- * `-sandbox /usr/lib/portage/python3.6/ebuild.sh configure |
50 |
- * `-ebuild.sh /usr/lib/portage/python3.6/ebuild.sh configure |
51 |
- * `-ebuild.sh /usr/lib/portage/python3.6/ebuild.sh configure |
52 |
- * `-configure ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-cros-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/powertop-2.13 --htmldir=/usr/share/doc/powertop-2.13/html --with-sysroot=/build/volteer --libdir=/usr/lib64 --disable-nls |
53 |
- * `-pkg-config /build/volteer/tmp/portage/sys-power/powertop-2.13/temp/build-toolchain-wrappers/pkg-config --exists bash-completion |
54 |
- * `-pstree -a -A -s -l 10567 |
55 |
- * ERROR: sys-power/powertop-2.13::portage-stable failed (configure phase): |
56 |
- * Bad pkg-config [--exists bash-completion] invocation |
57 |
-<snip> |
58 |
- |
59 |
-The environment variable is populated for board specific tooling. |
60 |
-declare -x PKG_CONFIG="/build/volteer/build/bin/pkg-config" |
61 |
- |
62 |
-Signed-off-by: Ed Baker <edward.baker@×××××.com> |
63 |
---- |
64 |
- configure.ac | 5 +++-- |
65 |
- 1 file changed, 3 insertions(+), 2 deletions(-) |
66 |
- |
67 |
-diff --git a/configure.ac b/configure.ac |
68 |
-index 8daa48d..f191197 100644 |
69 |
---- a/configure.ac |
70 |
-+++ b/configure.ac |
71 |
-@@ -38,6 +38,7 @@ AC_PROG_INSTALL |
72 |
- AM_PROG_CC_C_O |
73 |
- AX_ADD_FORTIFY_SOURCE |
74 |
- AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) |
75 |
-+PKG_PROG_PKG_CONFIG |
76 |
- |
77 |
- # Checks for libraries. |
78 |
- AX_PTHREAD([ |
79 |
-@@ -155,8 +156,8 @@ AC_SEARCH_LIBS([inet_aton], [resolv], [], [ |
80 |
- ], []) |
81 |
- |
82 |
- |
83 |
--AS_IF([`pkg-config --exists bash-completion`], [ |
84 |
-- bashcompletiondir=`pkg-config --variable=completionsdir --define-variable=prefix=${prefix} bash-completion` |
85 |
-+AS_IF([`${PKG_CONFIG} --exists bash-completion`], [ |
86 |
-+ bashcompletiondir=`${PKG_CONFIG} --variable=completionsdir --define-variable=prefix=${prefix} bash-completion` |
87 |
- ], [ |
88 |
- bashcompletiondir=${datadir}/bash-completion/completions |
89 |
- ]) |
90 |
--- |
91 |
-2.17.1 |
92 |
- |
93 |
|
94 |
diff --git a/sys-power/powertop/powertop-2.13-r2.ebuild b/sys-power/powertop/powertop-2.13-r2.ebuild |
95 |
deleted file mode 100644 |
96 |
index 41279e9daac9..000000000000 |
97 |
--- a/sys-power/powertop/powertop-2.13-r2.ebuild |
98 |
+++ /dev/null |
99 |
@@ -1,120 +0,0 @@ |
100 |
-# Copyright 1999-2021 Gentoo Authors |
101 |
-# Distributed under the terms of the GNU General Public License v2 |
102 |
- |
103 |
-EAPI=7 |
104 |
- |
105 |
-EGIT_REPO_URI="https://github.com/fenrus75/powertop.git" |
106 |
- |
107 |
-if [[ ${PV} == "9999" ]] ; then |
108 |
- GIT_ECLASS="git-r3" |
109 |
- SRC_URI="" |
110 |
-else |
111 |
- SRC_URI="https://github.com/fenrus75/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
112 |
- KEYWORDS="amd64 arm ~arm64 ppc sparc x86 ~amd64-linux ~x86-linux" |
113 |
-fi |
114 |
- |
115 |
-inherit autotools ${GIT_ECLASS} linux-info |
116 |
- |
117 |
-DESCRIPTION="tool to diagnose issues with power consumption and power management" |
118 |
-HOMEPAGE="https://01.org/powertop/ https://github.com/fenrus75/powertop/" |
119 |
- |
120 |
-LICENSE="GPL-2" |
121 |
-SLOT="0" |
122 |
-IUSE="nls unicode X" |
123 |
- |
124 |
-DEPEND=" |
125 |
- dev-libs/libnl:3 |
126 |
- sys-apps/pciutils |
127 |
- sys-libs/ncurses:=[unicode(+)?] |
128 |
-" |
129 |
- |
130 |
-BDEPEND=" |
131 |
- virtual/pkgconfig |
132 |
- sys-devel/autoconf-archive |
133 |
- >=sys-devel/gettext-0.20.2 |
134 |
-" |
135 |
-RDEPEND=" |
136 |
- ${DEPEND} |
137 |
- X? ( x11-apps/xset ) |
138 |
- virtual/libintl |
139 |
-" |
140 |
- |
141 |
-PATCHES=( |
142 |
- "${FILESDIR}"/${PN}-2.8-ncurses_tinfo.patch |
143 |
- "${FILESDIR}"/0001-configure.ac-Use-PKG_PROG_PKG_CONFIG-macro.patch |
144 |
-) |
145 |
- |
146 |
-pkg_setup() { |
147 |
- CONFIG_CHECK=" |
148 |
- ~X86_MSR |
149 |
- ~DEBUG_FS |
150 |
- ~PERF_EVENTS |
151 |
- ~TRACEPOINTS |
152 |
- ~NO_HZ_IDLE |
153 |
- ~HIGH_RES_TIMERS |
154 |
- ~HPET_TIMER |
155 |
- ~CPU_FREQ_STAT |
156 |
- ~CPU_FREQ_GOV_ONDEMAND |
157 |
- ~FTRACE |
158 |
- ~BLK_DEV_IO_TRACE |
159 |
- ~TRACING |
160 |
- " |
161 |
- ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" |
162 |
- ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" |
163 |
- ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" |
164 |
- ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" |
165 |
- ERROR_KERNEL_NO_HZ_IDLE="NO_HZ_IDLE should be enabled in the kernel for full powertop function" |
166 |
- ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" |
167 |
- ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" |
168 |
- ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" |
169 |
- ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" |
170 |
- ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" |
171 |
- ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on to enable other config options" |
172 |
- ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" |
173 |
- linux-info_pkg_setup |
174 |
- if linux_config_exists; then |
175 |
- if kernel_is -lt 3 7 0; then |
176 |
- if linux_chkconfig_present SND_HDA_INTEL; then |
177 |
- CONFIG_CHECK="~SND_HDA_POWER_SAVE" |
178 |
- ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" |
179 |
- check_extra_config |
180 |
- fi |
181 |
- fi |
182 |
- if kernel_is -lt 3 9 0; then |
183 |
- CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" |
184 |
- ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" |
185 |
- check_extra_config |
186 |
- fi |
187 |
- if kernel_is -lt 3 19; then |
188 |
- CONFIG_CHECK="~PM_RUNTIME" |
189 |
- ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" |
190 |
- check_extra_config |
191 |
- else |
192 |
- CONFIG_CHECK="~PM" |
193 |
- ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" |
194 |
- check_extra_config |
195 |
- fi |
196 |
- if kernel_is -lt 4 11; then |
197 |
- CONFIG_CHECK="~TIMER_STATS" |
198 |
- ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" |
199 |
- check_extra_config |
200 |
- fi |
201 |
- fi |
202 |
-} |
203 |
- |
204 |
-src_prepare() { |
205 |
- default |
206 |
- |
207 |
- # Bug 599114 |
208 |
- sed -i '1s|^|AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])|' configure.ac || die |
209 |
- |
210 |
- echo "\"${PV}\"" > version-short |
211 |
- echo "${PV}" > version-long |
212 |
- |
213 |
- eautoreconf |
214 |
-} |
215 |
- |
216 |
-src_configure() { |
217 |
- export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) |
218 |
- econf $(use_enable nls) |
219 |
-} |