Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/
Date: Thu, 23 Nov 2017 16:35:13
Message-Id: 1511454883.bc2df13412d0ca85486b83f439e8c42a4992bb06.asturm@gentoo
1 commit: bc2df13412d0ca85486b83f439e8c42a4992bb06
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 22 18:20:24 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 23 16:34:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc2df134
7
8 dev-util/oprofile: Drop old
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 dev-util/oprofile/Manifest | 1 -
13 .../files/oprofile-0.9.9-gcc-4.9-non-ppc.patch | 36 ----------
14 .../files/oprofile-0.9.9-gcc-4.9-unused.patch | 47 -------------
15 .../oprofile/files/oprofile-1.0.0-athlon.patch | 20 ------
16 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 82 ----------------------
17 5 files changed, 186 deletions(-)
18
19 diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
20 index f91abaa9c0c..91169c0dbce 100644
21 --- a/dev-util/oprofile/Manifest
22 +++ b/dev-util/oprofile/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST oprofile-0.9.9.tar.gz 1502834 SHA256 1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f WHIRLPOOL 534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
25 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758 WHIRLPOOL b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
26 DIST oprofile-1.2.0.tar.gz 1533343 SHA256 eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d SHA512 d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d WHIRLPOOL e677d0117ef232bbd8794793e9b9fb31c1d89dc87e5d797d18720ff8baaf0e2f6e8328662a6b1e5b2a5662081e06927923f7969502dea9609ab09ab424a2ae07
27
28 diff --git a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch b/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch
29 deleted file mode 100644
30 index 423c703f7ff..00000000000
31 --- a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch
32 +++ /dev/null
33 @@ -1,36 +0,0 @@
34 -Backported from 1.0.0:
35 -======================================================================
36 -commit 008e470a9b8751de0a3745e511cbc05b68759688
37 -Author: Aaro Koskinen <aaro.koskinen@×××.fi>
38 -Date: Mon May 12 08:28:46 2014 -0500
39 -
40 - configure: fix test-for-synth check with GCC 4.9.0
41 -
42 - With GCC 4.9.0 oprofile 0.9.9 build fails on non-PPC platfroms because
43 - the "test-for-synth" configure check result is incorrect: There is a NULL
44 - pointer dereference in the test program, so the compiler seems to optimize
45 - the rest of the code away, and the test will always succeed regardless
46 - whether powerpc_elf64_vec/bfd_elf64_powerpc_vec are present or not.
47 - Fix by allocating the referred struct statically.
48 -
49 - While at it, also include stdio.h to avoid a compiler warning.
50 -
51 - Signed-off-by: Aaro Koskinen <aaro.koskinen@×××.fi>
52 -
53 -diff --git a/m4/binutils.m4 b/m4/binutils.m4
54 -index 25fb15a..d7948c1 100644
55 ---- a/m4/binutils.m4
56 -+++ b/m4/binutils.m4
57 -@@ -27,8 +27,10 @@ if test "$OS" = "Linux"; then
58 - AC_MSG_CHECKING([whether bfd_get_synthetic_symtab() exists in BFD library])
59 - rm -f test-for-synth
60 - AC_LANG_CONFTEST(
61 -- [AC_LANG_PROGRAM([[#include <bfd.h>]],
62 -- [[asymbol * synthsyms; bfd * ibfd = 0;
63 -+ [AC_LANG_PROGRAM([[#include <bfd.h>]
64 -+ [#include <stdio.h>]
65 -+ [static bfd _ibfd;]],
66 -+ [[asymbol * synthsyms; bfd * ibfd = &_ibfd;
67 - long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms);
68 - extern const bfd_target bfd_elf64_powerpc_vec;
69 - extern const bfd_target bfd_elf64_powerpcle_vec;
70
71 diff --git a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch b/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch
72 deleted file mode 100644
73 index 5c541a053a7..00000000000
74 --- a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch
75 +++ /dev/null
76 @@ -1,47 +0,0 @@
77 -commit 98f57a6c0e32bc6080a50e1cdd769b9ff78108bc
78 -Author: William Cohen <wcohen@××××××.com>
79 -Date: Tue Jun 10 09:56:55 2014 -0500
80 -
81 - Remove unused functions causing errors in recent gcc
82 -
83 - The Fedora rawhide compiler is now stricter and will treat the
84 - warnings for unused functions as errors and stop the compile. This patch
85 - removes two unused functions in the code.
86 -
87 - Signed-off-by: William Cohen <wcohen@××××××.com>
88 -
89 -diff --git a/libpp/callgraph_container.cpp b/libpp/callgraph_container.cpp
90 -index 1d1c95f..c5bc272 100644
91 ---- a/libpp/callgraph_container.cpp
92 -+++ b/libpp/callgraph_container.cpp
93 -@@ -36,13 +36,6 @@ using namespace std;
94 -
95 - namespace {
96 -
97 --bool operator==(cg_symbol const & lhs, cg_symbol const & rhs)
98 --{
99 -- less_symbol cmp_symb;
100 -- return !cmp_symb(lhs, rhs) && !cmp_symb(rhs, lhs);
101 --}
102 --
103 --
104 - // we store {caller,callee} inside a single u64
105 - odb_key_t caller_to_key(u32 value)
106 - {
107 -diff --git a/libpp/xml_utils.cpp b/libpp/xml_utils.cpp
108 -index 5f1a3a1..3de41e5 100644
109 ---- a/libpp/xml_utils.cpp
110 -+++ b/libpp/xml_utils.cpp
111 -@@ -101,12 +101,6 @@ bool has_separated_thread_info()
112 - }
113 -
114 -
115 --string get_cpu_num(size_t pclass)
116 --{
117 -- return classes.v[pclass].ptemplate.cpu;
118 --}
119 --
120 --
121 - }; // anonymous namespace
122 -
123 - xml_utils::xml_utils(format_output::xml_formatter * xo,
124
125 diff --git a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
126 deleted file mode 100644
127 index 5916271b3a0..00000000000
128 --- a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
129 +++ /dev/null
130 @@ -1,20 +0,0 @@
131 -Fix AMD Athlon CPU family recognition.
132 -See upstream bug 275 for details:
133 -https://sourceforge.net/p/oprofile/bugs/275/
134 ---- oprofile-1.0.0/libop/op_cpu_type.c.orig 2014-09-12 18:39:47.000000000 +0400
135 -+++ oprofile-1.0.0/libop/op_cpu_type.c 2014-11-30 18:29:00.328342552 +0300
136 -@@ -538,10 +538,13 @@
137 - family = cpu_family(eax);
138 -
139 - /* These family does not exist in the past.*/
140 -- if (family < 0x0f || family == 0x13)
141 -+ if ((family < 0x0f && family != 0x06) || family == 0x13)
142 - return ret;
143 -
144 - switch (family) {
145 -+ case 0x6:
146 -+ ret = op_get_cpu_number("i386/athlon");
147 -+ break;
148 - case 0x0f:
149 - ret = op_get_cpu_number("x86-64/hammer");
150 - break;
151
152 diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
153 deleted file mode 100644
154 index a5a0ac05f12..00000000000
155 --- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
156 +++ /dev/null
157 @@ -1,82 +0,0 @@
158 -# Copyright 1999-2017 Gentoo Foundation
159 -# Distributed under the terms of the GNU General Public License v2
160 -
161 -EAPI="5"
162 -inherit autotools eutils linux-info multilib user java-pkg-opt-2
163 -
164 -MY_P=${PN}-${PV/_/-}
165 -DESCRIPTION="A transparent low-overhead system-wide profiler"
166 -HOMEPAGE="http://${PN}.sourceforge.net"
167 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
168 -
169 -LICENSE="GPL-2"
170 -SLOT="0"
171 -KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
172 -IUSE="java pch qt4"
173 -
174 -DEPEND=">=dev-libs/popt-1.7-r1
175 - sys-libs/binutils-libs:=
176 - >=sys-libs/glibc-2.3.2-r1
177 - ppc64? ( dev-libs/libpfm )
178 - qt4? ( dev-qt/qtgui:4[qt3support] )
179 - java? ( >=virtual/jdk-1.5:= )"
180 -RDEPEND="${DEPEND}"
181 -
182 -S="${WORKDIR}/${MY_P}"
183 -
184 -pkg_setup() {
185 - linux-info_pkg_setup
186 - if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
187 - echo
188 - elog "In order for ${PN} to work, you need to configure your kernel"
189 - elog "with CONFIG_OPROFILE set to 'm' or 'y'."
190 - echo
191 - fi
192 -
193 - if ! kernel_is -ge 2 6 ; then
194 - echo
195 - elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8."
196 - echo
197 - fi
198 -
199 - # Required for JIT support, see README_PACKAGERS
200 - enewgroup ${PN}
201 - enewuser ${PN} -1 -1 -1 ${PN}
202 -
203 - use java && java-pkg_init
204 -}
205 -
206 -src_prepare() {
207 - epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
208 - epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
209 - epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
210 - epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
211 - eautoreconf
212 -}
213 -
214 -src_configure() {
215 - econf \
216 - --disable-werror \
217 - $(use_with qt4 x) \
218 - $(use_enable qt4 gui qt4) \
219 - $(use_enable pch) \
220 - $(use_with java java ${JAVA_HOME})
221 -}
222 -
223 -src_install() {
224 - emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
225 -
226 - dodoc ChangeLog* README TODO
227 -
228 - dodir /etc/env.d
229 - echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${D}"/etc/env.d/10${PN} || die "env.d failed"
230 -}
231 -
232 -pkg_postinst() {
233 - echo
234 - elog "Now load the ${PN} module by running:"
235 - elog " # opcontrol --init"
236 - elog "Then read manpages and this html doc:"
237 - elog " /usr/share/doc/${PF}/${PN}.html"
238 - echo
239 -}