summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-05-16 12:28:59 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-05-16 12:28:59 +0000
commit986addc74cbbd955559525c5f5a41427406be1f0 (patch)
tree6cef13f68a464612cb541657d9c1f168396d2efb /sys-power/cpufreqd
parentAdded init script for setting governor at boot time as per bug #92241, thanks... (diff)
downloadgentoo-2-986addc74cbbd955559525c5f5a41427406be1f0.tar.gz
gentoo-2-986addc74cbbd955559525c5f5a41427406be1f0.tar.bz2
gentoo-2-986addc74cbbd955559525c5f5a41427406be1f0.zip
Close memleaks, bug #92610.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'sys-power/cpufreqd')
-rw-r--r--sys-power/cpufreqd/ChangeLog8
-rw-r--r--sys-power/cpufreqd/Manifest9
-rw-r--r--sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild38
-rw-r--r--sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch28
-rw-r--r--sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r11
5 files changed, 80 insertions, 4 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog
index 481ba74ba7ed..5c577ed3ddac 100644
--- a/sys-power/cpufreqd/ChangeLog
+++ b/sys-power/cpufreqd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-power/cpufreqd
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.3 2005/04/07 17:02:25 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.4 2005/05/16 12:28:58 brix Exp $
+
+*cpufreqd-1.2.2-r1 (16 May 2005)
+
+ 16 May 2005; <brix@gentoo.org> +files/cpufreqd-1.2.2-memleaks.patch,
+ +cpufreqd-1.2.2-r1.ebuild:
+ Close memleaks, bug #92610.
07 Apr 2005; Simon Stelling <blubb@gentoo.org> cpufreqd-1.2.2.ebuild:
stable on amd64
diff --git a/sys-power/cpufreqd/Manifest b/sys-power/cpufreqd/Manifest
index 572716ba00b8..5a6f60454ef2 100644
--- a/sys-power/cpufreqd/Manifest
+++ b/sys-power/cpufreqd/Manifest
@@ -1,7 +1,10 @@
-MD5 9ed873b9d9cbbe0ff1db6956edce723f ChangeLog 3085
-MD5 64085adbe3deb2ac1e5fec30cfe2e216 cpufreqd-1.1.2-r1.ebuild 1245
+MD5 2e29b23f478e8740fb3ef2d8a66c2367 cpufreqd-1.2.2-r1.ebuild 756
MD5 957cdc8541deb498c827b66b7a263bc1 cpufreqd-1.2.2.ebuild 768
+MD5 1dc708becb183b3f55e29aca71229cb2 ChangeLog 3250
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
-MD5 1ecbd62bec29d7ef35701b3c71ffdc94 files/1.1.2-prefer-sysfs.patch 921
+MD5 64085adbe3deb2ac1e5fec30cfe2e216 cpufreqd-1.1.2-r1.ebuild 1245
MD5 d80d3c22801187272f72a7de7fbd1bb1 files/digest-cpufreqd-1.1.2-r1 66
+MD5 67d3999fd7d01ffce53d07c879735c6e files/digest-cpufreqd-1.2.2-r1 66
MD5 67d3999fd7d01ffce53d07c879735c6e files/digest-cpufreqd-1.2.2 66
+MD5 1ecbd62bec29d7ef35701b3c71ffdc94 files/1.1.2-prefer-sysfs.patch 921
+MD5 a948f85d0445f9159a3f712ac7c92aa7 files/cpufreqd-1.2.2-memleaks.patch 634
diff --git a/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild b/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild
new file mode 100644
index 000000000000..2b885f6282a8
--- /dev/null
+++ b/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-1.2.2-r1.ebuild,v 1.1 2005/05/16 12:28:58 brix Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Daemon to adjust CPU frequency for power saving"
+HOMEPAGE="http://cpufreqd.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-memleaks.patch
+}
+
+src_compile() {
+ # cpufreqd segfaults when built as PIE
+ filter-flags "-fpie" "-fPIE" "-Wl,-pie"
+
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake install failed"
+
+ doinitd scripts/gentoo/cpufreqd
+
+ dodoc AUTHORS ChangeLog README TODO
+}
diff --git a/sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch b/sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch
new file mode 100644
index 000000000000..99ccd9e89a9d
--- /dev/null
+++ b/sys-power/cpufreqd/files/cpufreqd-1.2.2-memleaks.patch
@@ -0,0 +1,28 @@
+diff -Nud cpufreqd-1.2.2/main.c nvfreqd/main.c
+--- cpufreqd-1.2.2/main.c 2004-10-25 13:04:27.000000000 +0200
++++ nvfreqd/main.c 2005-05-13 12:12:59.066964000 +0200
+@@ -153,6 +172,7 @@
+
+ /* free configuration */
+ free_config(configuration);
++ free(configuration);
+
+ /* TODO: this call to close log shound not sit here... */
+ closelog();
+@@ -423,6 +443,7 @@
+ sleep(configuration->poll_interval);
+ } /* end loop */
+
++ free(_system);
+ return 0;
+ }
+
+@@ -506,7 +527,7 @@
+ */
+ int set_policy(profile *prof) {
+ FILE *fp;
+- char *path = (char *)malloc(256);
++ char path[256];
+
+ if (!prof)
+ return -1;
diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r1 b/sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r1
new file mode 100644
index 000000000000..85a6708f9d4b
--- /dev/null
+++ b/sys-power/cpufreqd/files/digest-cpufreqd-1.2.2-r1
@@ -0,0 +1 @@
+MD5 e26bd0a1566aae79398c92be155c0367 cpufreqd-1.2.2.tar.gz 330959