Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/files/, dev-util/oprofile/
Date: Thu, 29 Sep 2016 16:21:41
Message-Id: 1475166091.52be505267c2a9485045472a47990a8eaed6b1fd.bircoph@gentoo
1 commit: 52be505267c2a9485045472a47990a8eaed6b1fd
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 16:19:59 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 16:21:31 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52be5052
7
8 dev-util/oprofile: fix bug 594178
9
10 Add gcc-6 love. Patch from upstream commits by Peter Levine
11 plevine457/gmail.com.
12
13 Package-Manager: portage-2.3.1
14 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
15
16 dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch | 30 +++++++++++++++++++++++
17 dev-util/oprofile/oprofile-0.9.9-r1.ebuild | 3 ++-
18 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 1 +
19 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 7 +++++-
20 4 files changed, 39 insertions(+), 2 deletions(-)
21
22 diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
23 new file mode 100644
24 index 00000000..ab3ca7c
25 --- /dev/null
26 +++ b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
27 @@ -0,0 +1,30 @@
28 +--- a/libop/op_alloc_counter.c
29 ++++ b/libop/op_alloc_counter.c
30 +@@ -171,7 +171,7 @@
31 + /* no counters then probably perfmon managing perfmon hw */
32 + if (nr_counters <= 0) {
33 + nr_counters = op_get_nr_counters(cpu_type);
34 +- unavailable_counters = (~0) << nr_counters;
35 ++ unavailable_counters = (~0U) << nr_counters;
36 + }
37 +
38 + /* Check to see if we have enough physical counters to map events*/
39 +--- a/libutil++/op_bfd.cpp
40 ++++ b/libutil++/op_bfd.cpp
41 +@@ -535,15 +535,13 @@
42 + {
43 + op_bfd_symbol const & sym = syms[sym_idx];
44 +
45 +- bool const verbose = cverb << (vbfd & vlevel1);
46 +-
47 + if (anon_obj)
48 + start = sym.vma();
49 + else
50 + start = sym.filepos();
51 + end = start + sym.size();
52 +
53 +- if (!verbose)
54 ++ if (!(cverb << (vbfd & vlevel1)))
55 + return;
56 +
57 + io_state state(cverb << (vbfd & vlevel1));
58
59 diff --git a/dev-util/oprofile/oprofile-0.9.9-r1.ebuild b/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
60 index ee1c018..65ccf5a 100644
61 --- a/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
62 +++ b/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
63 @@ -1,4 +1,4 @@
64 -# Copyright 1999-2015 Gentoo Foundation
65 +# Copyright 1999-2016 Gentoo Foundation
66 # Distributed under the terms of the GNU General Public License v2
67 # $Id$
68
69 @@ -50,6 +50,7 @@ src_prepare() {
70 epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
71 epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
72 epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
73 + epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
74 eautoreconf
75 }
76
77
78 diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
79 index 95dc5a5..2abc919 100644
80 --- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
81 +++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
82 @@ -51,6 +51,7 @@ src_prepare() {
83 epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
84 epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
85 epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
86 + epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
87 eautoreconf
88 }
89
90
91 diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
92 index 914d365..6e83c7c 100644
93 --- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
94 +++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
95 @@ -3,7 +3,7 @@
96 # $Id$
97
98 EAPI="5"
99 -inherit java-pkg-opt-2 linux-info multilib user
100 +inherit eutils java-pkg-opt-2 linux-info multilib user
101
102 MY_P=${PN}-${PV/_/-}
103 DESCRIPTION="A transparent low-overhead system-wide profiler"
104 @@ -43,6 +43,11 @@ pkg_setup() {
105 use java && java-pkg_init
106 }
107
108 +src_prepare() {
109 + # fix bug #594178
110 + epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
111 +}
112 +
113 src_configure() {
114 econf \
115 --disable-werror \