diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
commit | b24bd25253fe093f722ab576d29fdc41d04cb1ee (patch) | |
tree | 0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /sys-power/powertop | |
parent | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff) |
gentoo resync : 02.08.2019
Diffstat (limited to 'sys-power/powertop')
-rw-r--r-- | sys-power/powertop/Manifest | 7 | ||||
-rw-r--r-- | sys-power/powertop/files/powertop-2.9-libc++.patch | 44 | ||||
-rw-r--r-- | sys-power/powertop/powertop-2.10.ebuild | 2 | ||||
-rw-r--r-- | sys-power/powertop/powertop-2.8.ebuild | 103 | ||||
-rw-r--r-- | sys-power/powertop/powertop-2.9.ebuild | 119 |
5 files changed, 2 insertions, 273 deletions
diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest index 166931e17c19..9fc2c2471bc7 100644 --- a/sys-power/powertop/Manifest +++ b/sys-power/powertop/Manifest @@ -1,10 +1,5 @@ AUX powertop-2.8-ncurses_tinfo.patch 1385 BLAKE2B 1b11138ae9c8fc90236b421d733f8cf0edff843572cfbfececba0efed5dd2a154ca561692b42e087a1c75bc19966b71fde241a029f16b126074b7d857e8c4bf5 SHA512 f1f483c43355fc1c52d0d7b9ca8e01f71c371e4e77c275584afc9f7178985e0028d42ed675adc52a1ea014325c5aaaafe245fa9166c14326cf467bd92c274522 -AUX powertop-2.9-libc++.patch 1182 BLAKE2B cad53198b44a1b402995207c33e33d06cec5f2994f3acb2b03fd81cbf78d5e7b85828fbbc1290b0308494fd29fd5c6b8b886bed7d206e530835db9d559963652 SHA512 ea4925df50118e0394e81a1eb18fc2559d7459065bc9e10978e60bd9ada0c757583b691cf98f4da07be9545163663cb993db72774ae3963b7873500767b86972 -DIST powertop-2.8.tar.gz 670000 BLAKE2B 4259f462d36fe0cbb157859d6e1d3e1face67f7232fe8d4112d77f844b545f49e9cf486e21bcbc34f64ffb0c891c1864141784dde14e3a96647d6535641a840a SHA512 253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80 DIST powertop-v2.10.tar.gz 722992 BLAKE2B 573f1f0ed40705d3463f6e6f76c67ae99127ab2541b851143dafa707ef1c2dab4127d27811b63ad27e6b002ea4efd39417297a0227996ad9b01141b6de733d41 SHA512 4219e7aadbeebdf6932c04f784434e4dd0f540bf4941d43c1830b1b5cad1f3928769b13897e24dd956b6bdee65fb1fbe902ee30685bca229b71e140d65367837 -DIST powertop-v2.9.tar.gz 718763 BLAKE2B bb6ce789614397b02f0e9f1cb71585cb456c1428cc43e9fe1c4b3bc9f96171fede4c587410e78e58ad8d0b0f772549a93f454bcd1b521e6dd3c809a85dc3cf30 SHA512 783af538c44e3fae7215a5b4247eb32a72e02150b3f297e6b9777a450823dd30aca014601892c0e80937a366eed95b42b622c68161d53e905ad4fbcb574b26f5 -EBUILD powertop-2.10.ebuild 3844 BLAKE2B 52ddcdae27d25a83b5d96935ed6fbb6cc3d4f3c53c435183f7be6e413eefce5fbc86b0d50ac509e6076fd80f857d28400b77a7413a74e69e38fd904cadc0ab79 SHA512 c738724777ec7103e7503d08b9ba86cb21180e0a397a9edfbe030100f95de5fa8a6c33b4137a063dfd470a7975aba8871c7cff67667a4a515ab19502dfc0dd15 -EBUILD powertop-2.8.ebuild 3422 BLAKE2B 930fac60030bb84531e5155d29356a5d4f815705f2a7c1504bf50f5269b4f4f71807f6bc638a51af536f2ce79524bce7f7fa4941e47b5acd5e53044fffc3ca72 SHA512 22361930726c8af0fc97f111c534fb3fa26abbafd9ebb4aa2f0d5cd0b8e0a9a05fc48e646439f890de8847be913f8ee5a55dfd2b4b9e83370bc6b516a45b04f4 -EBUILD powertop-2.9.ebuild 3881 BLAKE2B 7069791fb24b1f0046ca14b930f7c33c3801c41a9f4c802293a502706bdcd907bba2a976cacee5934b52f4014b34fa336b07680fcbeadae69a1fc3f38eb7a7ee SHA512 8e881191b14e438c2a3164a17914419224dcd0b2f25ede1c863655652fb2e51495c7cba0687c62cd3ff57a0551c2719e39aae118708f09cb50f956fbbbd6fe6d +EBUILD powertop-2.10.ebuild 3843 BLAKE2B f0d637015c7ed1dbf8f69c619630dcf7ea3a0a6fe1a9698da2dda5274a28d054c88ac884b8a7c6ca312c1bca4a582da6e008476a548592fdf60ad357083b85b0 SHA512 c9f56ee6c4d33ad52d4774ffc96b791f7c82c677aa5e439a84c9ee7d4e7c6205163b7ede16c3e30cf10bbee3835fd16d6cbd7aa5c955c8a303f5830842c2d494 EBUILD powertop-9999.ebuild 3790 BLAKE2B fb6238df26defce86bfd33d36eed9c160ba491f7457dbe708eaaa4511ce9cf007288af610dd57103e9d5eb80b43dbeb1fda74195b044e406ca3a46baf630053a SHA512 ce9caf68f29e9788fc7732bf091a85bf97fc42beacc8a1c80b4d31efcb051a342762aacd546e5a2d88e01ee4426d8513891a16fa22233bc184d62862de8f3db9 MISC metadata.xml 328 BLAKE2B b0558a511f51fb77479976e60fde11b9cc46f85af935d78d060a53a1d5b1dc2611721e3c1451e3d23229cb8db0bd2bd9c6bb902c9b0fca8f57718f53f16032a8 SHA512 9d17013502d4a90d7c41493c2e69f7bc20bfd834f6f2caa5b105f9cc3045b87382393903c08a8e25bd75faaa9371e2d5c16d2521a90a89dd08697069ce8e8f5d diff --git a/sys-power/powertop/files/powertop-2.9-libc++.patch b/sys-power/powertop/files/powertop-2.9-libc++.patch deleted file mode 100644 index d378280f3c68..000000000000 --- a/sys-power/powertop/files/powertop-2.9-libc++.patch +++ /dev/null @@ -1,44 +0,0 @@ -https://github.com/fenrus75/powertop/commit/b9c431aad6cc5383c9571007469eee8e64ec85a6 - -From b9c431aad6cc5383c9571007469eee8e64ec85a6 Mon Sep 17 00:00:00 2001 -From: Manoj Gupta <manojgupta@chromium.org> -Date: Sat, 4 Nov 2017 13:44:04 -0700 -Subject: [PATCH] Fix powertop build with libc++. - -<ctime> header is not automatically included with libc++. -Add it explicitly to make powertop build with libc++. - -This fixes the following errors: -devices/gpu_rapl_device.cpp:35:14: error: use of undeclared identifier -'time'; did you mean 'tie'? -last_time = time(NULL); - ^~~~ -devices/gpu_rapl_device.cpp:45:14: error:use of undeclared identifier -'time'; did you mean 'tie'? -last_time = time(NULL); - ^~~~ - -parameters/learn.cpp:161:10: error: use of undeclared identifier -'time'; did you mean 'tie'? -start = time(NULL); - ^~~~ ---- - src/lib.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/lib.h b/src/lib.h -index b64bb0f5433f..6d85eb6e4b40 100644 ---- a/src/lib.h -+++ b/src/lib.h -@@ -54,7 +54,7 @@ extern const char *kernel_function(uint64_t address); - - - -- -+#include <ctime> - #include <string> - using namespace std; - --- -2.15.1 - diff --git a/sys-power/powertop/powertop-2.10.ebuild b/sys-power/powertop/powertop-2.10.ebuild index 7de8f42db8cb..a0784d08bd46 100644 --- a/sys-power/powertop/powertop-2.10.ebuild +++ b/sys-power/powertop/powertop-2.10.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} == "9999" ]] ; then SRC_URI="" else SRC_URI="https://01.org/sites/default/files/downloads/${PN}-v${PV}.tar.gz" - KEYWORDS="amd64 ~arm ~arm64 ppc sparc x86 ~amd64-linux ~x86-linux" + KEYWORDS="amd64 arm ~arm64 ppc sparc x86 ~amd64-linux ~x86-linux" MY_P="${PN}-v${PV}" S="${WORKDIR}/${MY_P}" fi diff --git a/sys-power/powertop/powertop-2.8.ebuild b/sys-power/powertop/powertop-2.8.ebuild deleted file mode 100644 index 2ec905b8419f..000000000000 --- a/sys-power/powertop/powertop-2.8.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils linux-info autotools -SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.tar.gz" -KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux" - -DESCRIPTION="tool that helps you find what software is using the most power" -HOMEPAGE="https://01.org/powertop/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="nls unicode X" - -COMMON_DEPEND=" - dev-libs/libnl:3 - sys-apps/pciutils - sys-libs/ncurses:=[unicode?] -" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig - sys-devel/gettext -" -RDEPEND=" - ${COMMON_DEPEND} - X? ( x11-apps/xset ) - virtual/libintl -" - -DOCS=( TODO README ) - -pkg_setup() { - CONFIG_CHECK=" - ~X86_MSR - ~DEBUG_FS - ~PERF_EVENTS - ~TRACEPOINTS - ~NO_HZ_IDLE - ~HIGH_RES_TIMERS - ~HPET_TIMER - ~CPU_FREQ_STAT - ~CPU_FREQ_GOV_ONDEMAND - ~FTRACE - ~BLK_DEV_IO_TRACE - ~TRACING - " - ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" - ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" - ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" - ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" - ERROR_KERNEL_NO_HZ_IDLE="NO_HZ_IDLE should be enabled in the kernel for full powertop function" - ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" - ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" - ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" - ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" - ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" - ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on to enable other config options" - ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" - linux-info_pkg_setup - if linux_config_exists; then - if kernel_is -lt 3 7 0; then - if linux_chkconfig_present SND_HDA_INTEL; then - CONFIG_CHECK="~SND_HDA_POWER_SAVE" - ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" - check_extra_config - fi - fi - if kernel_is -lt 3 9 0; then - CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" - ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" - check_extra_config - fi - if kernel_is -lt 3 19; then - CONFIG_CHECK="~PM_RUNTIME" - ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" - check_extra_config - else - CONFIG_CHECK="~PM" - ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" - check_extra_config - fi - if kernel_is -lt 4 11; then - CONFIG_CHECK="~TIMER_STATS" - ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" - check_extra_config - fi - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-ncurses_tinfo.patch - - # Call eautoreconf since ncurses patch touches configure.ac. - eautoreconf -} - -src_configure() { - export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) - econf $(use_enable nls) -} diff --git a/sys-power/powertop/powertop-2.9.ebuild b/sys-power/powertop/powertop-2.9.ebuild deleted file mode 100644 index d9536ebd1e01..000000000000 --- a/sys-power/powertop/powertop-2.9.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils linux-info autotools -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/fenrus75/powertop.git" - inherit git-r3 autotools - SRC_URI="" -else - MY_P="${PN}-v${PV}" - SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${MY_P}.tar.gz" - KEYWORDS="amd64 arm ~arm64 ppc sparc x86 ~amd64-linux ~x86-linux" - S="${WORKDIR}/${MY_P}" -fi - -DESCRIPTION="tool that helps you find what software is using the most power" -HOMEPAGE="https://01.org/powertop/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="nls unicode X" - -COMMON_DEPEND=" - dev-libs/libnl:3 - sys-apps/pciutils - sys-libs/ncurses:=[unicode?] -" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig - sys-devel/gettext -" -RDEPEND=" - ${COMMON_DEPEND} - X? ( x11-apps/xset ) - virtual/libintl -" - -PATCHES=( - "${FILESDIR}"/${P}-libc++.patch - "${FILESDIR}"/${PN}-2.8-ncurses_tinfo.patch -) - -pkg_setup() { - CONFIG_CHECK=" - ~X86_MSR - ~DEBUG_FS - ~PERF_EVENTS - ~TRACEPOINTS - ~NO_HZ_IDLE - ~HIGH_RES_TIMERS - ~HPET_TIMER - ~CPU_FREQ_STAT - ~CPU_FREQ_GOV_ONDEMAND - ~FTRACE - ~BLK_DEV_IO_TRACE - ~TRACING - " - ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" - ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" - ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" - ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" - ERROR_KERNEL_NO_HZ_IDLE="NO_HZ_IDLE should be enabled in the kernel for full powertop function" - ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" - ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" - ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" - ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" - ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" - ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on to enable other config options" - ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" - linux-info_pkg_setup - if linux_config_exists; then - if kernel_is -lt 3 7 0; then - if linux_chkconfig_present SND_HDA_INTEL; then - CONFIG_CHECK="~SND_HDA_POWER_SAVE" - ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" - check_extra_config - fi - fi - if kernel_is -lt 3 9 0; then - CONFIG_CHECK="~EVENT_POWER_TRACING_DEPRECATED" - ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" - check_extra_config - fi - if kernel_is -lt 3 19; then - CONFIG_CHECK="~PM_RUNTIME" - ERROR_KERNEL_PM_RUNTIME="PM_RUNTIME should be enabled in the kernel for full powertop function" - check_extra_config - else - CONFIG_CHECK="~PM" - ERROR_KERNEL_PM="PM should be enabled in the kernel for full powertop function" - check_extra_config - fi - if kernel_is -lt 4 11; then - CONFIG_CHECK="~TIMER_STATS" - ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" - check_extra_config - fi - fi -} - -src_prepare() { - default - if [[ ${PV} == "9999" ]] ; then - chmod +x scripts/version || die "Failed to make 'scripts/version' executable" - scripts/version || die "Failed to extract version information" - fi - - # Call eautoreconf since ncurses patch touches configure.ac. - $(which aclocal) --install -Im4 2>/dev/null #599114 - eautoreconf -} - -src_configure() { - export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) - econf $(use_enable nls) -} |