Gentoo Archives: gentoo-commits

From: "Nathan Phillip Brink (binki)" <binki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/cpufreqd: ChangeLog cpufreqd-2.4.2-r1.ebuild
Date: Sun, 30 Oct 2011 04:58:12
Message-Id: 20111030045802.281FC2004C@flycatcher.gentoo.org
1 binki 11/10/30 04:58:02
2
3 Modified: ChangeLog
4 Added: cpufreqd-2.4.2-r1.ebuild
5 Log:
6 Add patch from bug #318287 by Sven Eden <yamakuzure@×××.net> fixing glibc abort() for potential buffer overflow on startup when compiled with gcc-4.5 and CFLAGS="-O1" and passed the -f flag. OKed by steev_.
7
8 (Portage version: 2.2.0_alpha71-r1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.64 sys-power/cpufreqd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpufreqd/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpufreqd/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpufreqd/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 19 Jul 2010 19:18:34 -0000 1.63
24 +++ ChangeLog 30 Oct 2011 04:58:01 -0000 1.64
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sys-power/cpufreqd
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.63 2010/07/19 19:18:34 josejx Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.64 2011/10/30 04:58:01 binki Exp $
31 +
32 +*cpufreqd-2.4.2-r1 (30 Oct 2011)
33 +
34 + 30 Oct 2011; Nathan Phillip Brink <binki@g.o>
35 + +cpufreqd-2.4.2-r1.ebuild, +files/cpufreqd-2.4.2-PATH_MAX.patch:
36 + Add patch from bug #318287 by Sven Eden <yamakuzure@×××.net> fixing glibc
37 + abort() for potential buffer overflow on startup when compiled with gcc-4.5
38 + and CFLAGS="-O1" and passed the -f flag. OKed by steev_.
39
40 19 Jul 2010; Joseph Jezak <josejx@g.o> cpufreqd-2.4.2.ebuild:
41 Marked ppc stable for bug #323195.
42
43
44
45 1.1 sys-power/cpufreqd/cpufreqd-2.4.2-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.4.2-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.4.2-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: cpufreqd-2.4.2-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.4.2-r1.ebuild,v 1.1 2011/10/30 04:58:01 binki Exp $
55
56 EAPI="2"
57
58 inherit eutils
59
60 NVCLOCK_VERSION="0.8b"
61
62 DESCRIPTION="CPU Frequency Daemon"
63 HOMEPAGE="http://www.linux.it/~malattia/wiki/index.php/Cpufreqd"
64 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
65 nvidia? ( http://www.linuxhardware.org/nvclock/nvclock${NVCLOCK_VERSION}.tar.gz )"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
70
71 IUSE="acpi apm lm_sensors nforce2 nvidia pmu"
72 RDEPEND=">=sys-power/cpufrequtils-002
73 sys-fs/sysfsutils
74 lm_sensors? ( >sys-apps/lm_sensors-3 )"
75 DEPEND="sys-apps/sed
76 ${RDEPEND}"
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${PN}-conf.d.patch
80 epatch "${FILESDIR}"/${P}-PATH_MAX.patch #318287
81
82 if use nvidia; then
83 cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION}
84 epatch "${FILESDIR}"/nvclock${NVCLOCK_VERSION}-fpic.patch
85 fi
86 }
87
88 src_configure() {
89 local config
90
91 if use nvidia; then
92 cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION}
93 econf \
94 --disable-gtk \
95 --disable-qt \
96 --disable-nvcontrol \
97 || die "econf nvclock failed"
98 emake -j1 || die "emake nvclock failed"
99 config="--enable-nvclock=${WORKDIR}/nvclock${NVCLOCK_VERSION}"
100 fi
101
102 cd "${S}"
103 econf \
104 $(use_enable acpi) \
105 $(use_enable apm) \
106 $(use_enable lm_sensors sensors) \
107 $(use_enable nforce2) \
108 $(use_enable pmu) \
109 ${config} \
110 || die "econf failed"
111 }
112
113 src_compile() {
114 if use nvidia; then
115 cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION}
116 fi
117
118 cd "${S}"
119 emake || die "make failed"
120 }
121
122 src_install() {
123 emake DESTDIR="${D}" install || die "make install failed"
124 rm -rf "${D}"/usr/$(get_libdir)/*.la
125 dodoc AUTHORS ChangeLog NEWS README TODO
126 newinitd "${FILESDIR}"/${PN}-init.d ${PN}
127 }
128
129 pkg_postinst() {
130 if [ -f "${ROOT}"/etc/conf.d/cpufreqd ] ; then
131 ewarn "An old \"/etc/conf.d/cpufreqd\" file was found. It breaks"
132 ewarn "the new init script! Please remove it."
133 ewarn "# rm /etc/conf.d/cpufreqd"
134 fi
135 }