summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-01-30 13:41:07 +0100
committerJeroen Roovers <jer@gentoo.org>2018-01-30 13:41:36 +0100
commit7a12ad55651bbc7323a44f0549e989bb0ab217a5 (patch)
treebe5c8b5ef99c2a4d90753b96cb6f2db90396b1aa /sys-power/powernowd
parentnet-print/cups-filters: Removed old. (diff)
downloadgentoo-7a12ad55651bbc7323a44f0549e989bb0ab217a5.tar.gz
gentoo-7a12ad55651bbc7323a44f0549e989bb0ab217a5.tar.bz2
gentoo-7a12ad55651bbc7323a44f0549e989bb0ab217a5.zip
sys-power/powernowd: Do not inline decide_speed() (bug #646120 by ernsteiswuerfel).
Package-Manager: Portage-2.3.20, Repoman-2.3.6
Diffstat (limited to 'sys-power/powernowd')
-rw-r--r--sys-power/powernowd/files/powernowd-1.00-inline.patch11
-rw-r--r--sys-power/powernowd/powernowd-1.00-r5.ebuild42
2 files changed, 53 insertions, 0 deletions
diff --git a/sys-power/powernowd/files/powernowd-1.00-inline.patch b/sys-power/powernowd/files/powernowd-1.00-inline.patch
new file mode 100644
index 000000000000..6c7346d0162e
--- /dev/null
+++ b/sys-power/powernowd/files/powernowd-1.00-inline.patch
@@ -0,0 +1,11 @@
+--- a/powernowd.c
++++ b/powernowd.c
+@@ -322,7 +322,7 @@
+ /*
+ * The heart of the program... decide to raise or lower the speed.
+ */
+-enum modes inline decide_speed(cpuinfo_t *cpu)
++enum modes decide_speed(cpuinfo_t *cpu)
+ {
+ int err;
+ float pct;
diff --git a/sys-power/powernowd/powernowd-1.00-r5.ebuild b/sys-power/powernowd/powernowd-1.00-r5.ebuild
new file mode 100644
index 000000000000..dc6334759ff5
--- /dev/null
+++ b/sys-power/powernowd/powernowd-1.00-r5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit linux-info systemd toolchain-funcs
+
+DESCRIPTION="Daemon to control the speed and voltage of CPUs"
+HOMEPAGE="http://www.deater.net/john/powernowd.html https://github.com/clemej/powernowd"
+SRC_URI="http://www.deater.net/john/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+PATCHES=(
+ "${FILESDIR}"/${P}-buf.patch
+ "${FILESDIR}"/${P}-inline.patch
+)
+
+pkg_setup() {
+ CONFIG_CHECK="~CPU_FREQ"
+ WARNING_CPU_FREQ="Powernowd needs CPU_FREQ turned on!"
+ linux-info_pkg_setup
+}
+
+src_prepare() {
+ default
+ rm -f Makefile
+ tc-export CC
+}
+
+src_compile() {
+ emake powernowd
+}
+
+src_install() {
+ dosbin powernowd
+ dodoc README
+
+ newconfd "${FILESDIR}"/powernowd.confd powernowd
+ newinitd "${FILESDIR}"/powernowd.initd powernowd
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}