1 |
bircoph 14/12/01 08:02:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: oprofile-0.9.9-r1.ebuild |
5 |
Log: |
6 |
Backport gcc-4.9 and Athlon fixes from 1.0.0 |
7 |
|
8 |
Signed-off-by: Andrew Savchenko <bircoph@g.o> |
9 |
(Portage version: 2.2.14/cvs/Linux i686, signed Manifest commit with key 565953B95372756C) |
10 |
|
11 |
Revision Changes Path |
12 |
1.99 dev-util/oprofile/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/ChangeLog?rev=1.99&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/ChangeLog?rev=1.99&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/ChangeLog?r1=1.98&r2=1.99 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v |
21 |
retrieving revision 1.98 |
22 |
retrieving revision 1.99 |
23 |
diff -u -r1.98 -r1.99 |
24 |
--- ChangeLog 1 Dec 2014 07:31:09 -0000 1.98 |
25 |
+++ ChangeLog 1 Dec 2014 08:02:49 -0000 1.99 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for dev-util/oprofile |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v 1.98 2014/12/01 07:31:09 bircoph Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v 1.99 2014/12/01 08:02:49 bircoph Exp $ |
31 |
+ |
32 |
+*oprofile-0.9.9-r1 (01 Dec 2014) |
33 |
+ |
34 |
+ 01 Dec 2014; Andrew Savchenko <bircoph@g.o> +oprofile-0.9.9-r1.ebuild, |
35 |
+ +files/oprofile-0.9.9-gcc-4.9-non-ppc.patch, |
36 |
+ +files/oprofile-0.9.9-gcc-4.9-unused.patch: |
37 |
+ Backport gcc-4.9 fixes from 1.0.0 and fix for CPU detection on |
38 |
+ Athlon systems. |
39 |
|
40 |
01 Dec 2014; Andrew Savchenko <bircoph@g.o> -oprofile-0.9.6-r1.ebuild, |
41 |
-oprofile-0.9.7.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-util/oprofile/oprofile-0.9.9-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/oprofile-0.9.9-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/oprofile-0.9.9-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: oprofile-0.9.9-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2014 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.9-r1.ebuild,v 1.1 2014/12/01 08:02:49 bircoph Exp $ |
55 |
|
56 |
EAPI="5" |
57 |
inherit autotools eutils linux-info multilib user java-pkg-opt-2 |
58 |
|
59 |
MY_P=${PN}-${PV/_/-} |
60 |
DESCRIPTION="A transparent low-overhead system-wide profiler" |
61 |
HOMEPAGE="http://${PN}.sourceforge.net" |
62 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
67 |
IUSE="java pch qt4" |
68 |
|
69 |
DEPEND=">=dev-libs/popt-1.7-r1 |
70 |
>=sys-devel/binutils-2.14.90.0.6-r3 |
71 |
>=sys-libs/glibc-2.3.2-r1 |
72 |
qt4? ( dev-qt/qtgui:4[qt3support] ) |
73 |
java? ( >=virtual/jdk-1.5 )" |
74 |
RDEPEND="${DEPEND}" |
75 |
|
76 |
S="${WORKDIR}/${MY_P}" |
77 |
|
78 |
pkg_setup() { |
79 |
linux-info_pkg_setup |
80 |
if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then |
81 |
echo |
82 |
elog "In order for ${PN} to work, you need to configure your kernel" |
83 |
elog "with CONFIG_OPROFILE set to 'm' or 'y'." |
84 |
echo |
85 |
fi |
86 |
|
87 |
if ! kernel_is -ge 2 6 ; then |
88 |
echo |
89 |
elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8." |
90 |
echo |
91 |
fi |
92 |
|
93 |
# Required for JIT support, see README_PACKAGERS |
94 |
enewgroup ${PN} |
95 |
enewuser ${PN} -1 -1 -1 ${PN} |
96 |
|
97 |
use java && java-pkg_init |
98 |
} |
99 |
|
100 |
src_prepare() { |
101 |
epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch" |
102 |
epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch" |
103 |
epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch" |
104 |
eautoreconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
econf \ |
109 |
--disable-werror \ |
110 |
$(use_with qt4 x) \ |
111 |
$(use_enable qt4 gui qt4) \ |
112 |
$(use_enable pch) \ |
113 |
$(use_with java java ${JAVA_HOME}) |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install |
118 |
|
119 |
dodoc ChangeLog* README TODO |
120 |
|
121 |
dodir /etc/env.d |
122 |
echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${D}"/etc/env.d/10${PN} || die "env.d failed" |
123 |
} |
124 |
|
125 |
pkg_postinst() { |
126 |
echo |
127 |
elog "Now load the ${PN} module by running:" |
128 |
elog " # opcontrol --init" |
129 |
elog "Then read manpages and this html doc:" |
130 |
elog " /usr/share/doc/${PF}/${PN}.html" |
131 |
echo |
132 |
} |