public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/
Date: Sun, 23 Feb 2020 17:55:33 +0000 (UTC)	[thread overview]
Message-ID: <1582480524.0a66e2dc489de57066afff7ad6a0af9fdfd0f137.mattst88@gentoo> (raw)

commit:     0a66e2dc489de57066afff7ad6a0af9fdfd0f137
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 23 17:39:56 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 17:55:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a66e2dc

sys-power/powertop: Version bump to 2.11

Closes: https://bugs.gentoo.org/710568
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 sys-power/powertop/Manifest             |   1 +
 sys-power/powertop/powertop-2.11.ebuild | 118 ++++++++++++++++++++++++++++++++
 2 files changed, 119 insertions(+)

diff --git a/sys-power/powertop/Manifest b/sys-power/powertop/Manifest
index b1fe3aade12..f033f60ac94 100644
--- a/sys-power/powertop/Manifest
+++ b/sys-power/powertop/Manifest
@@ -1 +1,2 @@
+DIST powertop-2.11.tar.gz 307755 BLAKE2B 01723262922df5cc2ec63f6972b2a301f7efc4c701dfa3c08280dcdaa4b79f2d04503592f8c17e43d77df89e7f08695b0381f498671969fe4aa388578f732978 SHA512 bbe2882196f1b3ae39885d38dd86018576bfac5b5e8f16ea10c7dfd197197d0493ae4ce83c969417a4c4239c41dbcfada989063f14e2943c088a7489e43953b7
 DIST powertop-v2.10.tar.gz 722992 BLAKE2B 573f1f0ed40705d3463f6e6f76c67ae99127ab2541b851143dafa707ef1c2dab4127d27811b63ad27e6b002ea4efd39417297a0227996ad9b01141b6de733d41 SHA512 4219e7aadbeebdf6932c04f784434e4dd0f540bf4941d43c1830b1b5cad1f3928769b13897e24dd956b6bdee65fb1fbe902ee30685bca229b71e140d65367837

diff --git a/sys-power/powertop/powertop-2.11.ebuild b/sys-power/powertop/powertop-2.11.ebuild
new file mode 100644
index 00000000000..200e2c08f9f
--- /dev/null
+++ b/sys-power/powertop/powertop-2.11.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGIT_REPO_URI="https://github.com/fenrus75/powertop.git"
+
+if [[ ${PV} == "9999" ]] ; then
+	GIT_ECLASS="git-r3"
+	SRC_URI=""
+else
+	SRC_URI="https://github.com/fenrus75/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+inherit autotools ${GIT_ECLASS} linux-info
+
+DESCRIPTION="tool to diagnose issues with power consumption and power management"
+HOMEPAGE="https://01.org/powertop/ https://github.com/fenrus75/powertop/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="nls unicode X"
+
+DEPEND="
+	dev-libs/libnl:3
+	sys-apps/pciutils
+	sys-libs/ncurses:=[unicode?]
+"
+
+BDEPEND="
+	virtual/pkgconfig
+	sys-devel/gettext
+"
+RDEPEND="
+	${DEPEND}
+	X? ( x11-apps/xset )
+	virtual/libintl
+"
+
+PATCHES=(
+	"${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
+
+	# Bug 599114
+	sed -i '1s|^|AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX_11])|' configure.ac || die
+
+	chmod +x scripts/version || die "Failed to make 'scripts/version' executable"
+	scripts/version || die "Failed to extract version information"
+
+	eautoreconf
+}
+
+src_configure() {
+	export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
+	econf $(use_enable nls)
+}


             reply	other threads:[~2020-02-23 17:55 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-23 17:55 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-02 15:53 [gentoo-commits] repo/gentoo:master commit in: sys-power/powertop/ Matt Turner
2024-04-25 18:49 Matt Turner
2023-08-01 16:14 Sam James
2023-02-26 19:28 Arthur Zamarin
2023-02-24 10:01 Sam James
2023-02-24  9:29 Sam James
2023-02-24  9:21 Sam James
2023-02-24  9:21 Sam James
2022-11-18 18:00 Matt Turner
2022-11-17 18:47 Matt Turner
2021-10-27  4:13 Sam James
2021-10-22  7:49 Agostino Sarubbo
2021-10-21  2:36 Sam James
2021-10-21  2:36 Sam James
2021-10-21  2:36 Sam James
2021-07-17 21:30 David Seifert
2020-09-24 20:04 Matt Turner
2020-08-31 22:36 Sam James
2020-08-17 12:03 Agostino Sarubbo
2020-08-17 10:01 Agostino Sarubbo
2020-08-17  9:59 Agostino Sarubbo
2020-08-17  9:57 Agostino Sarubbo
2020-07-12 21:39 Matt Turner
2020-07-09  7:03 Matt Turner
2020-05-27  1:10 Matt Turner
2020-05-27  1:10 Matt Turner
2020-02-23 17:55 Matt Turner
2019-07-28 10:56 Mikle Kolyada
2019-06-14  9:18 Agostino Sarubbo
2019-06-13 14:49 Agostino Sarubbo
2019-06-11  7:54 Sergei Trofimovich
2019-06-10 19:50 Thomas Deutschmann
2019-03-28  4:00 Matt Turner
2019-03-27 21:56 Matt Turner
2019-03-27 21:56 Matt Turner
2019-03-27 21:56 Matt Turner
2018-06-04 19:25 Mart Raudsepp
2018-05-26  7:53 Mikle Kolyada
2018-04-21 11:55 Mikle Kolyada
2018-04-16 18:36 Sergei Trofimovich
2018-04-15 18:58 Thomas Deutschmann
2018-04-14 17:46 Aaron Bauman
2018-01-24 23:25 Mike Frysinger
2017-12-04 15:16 Richard Farina
2017-12-04 15:16 Richard Farina
2017-12-04 15:16 Richard Farina
2017-07-30  9:15 Michał Górny
2017-06-04 15:28 Michał Górny
2017-04-17  8:02 Agostino Sarubbo
2017-04-05 12:55 Agostino Sarubbo
2017-04-03 21:26 Michael Weber
2016-11-20 16:56 Göktürk Yüksek
2015-12-02 17:51 Richard Farina
2015-12-02 17:00 Richard Farina
2015-12-02 17:00 Richard Farina
2015-12-02 17:00 Richard Farina
2015-12-02 17:00 Richard Farina
2015-12-02 17:00 Richard Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1582480524.0a66e2dc489de57066afff7ad6a0af9fdfd0f137.mattst88@gentoo \
    --to=mattst88@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox