[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2022-11-23 Thread Mike Gilbert
commit: 2fe852193563ad8730d421fe319cd20b55c1e75a
Author: Mike Gilbert  gentoo  org>
AuthorDate: Thu Nov 24 03:24:02 2022 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Thu Nov 24 03:24:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fe85219

dev-util/oprofile: make kernel config check non-fatal

Signed-off-by: Mike Gilbert  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 8c623f03696c..a2eba4e7291c 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -31,7 +31,7 @@ RDEPEND="${CDEPEND}
acct-group/oprofile
 "
 
-CONFIG_CHECK="PERF_EVENTS"
+CONFIG_CHECK="~PERF_EVENTS"
 ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
 
 pkg_setup() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/files/, dev-util/oprofile/

2021-12-09 Thread Andrew Savchenko
commit: 378d17fe2ce3bbace6a650c64fe73481d08986fe
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Thu Dec  9 21:08:05 2021 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Thu Dec  9 21:08:37 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=378d17fe

dev-util/oprofile: fix build with gcc12

Patch by Sergei Trofimovich  gmail.com> from oprofile mail lists.

Package-Manager: Portage-3.0.29, Repoman-3.0.3
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/files/gcc12.patch | 27 +++
 dev-util/oprofile/oprofile-1.4.0.ebuild |  1 +
 2 files changed, 28 insertions(+)

diff --git a/dev-util/oprofile/files/gcc12.patch 
b/dev-util/oprofile/files/gcc12.patch
new file mode 100644
index ..96f56d6a7ea7
--- /dev/null
+++ b/dev-util/oprofile/files/gcc12.patch
@@ -0,0 +1,27 @@
+`gcc-12` will forbid std::string(nullptr_t) constructors
+(as they never had a defined behaviour):
+
+operf_stats.cpp:182:24: error: use of deleted function 
'std::__cxx11::basic_string...; std::nullptr_t = std::nullptr_t]'
+  182 | return NULL;
+  |^~~~
+
+Signed-off-by: Sergei Trofimovich 
+---
+ libperf_events/operf_stats.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libperf_events/operf_stats.cpp b/libperf_events/operf_stats.cpp
+index 3cc28a75..a7bd0aec 100644
+--- a/libperf_events/operf_stats.cpp
 b/libperf_events/operf_stats.cpp
+@@ -179,7 +179,7 @@ static string create_stats_dir(string const & 
cur_sampledir)
+   if (rc && (errno != EEXIST)) {
+   cerr << "Error trying to create stats dir. " << endl;
+   perror("mkdir failed with");
+-  return NULL;
++  return "";
+   }
+   return stats_dir;
+ }
+-- 
+2.33.1

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 2526034bec1b..8c623f03696c 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -47,6 +47,7 @@ pkg_setup() {
 
 src_prepare() {
eapply "${FILESDIR}/musl.patch"
+   eapply "${FILESDIR}/gcc12.patch"
# bug 723092
sed -i 's/==/=/g' configure.ac || die
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2021-07-23 Thread Conrad Kostecki
commit: 05bd47d52fef32410c3f3088cd8b16e9e435a142
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Fri Jul 23 19:53:34 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Fri Jul 23 19:56:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05bd47d5

dev-util/oprofile: arm stable #787713

Closes: https://bugs.gentoo.org/787713
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 7c7502881b5..2526034bec1 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86"
 IUSE="apidoc java pch static-libs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2021-07-23 Thread Conrad Kostecki
commit: fc02b0e9445e607a9665cf646b87ae75cdc83208
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Fri Jul 23 19:55:51 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Fri Jul 23 19:56:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc02b0e9

dev-util/oprofile: drop old version

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-util/oprofile/Manifest  |   1 -
 dev-util/oprofile/files/binutils-2.34.patch | 157 
 dev-util/oprofile/oprofile-1.3.0.ebuild |  70 -
 3 files changed, 228 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 7fab711d237..af320611042 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,2 +1 @@
-DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B 
d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1
 SHA512 
02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba
 DIST oprofile-1.4.0.tar.gz 1557625 BLAKE2B 
fe1a725b713da0e06d3876c52f001163965c1b0dd8ccbb271ef6924525ac6ca342d55172c06cc21681b441c744780d5cb523be08562952c5916005ec67734221
 SHA512 
44c0ae55d20d623ea8b4245bfe3e208813dbb8778d7e320378ffe70538ef6af1a6ddaf5d110e29751c216879543f13121dd71cb320023205622b3f0cd6b157df

diff --git a/dev-util/oprofile/files/binutils-2.34.patch 
b/dev-util/oprofile/files/binutils-2.34.patch
deleted file mode 100644
index 6337191a21d..000
--- a/dev-util/oprofile/files/binutils-2.34.patch
+++ /dev/null
@@ -1,157 +0,0 @@
-commit 377610414fb6cd7ac30e4485d9d6482fcf29aca6
-Author: William Cohen 
-Date:   Wed Mar 18 21:19:16 2020 -0400
-
-Macro wrappers to handle the binutils 2.34 api changes
-
-Changes in binutils 2.34 API prevented oprofile from compiling with
-it.  This patch tests for the changes in the binutils API during
-configuration and selects the appropiate wrappers to allow oprofile to
-compile.  This allows oprofile to compile with both older and newer
-versions of binutils.
-
-diff --git a/configure.ac b/configure.ac
-index ac2fd35e..df032a78 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -224,6 +224,26 @@ if test "$host_cpu" = "powerpc64le" -o "$host_cpu" = 
"powerpc64"; then
- fi
- AC_SUBST(PFM_LIB)
- 
-+HAVE_BINUTILS_234='1'
-+AC_MSG_CHECKING([whether binutils 2.34 is being used])
-+rm -f test-for-BINUTILS
-+AC_LANG_CONFTEST(
-+  [AC_LANG_PROGRAM([[#include ]],
-+  [[asection * sect;
-+  bfd_size_type buildid_sect_size = bfd_section_size(sect);
-+  return 0;]])
-+  ])
-+$CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o 
test-for-BINUTILS  > /dev/null 2>&1
-+if test -f test-for-BINUTILS; then
-+  echo "yes"
-+  HAVE_BINUTILS_234='1'
-+else
-+  echo "no"
-+  HAVE_BINUTILS_234='0'
-+fi
-+AC_DEFINE_UNQUOTED(HAVE_BINUTILS_234, $HAVE_BINUTILS_234, [Using binutils 
2.34])
-+rm -f test-for-BINUTILS*
-+
- AC_ARG_WITH(java,
- [  --with-java=java-homePath to Java home directory (default is "no"; 
"yes" will use /usr as Java home)],
- JAVA_HOMEDIR=$with_java, [with_java=no])
-diff --git a/libutil++/bfd_support.cpp b/libutil++/bfd_support.cpp
-index fa904839..cd0f4f71 100644
 a/libutil++/bfd_support.cpp
-+++ b/libutil++/bfd_support.cpp
-@@ -19,6 +19,7 @@
- #include "locate_images.h"
- #include "op_libiberty.h"
- #include "op_exception.h"
-+#include "op_bfd_wrappers.h"
- 
- #include 
- #include 
-@@ -137,7 +138,7 @@ static bool get_build_id(bfd * ibfd, unsigned char * 
build_id)
-   }
-   }
- 
--  bfd_size_type buildid_sect_size = bfd_section_size(ibfd, sect);
-+  bfd_size_type buildid_sect_size = op_bfd_section_size(ibfd, sect);
-   char * contents = (char *) xmalloc(buildid_sect_size);
-   errno = 0;
-   if (!bfd_get_section_contents(ibfd, sect,
-@@ -188,7 +189,7 @@ bool get_debug_link_info(bfd * ibfd, string & filename, 
unsigned long & crc32)
-   if (sect == NULL)
-   return false;
-   
--  bfd_size_type debuglink_size = bfd_section_size(ibfd, sect);  
-+  bfd_size_type debuglink_size = op_bfd_section_size(ibfd, sect);
-   char * contents = (char *) xmalloc(debuglink_size);
-   cverb << vbfd
- << ".gnu_debuglink section has size " << debuglink_size << endl;
-@@ -346,7 +347,7 @@ void fixup_linenr(bfd * abfd, asection * section, asymbol 
** syms,
-   // first restrict the search on a sensible range of vma, 16 is
-   // an intuitive value based on epilog code look
-   size_t max_search = 16;
--  size_t section_size = bfd_section_size(abfd, section);
-+  size_t section_size = op_bfd_section_size(abfd, section);
-   if (pc + max_search > section_size)
-   max_search = section_size - pc;
- 
-@@ -819,10 

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2021-07-22 Thread Conrad Kostecki
commit: 41ce9d91e9b44ebf350de128a1d5c3fe5aa9523d
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Thu Jul 22 19:27:59 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Jul 22 19:28:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41ce9d91

dev-util/oprofile: ppc64 stable #787713

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 6d0b18cbb34..7c7502881b5 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ppc ~ppc64 ~sparc x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86"
 IUSE="apidoc java pch static-libs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2021-07-22 Thread Conrad Kostecki
commit: b458485c54acc0e4e03cbe6e081b6d54b1c02e52
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Thu Jul 22 19:26:27 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Jul 22 19:28:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b458485c

dev-util/oprofile: ppc stable #787713

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 605ba6b3171..6d0b18cbb34 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ppc ~ppc64 ~sparc x86"
 IUSE="apidoc java pch static-libs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2021-05-04 Thread Agostino Sarubbo
commit: fc6053f81522041197d52aac8878800f08f0
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue May  4 07:02:56 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue May  4 07:02:56 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc6053f8

dev-util/oprofile: x86 stable wrt bug #787713

Package-Manager: Portage-3.0.13, Repoman-3.0.2
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 79e30e9ec03..605ba6b3171 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
 IUSE="apidoc java pch static-libs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2021-05-03 Thread Sam James
commit: 4a1f637388ff47c6781f4636a3872ff78411d7f2
Author: Sam James  gentoo  org>
AuthorDate: Mon May  3 16:53:11 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May  3 16:53:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a1f6373

dev-util/oprofile: Stabilize 1.4.0 amd64, #787713

Signed-off-by: Sam James  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 010b73f8d51..79e30e9ec03 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="apidoc java pch static-libs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2021-05-02 Thread Andrew Savchenko
commit: 7c628db20bf468ed83dd10cef40d3a7577e4f464
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun May  2 13:27:03 2021 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun May  2 13:28:48 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c628db2

dev-util/oprofile: update jdk version requirement

As requisted in the bug 787371.
Oprofile builds fine with 1.8.
No need to revbump due to := revdep rebuild requirement.

Bug: https://bugs.gentoo.org/787371
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index c44a69cfe3d..010b73f8d51 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -15,7 +15,7 @@ IUSE="apidoc java pch static-libs"
 
 BDEPEND="
apidoc? ( app-doc/doxygen[dot] )
-   java? ( >=virtual/jdk-1.5:= )
+   java? ( >=virtual/jdk-1.8:= )
 "
 CDEPEND="
>=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2020-12-02 Thread Sam James
commit: 53cefeda6b4854943bb9137f06f61c4b272e83a0
Author: Roy Bamford  gentoo  org>
AuthorDate: Wed Dec  2 13:42:30 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Dec  2 23:21:42 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53cefeda

dev-util/oprofile: added ~arm64

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Roy Bamford  gentoo.org>
Signed-off-by: Sam James  gentoo.org>

 dev-util/oprofile/oprofile-1.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index 485fdf66c1f..c44a69cfe3d 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="apidoc java pch static-libs"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/files/, dev-util/oprofile/

2020-09-05 Thread Andrew Savchenko
commit: 44046f58059e057b3cddd7ce286cd71e6de81955
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sat Sep  5 10:59:57 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sat Sep  5 11:05:18 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44046f58

dev-util/oprofile: fix build with musl

Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/files/musl.patch  | 23 +++
 dev-util/oprofile/oprofile-1.4.0.ebuild |  3 ++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/dev-util/oprofile/files/musl.patch 
b/dev-util/oprofile/files/musl.patch
new file mode 100644
index 000..985eeece7bd
--- /dev/null
+++ b/dev-util/oprofile/files/musl.patch
@@ -0,0 +1,23 @@
+--- oprofile-1.4.0/pe_profiling/operf.cpp.orig 2016-08-08 18:03:27.0 
+0300
 oprofile-1.4.0/pe_profiling/operf.cpp  2020-09-05 12:45:55.237558495 
+0300
+@@ -860,9 +860,9 @@
+ {
+   if (remove(fpath)) {
+   perror("sample data removal error");
+-  return FTW_STOP;
++  return 1;
+   } else {
+-  return FTW_CONTINUE;
++  return 0;
+   }
+ }
+ 
+@@ -897,7 +897,7 @@
+   return;
+ 
+   if (!operf_options::append) {
+-int flags = FTW_DEPTH | FTW_ACTIONRETVAL;
++int flags = FTW_DEPTH;
+   errno = 0;
+   if (nftw(previous_sampledir.c_str(), 
__delete_old_previous_sample_data, 32, flags) !=0 &&
+   errno != ENOENT) {

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
index e881632d5f3..485fdf66c1f 100644
--- a/dev-util/oprofile/oprofile-1.4.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -20,7 +20,7 @@ BDEPEND="
 CDEPEND="
>=dev-libs/popt-1.7-r1
sys-libs/binutils-libs:=
-   >=sys-libs/glibc-2.3.2-r1
+   elibc_glibc? ( >=sys-libs/glibc-2.3.2-r1 )
ppc64? ( dev-libs/libpfm )
 "
 DEPEND="${CDEPEND}
@@ -46,6 +46,7 @@ pkg_setup() {
 }
 
 src_prepare() {
+   eapply "${FILESDIR}/musl.patch"
# bug 723092
sed -i 's/==/=/g' configure.ac || die
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2020-08-30 Thread Andrew Savchenko
commit: d9f840af70f1d562cb326d3829861c1be64aa761
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Aug 30 13:01:42 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Aug 30 13:05:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f840af

dev-util/oprofile: version bump

- Update to 1.4.0
- Migrate to GLEP 81
- Add support for doxygen docs build via USE=apidoc
- Remove bash-specific operators from configure
- Add USE="static-libs" to control *.a and *.la installation

Closes: https://bugs.gentoo.org/730716
Closes: https://bugs.gentoo.org/723092
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest  |  1 +
 dev-util/oprofile/metadata.xml  |  3 ++
 dev-util/oprofile/oprofile-1.4.0.ebuild | 87 +
 3 files changed, 91 insertions(+)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 7a50e041dc7..7fab711d237 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1 +1,2 @@
 DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B 
d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1
 SHA512 
02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba
+DIST oprofile-1.4.0.tar.gz 1557625 BLAKE2B 
fe1a725b713da0e06d3876c52f001163965c1b0dd8ccbb271ef6924525ac6ca342d55172c06cc21681b441c744780d5cb523be08562952c5916005ec67734221
 SHA512 
44c0ae55d20d623ea8b4245bfe3e208813dbb8778d7e320378ffe70538ef6af1a6ddaf5d110e29751c216879543f13121dd71cb320023205622b3f0cd6b157df

diff --git a/dev-util/oprofile/metadata.xml b/dev-util/oprofile/metadata.xml
index 2a35c6646c1..99119adc69c 100644
--- a/dev-util/oprofile/metadata.xml
+++ b/dev-util/oprofile/metadata.xml
@@ -6,6 +6,9 @@
 Andrew Savchenko
   
   A transparent low-overhead system-wide 
profiler
+  
+ Provide doxygen generated API docs.
+  
   
 oprofile
   

diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild 
b/dev-util/oprofile/oprofile-1.4.0.ebuild
new file mode 100644
index 000..e881632d5f3
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.4.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools java-pkg-opt-2 linux-info
+
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://oprofile.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="apidoc java pch static-libs"
+
+BDEPEND="
+   apidoc? ( app-doc/doxygen[dot] )
+   java? ( >=virtual/jdk-1.5:= )
+"
+CDEPEND="
+   >=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs:=
+   >=sys-libs/glibc-2.3.2-r1
+   ppc64? ( dev-libs/libpfm )
+"
+DEPEND="${CDEPEND}
+   >=sys-kernel/linux-headers-2.6.31
+"
+RDEPEND="${CDEPEND}
+   acct-user/oprofile
+   acct-group/oprofile
+"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! kernel_is -ge 2 6 31; then
+   echo
+   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
+   echo
+   fi
+
+   use java && java-pkg_init
+}
+
+src_prepare() {
+   # bug 723092
+   sed -i 's/==/=/g' configure.ac || die
+
+   java-pkg-opt-2_src_prepare
+   eautoreconf
+}
+
+src_configure() {
+   local jh=""
+   use java && jh="$(java-config -O)"
+   econf \
+   --disable-werror \
+   $(use_enable pch) \
+   $(use_with java java "${jh}")
+}
+
+src_compile() {
+   default
+   use apidoc && emake -C doc/srcdoc
+}
+
+src_install() {
+   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+   use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}/*.{a,la}
+   use apidoc && dodoc -r doc/srcdoc/html
+
+   dodoc ChangeLog* README TODO
+   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
+   doenvd "${T}/10${PN}"
+}
+
+pkg_postinst() {
+   echo
+   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
+   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
+   elog "Please read manpages and this html doc:"
+   elog "  /usr/share/doc/${PF}/${PN}.html"
+   echo
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2020-06-27 Thread Andrew Savchenko
commit: c852a7c84f28fe745437bcddc4d88b9dc44c85f5
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sat Jun 27 18:19:05 2020 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sat Jun 27 18:22:49 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c852a7c8

dev-util/oprofile: fix build with binutils-2.34

Use upstream patch 377610414fb6cd7ac30e4485d9d6482fcf29aca6 to fix
build with new binutils api (2.34) while keeping compatibility
support with older versions.

Closes: https://bugs.gentoo.org/707850
Closes: https://github.com/gentoo/gentoo/pull/15469
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/files/binutils-2.34.patch | 157 
 dev-util/oprofile/oprofile-1.3.0.ebuild |   8 +-
 2 files changed, 164 insertions(+), 1 deletion(-)

diff --git a/dev-util/oprofile/files/binutils-2.34.patch 
b/dev-util/oprofile/files/binutils-2.34.patch
new file mode 100644
index 000..6337191a21d
--- /dev/null
+++ b/dev-util/oprofile/files/binutils-2.34.patch
@@ -0,0 +1,157 @@
+commit 377610414fb6cd7ac30e4485d9d6482fcf29aca6
+Author: William Cohen 
+Date:   Wed Mar 18 21:19:16 2020 -0400
+
+Macro wrappers to handle the binutils 2.34 api changes
+
+Changes in binutils 2.34 API prevented oprofile from compiling with
+it.  This patch tests for the changes in the binutils API during
+configuration and selects the appropiate wrappers to allow oprofile to
+compile.  This allows oprofile to compile with both older and newer
+versions of binutils.
+
+diff --git a/configure.ac b/configure.ac
+index ac2fd35e..df032a78 100644
+--- a/configure.ac
 b/configure.ac
+@@ -224,6 +224,26 @@ if test "$host_cpu" = "powerpc64le" -o "$host_cpu" = 
"powerpc64"; then
+ fi
+ AC_SUBST(PFM_LIB)
+ 
++HAVE_BINUTILS_234='1'
++AC_MSG_CHECKING([whether binutils 2.34 is being used])
++rm -f test-for-BINUTILS
++AC_LANG_CONFTEST(
++  [AC_LANG_PROGRAM([[#include ]],
++  [[asection * sect;
++  bfd_size_type buildid_sect_size = bfd_section_size(sect);
++  return 0;]])
++  ])
++$CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o 
test-for-BINUTILS  > /dev/null 2>&1
++if test -f test-for-BINUTILS; then
++  echo "yes"
++  HAVE_BINUTILS_234='1'
++else
++  echo "no"
++  HAVE_BINUTILS_234='0'
++fi
++AC_DEFINE_UNQUOTED(HAVE_BINUTILS_234, $HAVE_BINUTILS_234, [Using binutils 
2.34])
++rm -f test-for-BINUTILS*
++
+ AC_ARG_WITH(java,
+ [  --with-java=java-homePath to Java home directory (default is "no"; 
"yes" will use /usr as Java home)],
+ JAVA_HOMEDIR=$with_java, [with_java=no])
+diff --git a/libutil++/bfd_support.cpp b/libutil++/bfd_support.cpp
+index fa904839..cd0f4f71 100644
+--- a/libutil++/bfd_support.cpp
 b/libutil++/bfd_support.cpp
+@@ -19,6 +19,7 @@
+ #include "locate_images.h"
+ #include "op_libiberty.h"
+ #include "op_exception.h"
++#include "op_bfd_wrappers.h"
+ 
+ #include 
+ #include 
+@@ -137,7 +138,7 @@ static bool get_build_id(bfd * ibfd, unsigned char * 
build_id)
+   }
+   }
+ 
+-  bfd_size_type buildid_sect_size = bfd_section_size(ibfd, sect);
++  bfd_size_type buildid_sect_size = op_bfd_section_size(ibfd, sect);
+   char * contents = (char *) xmalloc(buildid_sect_size);
+   errno = 0;
+   if (!bfd_get_section_contents(ibfd, sect,
+@@ -188,7 +189,7 @@ bool get_debug_link_info(bfd * ibfd, string & filename, 
unsigned long & crc32)
+   if (sect == NULL)
+   return false;
+   
+-  bfd_size_type debuglink_size = bfd_section_size(ibfd, sect);  
++  bfd_size_type debuglink_size = op_bfd_section_size(ibfd, sect);
+   char * contents = (char *) xmalloc(debuglink_size);
+   cverb << vbfd
+ << ".gnu_debuglink section has size " << debuglink_size << endl;
+@@ -346,7 +347,7 @@ void fixup_linenr(bfd * abfd, asection * section, asymbol 
** syms,
+   // first restrict the search on a sensible range of vma, 16 is
+   // an intuitive value based on epilog code look
+   size_t max_search = 16;
+-  size_t section_size = bfd_section_size(abfd, section);
++  size_t section_size = op_bfd_section_size(abfd, section);
+   if (pc + max_search > section_size)
+   max_search = section_size - pc;
+ 
+@@ -819,10 +820,10 @@ find_nearest_line(bfd_info const & b, op_bfd_symbol 
const & sym,
+   else
+   pc = (sym.value() + offset) - sym.filepos();
+ 
+-  if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
++  if ((op_bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
+   goto fail;
+ 
+-  if (pc >= bfd_section_size(abfd, section))
++  if (pc >= op_bfd_section_size(abfd, section))
+   goto fail;
+ 
+   ret = bfd_find_nearest_line(abfd, section, syms, pc, ,
+diff --git a/libutil/op_bfd_wrappers.h b/libutil/op_bfd_wrappers.h
+new file 

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2019-07-14 Thread Andrew Savchenko
commit: 89c14c7d838b73311c76b0bcebfab6e21520b6a5
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Jul 14 13:44:18 2019 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Jul 14 13:46:37 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89c14c7d

dev-util/oprofile: remove old

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest |  1 -
 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 64 --
 2 files changed, 65 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 6e3bf9e62e3..7a50e041dc7 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,2 +1 @@
-DIST oprofile-1.2.0.tar.gz 1533343 BLAKE2B 
873433ddba11389a221ff3b6eb6b8b19748ac4989232bda7d9af698b95dedf8ecd1112dce3accab5e1b40c87287901c015eec167713b9ad11daa0a0f0e3255f9
 SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
 DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B 
d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1
 SHA512 
02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
deleted file mode 100644
index 336fc665809..000
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit java-pkg-opt-2 linux-info user
-
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ~hppa ~mips ppc ppc64 ~sparc x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs:=
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )
-   ppc64? ( dev-libs/libpfm )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   echo
-   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
-   echo
-   fi
-
-   # Required for JIT support, see README_PACKAGERS
-   enewgroup ${PN}
-   enewuser ${PN} -1 -1 -1 ${PN}
-
-   use java && java-pkg_init
-}
-
-src_configure() {
-   econf \
-   --disable-werror \
-   $(use_enable pch) \
-   $(use_with java java ${JAVA_HOME})
-}
-
-src_install() {
-   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
-
-   dodoc ChangeLog* README TODO
-   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
-   doenvd "${T}/10${PN}"
-}
-
-pkg_postinst() {
-   echo
-   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
-   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
-   elog "Please read manpages and this html doc:"
-   elog "  /usr/share/doc/${PF}/${PN}.html"
-   echo
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2019-06-13 Thread Markus Meier
commit: 4af3d65b741baf085d17fa13926051aa10a87762
Author: Markus Meier  gentoo  org>
AuthorDate: Thu Jun 13 19:17:00 2019 +
Commit: Markus Meier  gentoo  org>
CommitDate: Thu Jun 13 19:17:00 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4af3d65b

dev-util/oprofile: arm stable, bug #683352

Signed-off-by: Markus Meier  gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
RepoMan-Options: --include-arches="arm"

 dev-util/oprofile/oprofile-1.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild 
b/dev-util/oprofile/oprofile-1.3.0.ebuild
index a47709f9e9a..0fcb76dbcf1 100644
--- a/dev-util/oprofile/oprofile-1.3.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~hppa ~mips ppc ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 arm ~hppa ~mips ppc ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2019-05-26 Thread Sergei Trofimovich
commit: 596d545d8c321252633ffe744a999748e35683fc
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun May 26 07:31:48 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun May 26 07:31:48 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=596d545d

dev-util/oprofile: stable 1.3.0 for ppc/ppc64, bug #683352

Tested-by: ernsteiswuerfel
Package-Manager: Portage-2.3.66, Repoman-2.3.12
RepoMan-Options: --include-arches="ppc ppc64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/oprofile/oprofile-1.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild 
b/dev-util/oprofile/oprofile-1.3.0.ebuild
index bd943675ab3..a47709f9e9a 100644
--- a/dev-util/oprofile/oprofile-1.3.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 ~arm ~hppa ~mips ppc ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2019-05-12 Thread Thomas Deutschmann
commit: 92d4817929be68eab1261f8f73852c5b91c77867
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Mon May 13 00:24:14 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Mon May 13 00:37:49 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d48179

dev-util/oprofile: x86 stable (bug #683352)

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann  gentoo.org>

 dev-util/oprofile/oprofile-1.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild 
b/dev-util/oprofile/oprofile-1.3.0.ebuild
index ae37cd926c9..bd943675ab3 100644
--- a/dev-util/oprofile/oprofile-1.3.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2019-05-07 Thread Tobias Klausmann
commit: 10719830442d6573869fff951a48acea0f2aa392
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Tue May  7 08:45:45 2019 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Tue May  7 08:45:45 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10719830

dev-util/oprofile-1.3.0-r0: alpha stable

Bug: http://bugs.gentoo.org/683352
Signed-off-by: Tobias Klausmann  gentoo.org>

 dev-util/oprofile/oprofile-1.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild 
b/dev-util/oprofile/oprofile-1.3.0.ebuild
index e293136b535..ae37cd926c9 100644
--- a/dev-util/oprofile/oprofile-1.3.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2019-04-18 Thread Aaron Bauman
commit: d07929939f94ab43fd2e587b62fb666ffb4f3b61
Author: Aaron Bauman  gentoo  org>
AuthorDate: Fri Apr 19 01:31:09 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Fri Apr 19 01:31:09 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0792993

dev-util/oprofile: amd64 stable wrt bug #683352

Signed-off-by: Aaron Bauman  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-util/oprofile/oprofile-1.3.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild 
b/dev-util/oprofile/oprofile-1.3.0.ebuild
index c7b531f0ad3..e293136b535 100644
--- a/dev-util/oprofile/oprofile-1.3.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2018-12-21 Thread Andrew Savchenko
commit: f4a8f285371d3b64355e50bfc2a4754fbfbbe2ec
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sat Dec 22 06:53:17 2018 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sat Dec 22 06:54:07 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4a8f285

dev-util/oprofile: remove old

Signed-off-by: Andrew Savchenko  gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11

 dev-util/oprofile/Manifest |  1 -
 .../files/oprofile-1.1.0-gcc6-template-depth.patch | 10 ---
 dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch  | 30 -
 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 75 --
 4 files changed, 116 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 9485fee3e1b..6e3bf9e62e3 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,3 +1,2 @@
-DIST oprofile-1.1.0.tar.gz 1468502 BLAKE2B 
5c0abdf1ce6f3fa9b7140036ff654b2f5d5e29d996afec834014c141a4669e57c1d4ac60d6705c35ee1dce23ce790e07063b58508abd39b6562b7298744e2eb4
 SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 DIST oprofile-1.2.0.tar.gz 1533343 BLAKE2B 
873433ddba11389a221ff3b6eb6b8b19748ac4989232bda7d9af698b95dedf8ecd1112dce3accab5e1b40c87287901c015eec167713b9ad11daa0a0f0e3255f9
 SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
 DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B 
d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1
 SHA512 
02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba

diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch 
b/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch
deleted file mode 100644
index 01fc86910a3..000
--- a/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch
+++ /dev/null
@@ -1,10 +0,0 @@
 oprofile-1.1.0/configure.ac.orig   2015-07-21 17:53:27.0 +0300
-+++ oprofile-1.1.0/configure.ac2016-11-22 01:15:31.329067697 +0300
-@@ -320,7 +320,6 @@
- AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-Wall])
- AX_CFLAGS_OPTION(OP_CFLAGS,[-fno-common])
- AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-fno-common])
--AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-ftemplate-depth-50])
- AX_CFLAGS_OPTION(OP_CFLAGS,[-Wdeclaration-after-statement])
- 
- dnl enable option to use GCC test coverage

diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch 
b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
deleted file mode 100644
index ab3ca7c1b14..000
--- a/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
+++ /dev/null
@@ -1,30 +0,0 @@
 a/libop/op_alloc_counter.c
-+++ b/libop/op_alloc_counter.c
-@@ -171,7 +171,7 @@
-   /* no counters then probably perfmon managing perfmon hw */
-   if (nr_counters <= 0) {
-   nr_counters = op_get_nr_counters(cpu_type);
--  unavailable_counters = (~0) << nr_counters;
-+  unavailable_counters = (~0U) << nr_counters;
-   }
- 
-   /* Check to see if we have enough physical counters to map events*/
 a/libutil++/op_bfd.cpp
-+++ b/libutil++/op_bfd.cpp
-@@ -535,15 +535,13 @@
- {
-   op_bfd_symbol const & sym = syms[sym_idx];
- 
--  bool const verbose = cverb << (vbfd & vlevel1);
--
-   if (anon_obj)
-   start = sym.vma();
-   else
-   start = sym.filepos();
-   end = start + sym.size();
- 
--  if (!verbose)
-+  if (!(cverb << (vbfd & vlevel1)))
-   return;
- 
-   io_state state(cverb << (vbfd & vlevel1));

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
deleted file mode 100644
index 2c8a16f7a16..000
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools eutils java-pkg-opt-2 linux-info multilib user
-
-MY_P=${PN}-${PV/_/-}
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs:=
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )
-   ppc64? ( dev-libs/libpfm )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-S="${WORKDIR}/${MY_P}"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2018-12-19 Thread Sergei Trofimovich
commit: c450e478eb835b0f09099d17d3a0f44406562fd5
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Dec 19 22:47:38 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Dec 19 22:47:38 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c450e478

dev-util/oprofile: stable 1.2.0-r1 for ppc/ppc64, bug #669800

Tested-by: ernsteiswuerfel
Package-Manager: Portage-2.3.52, Repoman-2.3.12
RepoMan-Options: --include-arches="ppc ppc64"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index d876e4711a6..336fc665809 100644
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 arm ~hppa ~mips ppc ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2018-12-08 Thread Mikle Kolyada
commit: 7b0350651738cb846963ebe9055236c4780133aa
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat Dec  8 12:14:29 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat Dec  8 12:14:43 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b035065

dev-util/oprofile: arm stable wrt bug #669800

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index 97686d9e6ae..d876e4711a6 100644
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2018-11-28 Thread Tobias Klausmann
commit: 3c2b5c4316b1b9967b6ea80b5e93f2cdaeefb57c
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Wed Nov 28 20:13:41 2018 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Wed Nov 28 20:13:41 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c2b5c43

dev-util/oprofile-1.2.0-r1: alpha stable

Bug: http://bugs.gentoo.org/669800
Signed-off-by: Tobias Klausmann  gentoo.org>

 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index 3a5dc70fb4a..97686d9e6ae 100644
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2018-10-30 Thread Mikle Kolyada
commit: cf41570bf827999f32b01b8a6da2a870b1e51ef5
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Tue Oct 30 13:21:15 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Tue Oct 30 13:21:15 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf41570b

dev-util/oprofile: amd64 stable wrt bug #669800

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index 3b6705fcab7..3a5dc70fb4a 100644
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2018-10-28 Thread Thomas Deutschmann
commit: e4c841fce1186f682d0597f2c8b850155ca181e0
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Oct 28 21:19:43 2018 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Oct 28 21:29:05 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4c841fc

dev-util/oprofile: x86 stable (bug #669800)

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann  gentoo.org>

 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index 809a7ce8a48..3b6705fcab7 100644
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2018-10-27 Thread Andrew Savchenko
commit: 8d7ea59d2cef367fe5c7131773e5225954bd5ee6
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sat Oct 27 20:07:10 2018 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sat Oct 27 20:08:25 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d7ea59d

dev-util/oprofile: version bump

Signed-off-by: Andrew Savchenko  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-util/oprofile/Manifest  |  1 +
 dev-util/oprofile/oprofile-1.3.0.ebuild | 64 +
 2 files changed, 65 insertions(+)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 0bb84cb8e05..9485fee3e1b 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,2 +1,3 @@
 DIST oprofile-1.1.0.tar.gz 1468502 BLAKE2B 
5c0abdf1ce6f3fa9b7140036ff654b2f5d5e29d996afec834014c141a4669e57c1d4ac60d6705c35ee1dce23ce790e07063b58508abd39b6562b7298744e2eb4
 SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 DIST oprofile-1.2.0.tar.gz 1533343 BLAKE2B 
873433ddba11389a221ff3b6eb6b8b19748ac4989232bda7d9af698b95dedf8ecd1112dce3accab5e1b40c87287901c015eec167713b9ad11daa0a0f0e3255f9
 SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
+DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B 
d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1
 SHA512 
02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba

diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild 
b/dev-util/oprofile/oprofile-1.3.0.ebuild
new file mode 100644
index 000..c7b531f0ad3
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit java-pkg-opt-2 linux-info user
+
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://oprofile.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs:=
+   >=sys-libs/glibc-2.3.2-r1
+   java? ( >=virtual/jdk-1.5:= )
+   ppc64? ( dev-libs/libpfm )"
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.31"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! kernel_is -ge 2 6 31; then
+   echo
+   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
+   echo
+   fi
+
+   # Required for JIT support, see README_PACKAGERS
+   enewgroup ${PN}
+   enewuser ${PN} -1 -1 -1 ${PN}
+
+   use java && java-pkg_init
+}
+
+src_configure() {
+   econf \
+   --disable-werror \
+   $(use_enable pch) \
+   $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+   dodoc ChangeLog* README TODO
+   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
+   doenvd "${T}/10${PN}"
+}
+
+pkg_postinst() {
+   echo
+   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
+   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
+   elog "Please read manpages and this html doc:"
+   elog "  /usr/share/doc/${PF}/${PN}.html"
+   echo
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2017-12-10 Thread Ulrich Müller
commit: a66e74adf91c1dbbe34a465b0d045a16759dbf92
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sun Dec 10 09:26:01 2017 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sun Dec 10 09:26:56 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a66e74ad

dev-util/oprofile: Update Manifest hashes.

 dev-util/oprofile/Manifest | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 91169c0dbce..0bb84cb8e05 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,2 +1,2 @@
-DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
-DIST oprofile-1.2.0.tar.gz 1533343 SHA256 
eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
 WHIRLPOOL 
e677d0117ef232bbd8794793e9b9fb31c1d89dc87e5d797d18720ff8baaf0e2f6e8328662a6b1e5b2a5662081e06927923f7969502dea9609ab09ab424a2ae07
+DIST oprofile-1.1.0.tar.gz 1468502 BLAKE2B 
5c0abdf1ce6f3fa9b7140036ff654b2f5d5e29d996afec834014c141a4669e57c1d4ac60d6705c35ee1dce23ce790e07063b58508abd39b6562b7298744e2eb4
 SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
+DIST oprofile-1.2.0.tar.gz 1533343 BLAKE2B 
873433ddba11389a221ff3b6eb6b8b19748ac4989232bda7d9af698b95dedf8ecd1112dce3accab5e1b40c87287901c015eec167713b9ad11daa0a0f0e3255f9
 SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2017-11-23 Thread Andreas Sturmlechner
commit: bc2df13412d0ca85486b83f439e8c42a4992bb06
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Nov 22 18:20:24 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Nov 23 16:34:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc2df134

dev-util/oprofile: Drop old

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 dev-util/oprofile/Manifest |  1 -
 .../files/oprofile-0.9.9-gcc-4.9-non-ppc.patch | 36 --
 .../files/oprofile-0.9.9-gcc-4.9-unused.patch  | 47 -
 .../oprofile/files/oprofile-1.0.0-athlon.patch | 20 --
 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 82 --
 5 files changed, 186 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index f91abaa9c0c..91169c0dbce 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,3 +1,2 @@
-DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
 DIST oprofile-1.2.0.tar.gz 1533343 SHA256 
eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
 WHIRLPOOL 
e677d0117ef232bbd8794793e9b9fb31c1d89dc87e5d797d18720ff8baaf0e2f6e8328662a6b1e5b2a5662081e06927923f7969502dea9609ab09ab424a2ae07

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
deleted file mode 100644
index 423c703f7ff..000
--- a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Backported from 1.0.0:
-==
-commit 008e470a9b8751de0a3745e511cbc05b68759688
-Author: Aaro Koskinen 
-Date:   Mon May 12 08:28:46 2014 -0500
-
-configure: fix test-for-synth check with GCC 4.9.0
-
-With GCC 4.9.0 oprofile 0.9.9 build fails on non-PPC platfroms because
-the "test-for-synth" configure check result is incorrect: There is a NULL
-pointer dereference in the test program, so the compiler seems to optimize
-the rest of the code away, and the test will always succeed regardless
-whether powerpc_elf64_vec/bfd_elf64_powerpc_vec are present or not.
-Fix by allocating the referred struct statically.
-
-While at it, also include stdio.h to avoid a compiler warning.
-
-Signed-off-by: Aaro Koskinen 
-
-diff --git a/m4/binutils.m4 b/m4/binutils.m4
-index 25fb15a..d7948c1 100644
 a/m4/binutils.m4
-+++ b/m4/binutils.m4
-@@ -27,8 +27,10 @@ if test "$OS" = "Linux"; then
-   AC_MSG_CHECKING([whether bfd_get_synthetic_symtab() exists in BFD 
library])
-   rm -f test-for-synth
-   AC_LANG_CONFTEST(
--  [AC_LANG_PROGRAM([[#include ]],
--  [[asymbol * synthsyms;  bfd * ibfd = 0; 
-+  [AC_LANG_PROGRAM([[#include ]
-+[#include ]
-+[static bfd _ibfd;]],
-+[[asymbol * synthsyms;bfd * ibfd = &_ibfd;
-   long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 
0, 0, );
-   extern const bfd_target bfd_elf64_powerpc_vec;
-   extern const bfd_target bfd_elf64_powerpcle_vec;

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
deleted file mode 100644
index 5c541a053a7..000
--- a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-commit 98f57a6c0e32bc6080a50e1cdd769b9ff78108bc
-Author: William Cohen 
-Date:   Tue Jun 10 09:56:55 2014 -0500
-
-Remove unused functions causing errors in recent gcc
-
-The Fedora rawhide compiler is now stricter and will treat the
-warnings for unused functions as errors and stop the compile. This patch
-removes two unused functions in the code.
-
-Signed-off-by: William Cohen 
-
-diff --git a/libpp/callgraph_container.cpp b/libpp/callgraph_container.cpp
-index 1d1c95f..c5bc272 100644

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2017-09-14 Thread Sven Wegener
commit: 5819109b302b2414a864cfd8f2fe98ee52f19a56
Author: Sven Wegener  gentoo  org>
AuthorDate: Thu Sep 14 21:51:36 2017 +
Commit: Sven Wegener  gentoo  org>
CommitDate: Thu Sep 14 22:01:04 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5819109b

dev-util/oprofile: Add SLOT dependency on binutils-libs

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 4 ++--
 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 4 ++--
 dev-util/oprofile/oprofile-1.2.0-r1.ebuild | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 022bec860ca..a5a0ac05f12 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -15,7 +15,7 @@ KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs
+   sys-libs/binutils-libs:=
>=sys-libs/glibc-2.3.2-r1
ppc64? ( dev-libs/libpfm )
qt4? ( dev-qt/qtgui:4[qt3support] )

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 0a53eda6145..2c8a16f7a16 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -15,7 +15,7 @@ KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs
+   sys-libs/binutils-libs:=
>=sys-libs/glibc-2.3.2-r1
java? ( >=virtual/jdk-1.5:= )
ppc64? ( dev-libs/libpfm )"

diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index c34d294d89f..809a7ce8a48 100644
--- a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -14,7 +14,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc 
~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs
+   sys-libs/binutils-libs:=
>=sys-libs/glibc-2.3.2-r1
java? ( >=virtual/jdk-1.5:= )
ppc64? ( dev-libs/libpfm )"



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2017-08-23 Thread Andrew Savchenko
commit: 32facc54a15cf84e3a006a790027008b8cfbc161
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Wed Aug 23 06:41:05 2017 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Wed Aug 23 06:41:58 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32facc54

dev-util/oprofile: remove old

Package-Manager: Portage-2.3.8, Repoman-2.3.3
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest |  1 -
 .../oprofile/oprofile-1.2.0_pre20161027-r1.ebuild  | 77 --
 2 files changed, 78 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 45439ddcf46..f91abaa9c0c 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,4 +1,3 @@
 DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
 DIST oprofile-1.2.0.tar.gz 1533343 SHA256 
eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
 WHIRLPOOL 
e677d0117ef232bbd8794793e9b9fb31c1d89dc87e5d797d18720ff8baaf0e2f6e8328662a6b1e5b2a5662081e06927923f7969502dea9609ab09ab424a2ae07
-DIST oprofile-1.2.0_pre20161027.patch.xz 19496 SHA256 
37f7a7cf2cd78a5131bcdac4f9d6d9847cf485a841590a1023e923a26dee9eec SHA512 
e11f1adfee6cf78daf94d2f7ce6d05daaaec8937cc4074c6dddc06abab34aa3ec4dce350b632f3e240bf31339562f0c723b2c9816d05588e9ecfea49584f821f
 WHIRLPOOL 
bf6663a2771e1729452cf2897083edfbcd9e4934061e82553586eb0bf2602c906b033a449a615679839bf12578e5f5ef43bb73b923370b74158825693113e949

diff --git a/dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild 
b/dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild
deleted file mode 100644
index 5eafde5bdbc..000
--- a/dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-inherit autotools java-pkg-opt-2 linux-info user
-
-MY_P=${PN}-1.1.0
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
-   https://dev.gentoo.org/~bircoph/patches/${P}.patch.xz;
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )
-   ppc64? ( dev-libs/libpfm )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-S="${WORKDIR}/${MY_P}"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-PATCHES=( "${WORKDIR}/${P}.patch" )
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   echo
-   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
-   echo
-   fi
-
-   # Required for JIT support, see README_PACKAGERS
-   enewgroup ${PN}
-   enewuser ${PN} -1 -1 -1 ${PN}
-
-   use java && java-pkg_init
-}
-
-src_prepare() {
-   default
-   # bug #60
-   epatch "${FILESDIR}/${PN}-1.1.0-gcc6-template-depth.patch"
-   eautoreconf
-}
-
-src_configure() {
-   econf \
-   --disable-werror \
-   $(use_enable pch) \
-   $(use_with java java ${JAVA_HOME})
-}
-
-src_install() {
-   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
-
-   dodoc ChangeLog* README TODO
-   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
-   doenvd "${T}/10${PN}"
-}
-
-pkg_postinst() {
-   echo
-   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
-   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
-   elog "Please read manpages and this html doc:"
-   elog "  /usr/share/doc/${PF}/${PN}.html"
-   echo
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2017-08-23 Thread Andrew Savchenko
commit: 08fa0cbd562f100a64fde7d079d7828e824b1004
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Wed Aug 23 06:11:26 2017 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Wed Aug 23 06:41:57 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08fa0cbd

dev-util/oprofile: drop event files filtering

Event files may be used in nontrivial way, so filtering them out
may result in broken oprofile, see
https://bugs.gentoo.org/show_bug.cgi?id=580016#c2

Package-Manager: Portage-2.3.8, Repoman-2.3.3
Signed-off-by: Andrew Savchenko  gentoo.org>

 .../{oprofile-1.2.0.ebuild => oprofile-1.2.0-r1.ebuild} | 15 ---
 ...1027.ebuild => oprofile-1.2.0_pre20161027-r1.ebuild} | 17 +
 2 files changed, 1 insertion(+), 31 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0.ebuild 
b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
similarity index 84%
rename from dev-util/oprofile/oprofile-1.2.0.ebuild
rename to dev-util/oprofile/oprofile-1.2.0-r1.ebuild
index c548ac8146e..c34d294d89f 100644
--- a/dev-util/oprofile/oprofile-1.2.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -52,21 +52,6 @@ src_install() {
dodoc ChangeLog* README TODO
echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
doenvd "${T}/10${PN}"
-
-   # filter out event files for alien arches, bug 580016
-   cd "${D}/usr/share/${PN}" || die
-   local arch="${ARCH}" f
-   case "${arch}" in
-   x86)
-   arch=i386
-   ;;
-   amd64)
-   arch=x86-64
-   ;;
-   esac
-   for f in $(find -O3 -mindepth 1 -maxdepth 1 -type d ! -name "${arch}" 
); do
-   rm -r "${f}" || die
-   done
 }
 
 pkg_postinst() {

diff --git a/dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild 
b/dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild
similarity index 84%
rename from dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild
rename to dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild
index 0c0f35aa14a..5eafde5bdbc 100644
--- a/dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0_pre20161027-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -65,21 +65,6 @@ src_install() {
dodoc ChangeLog* README TODO
echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
doenvd "${T}/10${PN}"
-
-   # filter out event files for alien arches, bug 580016
-   cd "${D}/usr/share/${PN}" || die
-   local arch="${ARCH}" f
-   case "${arch}" in
-   x86)
-   arch=i386
-   ;;
-   amd64)
-   arch=x86-64
-   ;;
-   esac
-   for f in $(find -O3 -mindepth 1 -maxdepth 1 -type d ! -name "${arch}" 
); do
-   rm -r "${f}" || die
-   done
 }
 
 pkg_postinst() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2017-08-07 Thread Andrew Savchenko
commit: 160721afa4c8412a31aec830469b7389d0210616
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Mon Aug  7 15:21:45 2017 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Mon Aug  7 15:24:18 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160721af

dev-util/oprofile: remove the kludge for java-pkg-opt-2.eclass

java-pkg-opt-2.eclass is now fixed in the tree, the kludge is no
longer needed.

Package-Manager: Portage-2.3.6, Repoman-2.3.3
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/oprofile-1.2.0.ebuild | 6 --
 1 file changed, 6 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.2.0.ebuild 
b/dev-util/oprofile/oprofile-1.2.0.ebuild
index 066d0a54020..c548ac8146e 100644
--- a/dev-util/oprofile/oprofile-1.2.0.ebuild
+++ b/dev-util/oprofile/oprofile-1.2.0.ebuild
@@ -39,12 +39,6 @@ pkg_setup() {
use java && java-pkg_init
 }
 
-# kludge for the bug in java-pkg-opt-2.eclass
-# 
https://archives.gentoo.org/gentoo-dev/message/2b8c7f0ed39423050a763418ca884ed7
-src_prepare() {
-   use java && java-pkg-opt-2_src_prepare || eapply_user
-}
-
 src_configure() {
econf \
--disable-werror \



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2017-07-30 Thread Andrew Savchenko
commit: fc0e46d991d94a69d791607e634ace73d9ed038e
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Jul 30 11:54:46 2017 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Jul 30 11:54:46 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc0e46d9

dev-util/oprofile: 1.2.0 version bump

Package-Manager: Portage-2.3.6, Repoman-2.3.2
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest  |  1 +
 dev-util/oprofile/oprofile-1.2.0.ebuild | 85 +
 2 files changed, 86 insertions(+)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index b2368e232cc..45439ddcf46 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,3 +1,4 @@
 DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
+DIST oprofile-1.2.0.tar.gz 1533343 SHA256 
eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d SHA512 
d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d
 WHIRLPOOL 
e677d0117ef232bbd8794793e9b9fb31c1d89dc87e5d797d18720ff8baaf0e2f6e8328662a6b1e5b2a5662081e06927923f7969502dea9609ab09ab424a2ae07
 DIST oprofile-1.2.0_pre20161027.patch.xz 19496 SHA256 
37f7a7cf2cd78a5131bcdac4f9d6d9847cf485a841590a1023e923a26dee9eec SHA512 
e11f1adfee6cf78daf94d2f7ce6d05daaaec8937cc4074c6dddc06abab34aa3ec4dce350b632f3e240bf31339562f0c723b2c9816d05588e9ecfea49584f821f
 WHIRLPOOL 
bf6663a2771e1729452cf2897083edfbcd9e4934061e82553586eb0bf2602c906b033a449a615679839bf12578e5f5ef43bb73b923370b74158825693113e949

diff --git a/dev-util/oprofile/oprofile-1.2.0.ebuild 
b/dev-util/oprofile/oprofile-1.2.0.ebuild
new file mode 100644
index 000..066d0a54020
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.2.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit java-pkg-opt-2 linux-info user
+
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs
+   >=sys-libs/glibc-2.3.2-r1
+   java? ( >=virtual/jdk-1.5:= )
+   ppc64? ( dev-libs/libpfm )"
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.31"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! kernel_is -ge 2 6 31; then
+   echo
+   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
+   echo
+   fi
+
+   # Required for JIT support, see README_PACKAGERS
+   enewgroup ${PN}
+   enewuser ${PN} -1 -1 -1 ${PN}
+
+   use java && java-pkg_init
+}
+
+# kludge for the bug in java-pkg-opt-2.eclass
+# 
https://archives.gentoo.org/gentoo-dev/message/2b8c7f0ed39423050a763418ca884ed7
+src_prepare() {
+   use java && java-pkg-opt-2_src_prepare || eapply_user
+}
+
+src_configure() {
+   econf \
+   --disable-werror \
+   $(use_enable pch) \
+   $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+   dodoc ChangeLog* README TODO
+   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
+   doenvd "${T}/10${PN}"
+
+   # filter out event files for alien arches, bug 580016
+   cd "${D}/usr/share/${PN}" || die
+   local arch="${ARCH}" f
+   case "${arch}" in
+   x86)
+   arch=i386
+   ;;
+   amd64)
+   arch=x86-64
+   ;;
+   esac
+   for f in $(find -O3 -mindepth 1 -maxdepth 1 -type d ! -name "${arch}" 
); do
+   rm -r "${f}" || die
+   done
+}
+
+pkg_postinst() {
+   echo
+   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
+   elog "CONFIG_OPROFILE is no longer used, you may 

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-25 Thread Andrew Savchenko
commit: cd7a4056fc02f9a5f6c182b4ef762511beb2f88e
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Dec 25 22:38:39 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Dec 25 22:38:39 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd7a4056

dev-util/oprofile: remove old

Package-Manager: portage-2.3.3
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/oprofile-0.9.9-r1.ebuild | 82 --
 1 file changed, 82 deletions(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r1.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
deleted file mode 100644
index 65ccf5a..
--- a/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-inherit autotools eutils linux-info multilib user java-pkg-opt-2
-
-MY_P=${PN}-${PV/_/-}
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
-IUSE="java pch qt4"
-
-DEPEND=">=dev-libs/popt-1.7-r1
-   >=sys-devel/binutils-2.14.90.0.6-r3:*
-   >=sys-libs/glibc-2.3.2-r1
-   qt4? ( dev-qt/qtgui:4[qt3support] )
-   java? ( >=virtual/jdk-1.5:= )"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
-   echo
-   elog "In order for ${PN} to work, you need to configure your 
kernel"
-   elog "with CONFIG_OPROFILE set to 'm' or 'y'."
-   echo
-   fi
-
-   if ! kernel_is -ge 2 6 ; then
-   echo
-   elog "Support for kernels before 2.6 has been dropped in 
${PN}-0.9.8."
-   echo
-   fi
-
-   # Required for JIT support, see README_PACKAGERS
-   enewgroup ${PN}
-   enewuser ${PN} -1 -1 -1 ${PN}
-
-   use java && java-pkg_init
-}
-
-src_prepare() {
-   epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
-   epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
-   epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
-   epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
-   eautoreconf
-}
-
-src_configure() {
-   econf \
-   --disable-werror \
-   $(use_with qt4 x) \
-   $(use_enable qt4 gui qt4) \
-   $(use_enable pch) \
-   $(use_with java java ${JAVA_HOME})
-}
-
-src_install() {
-   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
-
-   dodoc ChangeLog* README TODO
-
-   dodir /etc/env.d
-   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > 
"${D}"/etc/env.d/10${PN} || die "env.d failed"
-}
-
-pkg_postinst() {
-   echo
-   elog "Now load the ${PN} module by running:"
-   elog "  # opcontrol --init"
-   elog "Then read manpages and this html doc:"
-   elog "  /usr/share/doc/${PF}/${PN}.html"
-   echo
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-25 Thread Agostino Sarubbo
commit: 25fbf949dccf65acab77a4382810c1041e524d6f
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Dec 25 10:22:53 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Dec 25 10:22:53 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25fbf949

dev-util/oprofile: ppc stable wrt bug #577752

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 096efca..5790525 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-25 Thread Agostino Sarubbo
commit: c229fbe1d1a6dfe2457a65370f1f68c608c877a2
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Dec 25 10:20:57 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Dec 25 10:20:57 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c229fbe1

dev-util/oprofile: ppc stable wrt bug #577750

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 1005cb0..24312e1 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-25 Thread Agostino Sarubbo
commit: 12e92d3394c0ffd86d5fc9b343428dab9e411943
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Dec 25 10:09:09 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Dec 25 10:09:09 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e92d33

dev-util/oprofile: sparc stable wrt bug #577752

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index b8d68be..096efca 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-25 Thread Agostino Sarubbo
commit: 6adc785ea1baeaa6a06fa62ebf3d66b0144fc1ce
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Dec 25 10:09:03 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Dec 25 10:09:03 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6adc785e

dev-util/oprofile: sparc stable wrt bug #577750

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index e23197c..1005cb0 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 sparc x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-24 Thread Agostino Sarubbo
commit: 0b2ae554a05357e9293dc0fdc5538493b59fd736
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat Dec 24 10:16:52 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat Dec 24 10:16:52 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2ae554

dev-util/oprofile: x86 stable wrt bug #577750

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 2abc919..e23197c 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-12-24 Thread Agostino Sarubbo
commit: 30cea4f938b03368fc4b2a27d050dd207375c95e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat Dec 24 10:17:46 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat Dec 24 10:17:46 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30cea4f9

dev-util/oprofile: x86 stable wrt bug #577752

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 57474e7..b8d68be 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-11-22 Thread Andrew Savchenko
commit: 6ab65f73b3551029fe5ab7210d3378c757bfa143
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Tue Nov 22 17:10:03 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Tue Nov 22 17:10:03 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ab65f73

dev-util/oprofile: version bump

- add latest snapshot;
- upgrade to EAPI 6;
- install event files only for target architecture (bug 580016).

Package-Manager: portage-2.3.2
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest |  1 +
 .../oprofile/oprofile-1.2.0_pre20161027.ebuild | 93 ++
 2 files changed, 94 insertions(+)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index e5c9b78..b2368e2 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,2 +1,3 @@
 DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
+DIST oprofile-1.2.0_pre20161027.patch.xz 19496 SHA256 
37f7a7cf2cd78a5131bcdac4f9d6d9847cf485a841590a1023e923a26dee9eec SHA512 
e11f1adfee6cf78daf94d2f7ce6d05daaaec8937cc4074c6dddc06abab34aa3ec4dce350b632f3e240bf31339562f0c723b2c9816d05588e9ecfea49584f821f
 WHIRLPOOL 
bf6663a2771e1729452cf2897083edfbcd9e4934061e82553586eb0bf2602c906b033a449a615679839bf12578e5f5ef43bb73b923370b74158825693113e949

diff --git a/dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild 
b/dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild
new file mode 100644
index ..7ddfcc0
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.2.0_pre20161027.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit autotools java-pkg-opt-2 linux-info user
+
+MY_P=${PN}-1.1.0
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+   https://dev.gentoo.org/~bircoph/patches/${P}.patch.xz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs
+   >=sys-libs/glibc-2.3.2-r1
+   java? ( >=virtual/jdk-1.5:= )
+   ppc64? ( dev-libs/libpfm )"
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.31"
+
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+PATCHES=( "${WORKDIR}/${P}.patch" )
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! kernel_is -ge 2 6 31; then
+   echo
+   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
+   echo
+   fi
+
+   # Required for JIT support, see README_PACKAGERS
+   enewgroup ${PN}
+   enewuser ${PN} -1 -1 -1 ${PN}
+
+   use java && java-pkg_init
+}
+
+src_prepare() {
+   default
+   # bug #60
+   epatch "${FILESDIR}/${PN}-1.1.0-gcc6-template-depth.patch"
+   eautoreconf
+}
+
+src_configure() {
+   econf \
+   --disable-werror \
+   $(use_enable pch) \
+   $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+   dodoc ChangeLog* README TODO
+   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
+   doenvd "${T}/10${PN}"
+
+   # filter out event files for alien arches, bug 580016
+   cd "${D}/usr/share/${PN}" || die
+   local arch="${ARCH}" f
+   case "${arch}" in
+   x86)
+   arch=i386
+   ;;
+   amd64)
+   arch=x86-64
+   ;;
+   esac
+   for f in $(find -O3 -mindepth 1 -maxdepth 1 -type d ! -name "${arch}" 
); do
+   rm -r "${f}" || die
+   done
+}
+
+pkg_postinst() {
+   echo
+   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
+   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
+   elog "Please read manpages and this html doc:"
+   elog "  /usr/share/doc/${PF}/${PN}.html"
+   echo
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/files/, dev-util/oprofile/

2016-11-21 Thread Andrew Savchenko
commit: 4ea581785bda37bc01a20fbf5095c087e3bcda26
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Mon Nov 21 22:36:50 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Mon Nov 21 22:36:50 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ea58178

dev-util/oprofile: fix bug 60

Remove -ftemplate-depth-50 limitation from configure: this is not
sufficient depth with gcc-6.2, see bug 60 for details.

Package-Manager: portage-2.3.2
Signed-off-by: Andrew Savchenko  gentoo.org>

 .../oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch| 10 ++
 dev-util/oprofile/oprofile-1.1.0-r1.ebuild |  5 -
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch 
b/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch
new file mode 100644
index ..01fc869
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch
@@ -0,0 +1,10 @@
+--- oprofile-1.1.0/configure.ac.orig   2015-07-21 17:53:27.0 +0300
 oprofile-1.1.0/configure.ac2016-11-22 01:15:31.329067697 +0300
+@@ -320,7 +320,6 @@
+ AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-Wall])
+ AX_CFLAGS_OPTION(OP_CFLAGS,[-fno-common])
+ AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-fno-common])
+-AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-ftemplate-depth-50])
+ AX_CFLAGS_OPTION(OP_CFLAGS,[-Wdeclaration-after-statement])
+ 
+ dnl enable option to use GCC test coverage

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 6e83c7c..57474e7 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI="5"
-inherit eutils java-pkg-opt-2 linux-info multilib user
+inherit autotools eutils java-pkg-opt-2 linux-info multilib user
 
 MY_P=${PN}-${PV/_/-}
 DESCRIPTION="A transparent low-overhead system-wide profiler"
@@ -46,6 +46,9 @@ pkg_setup() {
 src_prepare() {
# fix bug #594178
epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
+   # bug #60
+   epatch "${FILESDIR}/${PN}-1.1.0-gcc6-template-depth.patch"
+   eautoreconf
 }
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/files/, dev-util/oprofile/

2016-09-29 Thread Andrew Savchenko
commit: 52be505267c2a9485045472a47990a8eaed6b1fd
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Thu Sep 29 16:19:59 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Thu Sep 29 16:21:31 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52be5052

dev-util/oprofile: fix bug 594178

Add gcc-6 love. Patch from upstream commits by Peter Levine
plevine457/gmail.com.

Package-Manager: portage-2.3.1
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch | 30 +++
 dev-util/oprofile/oprofile-0.9.9-r1.ebuild|  3 ++-
 dev-util/oprofile/oprofile-0.9.9-r2.ebuild|  1 +
 dev-util/oprofile/oprofile-1.1.0-r1.ebuild|  7 +-
 4 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch 
b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
new file mode 100644
index ..ab3ca7c
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
@@ -0,0 +1,30 @@
+--- a/libop/op_alloc_counter.c
 b/libop/op_alloc_counter.c
+@@ -171,7 +171,7 @@
+   /* no counters then probably perfmon managing perfmon hw */
+   if (nr_counters <= 0) {
+   nr_counters = op_get_nr_counters(cpu_type);
+-  unavailable_counters = (~0) << nr_counters;
++  unavailable_counters = (~0U) << nr_counters;
+   }
+ 
+   /* Check to see if we have enough physical counters to map events*/
+--- a/libutil++/op_bfd.cpp
 b/libutil++/op_bfd.cpp
+@@ -535,15 +535,13 @@
+ {
+   op_bfd_symbol const & sym = syms[sym_idx];
+ 
+-  bool const verbose = cverb << (vbfd & vlevel1);
+-
+   if (anon_obj)
+   start = sym.vma();
+   else
+   start = sym.filepos();
+   end = start + sym.size();
+ 
+-  if (!verbose)
++  if (!(cverb << (vbfd & vlevel1)))
+   return;
+ 
+   io_state state(cverb << (vbfd & vlevel1));

diff --git a/dev-util/oprofile/oprofile-0.9.9-r1.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
index ee1c018..65ccf5a 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -50,6 +50,7 @@ src_prepare() {
epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
+   epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
eautoreconf
 }
 

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 95dc5a5..2abc919 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -51,6 +51,7 @@ src_prepare() {
epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
+   epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
eautoreconf
 }
 

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 914d365..6e83c7c 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI="5"
-inherit java-pkg-opt-2 linux-info multilib user
+inherit eutils java-pkg-opt-2 linux-info multilib user
 
 MY_P=${PN}-${PV/_/-}
 DESCRIPTION="A transparent low-overhead system-wide profiler"
@@ -43,6 +43,11 @@ pkg_setup() {
use java && java-pkg_init
 }
 
+src_prepare() {
+   # fix bug #594178
+   epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
+}
+
 src_configure() {
econf \
--disable-werror \



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-06-02 Thread Tobias Klausmann
commit: bae7ae6c9daf8b14386cc14c3c40d8e5d9331844
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Thu Jun  2 19:09:45 2016 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Thu Jun  2 19:10:15 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae7ae6c

dev-util/oprofile-1.1.0-r1: add alpha keyword

Gentoo-Bug: 577752

Package-Manager: portage-2.3.0_rc1

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index dd22657..914d365 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-06-02 Thread Tobias Klausmann
commit: e7d79c84ba40252e463c4712b023acd87b84b793
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Thu Jun  2 18:58:06 2016 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Thu Jun  2 18:58:16 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7d79c84

dev-util/oprofile-0.9.9-r2: add alpha keyword

Gentoo-Bug: 577750

Package-Manager: portage-2.3.0_rc1

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 1869b7a..95dc5a5 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-05-25 Thread Jeroen Roovers
commit: 4b560c180107cb7b1c5e228c23fa32f15e76ac52
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Wed May 25 05:58:09 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Wed May 25 05:58:09 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b560c18

dev-util/oprofile: Stable for PPC64 (bug #577750).

Package-Manager: portage-2.3.0_rc1
RepoMan-Options: --ignore-arches

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index afc482f..1869b7a 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-05-25 Thread Jeroen Roovers
commit: aa6c1aa52789e927d1d3296e15e7bb3741b07336
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Wed May 25 05:59:06 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Wed May 25 05:59:06 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa6c1aa5

dev-util/oprofile: Stable for PPC64 (bug #577752).

Package-Manager: portage-2.3.0_rc1
RepoMan-Options: --ignore-arches

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 4fdb744..dd22657 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-05-24 Thread Jeroen Roovers
commit: 6bab1f2e5ee533784ff0ea33f7a0ca0189bd5439
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Wed May 25 05:46:52 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Wed May 25 05:46:52 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bab1f2e

dev-util/oprofile: Have PPC64 depend on dev-libs/libpfm (bug #579092).

Package-Manager: portage-2.3.0_rc1

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 1 +
 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 45136a4..afc482f 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -18,6 +18,7 @@ IUSE="java pch qt4"
 DEPEND=">=dev-libs/popt-1.7-r1
sys-libs/binutils-libs
>=sys-libs/glibc-2.3.2-r1
+   ppc64? ( dev-libs/libpfm )
qt4? ( dev-qt/qtgui:4[qt3support] )
java? ( >=virtual/jdk-1.5:= )"
 RDEPEND="${DEPEND}"

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 8a90f08..4fdb744 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -18,7 +18,8 @@ IUSE="java pch"
 RDEPEND=">=dev-libs/popt-1.7-r1
sys-libs/binutils-libs
>=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )"
+   java? ( >=virtual/jdk-1.5:= )
+   ppc64? ( dev-libs/libpfm )"
 DEPEND="${RDEPEND}
>=sys-kernel/linux-headers-2.6.31"
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-05-24 Thread Jeroen Roovers
commit: 54186c45def4723ccdbf2dfafd91cdf81f7166a7
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Wed May 25 05:30:17 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Wed May 25 05:30:17 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54186c45

dev-util/oprofile: Stable for HPPA (bug #577750).

Package-Manager: portage-2.3.0_rc1
RepoMan-Options: --ignore-arches

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 6a2519f..45136a4 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-04-19 Thread Markus Meier
commit: d209333f1d3a508241c3629136a4472cabcfdad2
Author: Markus Meier  gentoo  org>
AuthorDate: Tue Apr 19 19:33:28 2016 +
Commit: Markus Meier  gentoo  org>
CommitDate: Tue Apr 19 19:33:28 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d209333f

dev-util/oprofile: arm stable, bug #577752

Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="arm"

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index cc4d05f..8a90f08 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-04-05 Thread Jeroen Roovers
commit: f18368ae915e58eb677e66d08eb874ce9f545ab4
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Tue Apr  5 11:55:08 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Tue Apr  5 11:55:08 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f18368ae

dev-util/oprofile: Stable for HPPA (bug #577752).

Package-Manager: portage-2.2.28
RepoMan-Options: --ignore-arches

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index 2f76ec2..cc4d05f 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-04-01 Thread Markus Meier
commit: 6fbde724d2957ff9dfdac0b3c44f4e0e6b6153ea
Author: Markus Meier  gentoo  org>
AuthorDate: Fri Apr  1 19:10:32 2016 +
Commit: Markus Meier  gentoo  org>
CommitDate: Fri Apr  1 19:10:48 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fbde724

dev-util/oprofile: arm stable, bug #577750

Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="arm"

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index 530ae1f..6a2519f 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-03-22 Thread Agostino Sarubbo
commit: e34200ff29ae8b192e103a9625779be0e06f9167
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Mar 22 14:31:57 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Mar 22 14:31:57 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34200ff

dev-util/oprofile: amd64 stable wrt bug #577750

Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
index bab174a..530ae1f 100644
--- a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch qt4"
 
 DEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2016-03-20 Thread Andrew Savchenko
commit: a5c391c8513b187571c40da5dd84cb1fb2f17c60
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Mar 20 17:18:08 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Mar 20 17:18:08 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5c391c8

dev-util/oprofile: remove old unstable version

Package-Manager: portage-2.2.28
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest |  1 -
 .../files/oprofile-1.0.0-opjitconv-open.patch  | 11 
 dev-util/oprofile/oprofile-1.0.0-r2.ebuild | 72 --
 3 files changed, 84 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 0dd98d4..e5c9b78 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,3 +1,2 @@
 DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
-DIST oprofile-1.0.0.tar.gz 1397396 SHA256 
847110b4ecdcf8c8353cd38f94c1b704aad4bfcd9453e38b88d112cfb7e3c45a SHA512 
35b0e9f23c1d8df0aebda3f9b550692a896424de901d529a0ad41da41000328f33d184dcbb8e6f8367008723c8b2177b621757a2282b4c881ac46a57e1b51010
 WHIRLPOOL 
eaf7feefb6561851d2f8573ec60f2086245aa9fc034c8f4ab62679895ae80ca45e8dcb4bfdcb96ad477c5b446b7f0b11e339d9dc270e8b4b0366bc3a9e980143
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650

diff --git a/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch 
b/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch
deleted file mode 100644
index 2943a07..000
--- a/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/opjitconv/opjitconv.c
-+++ b/opjitconv/opjitconv.c
-@@ -216,7 +216,7 @@
-   int file_locked = 0;
-   unsigned int usecs_waited = 0;
-   int rc = OP_JIT_CONV_OK;
--  int fd = open(dumpfile, S_IRUSR);
-+  int fd = open(dumpfile, O_RDONLY);
-   if (fd < 0) {
-   perror("opjitconv failed to open JIT dumpfile");
-   return OP_JIT_CONV_FAIL;

diff --git a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild 
b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
deleted file mode 100644
index 2fda6ad..000
--- a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-inherit eutils java-pkg-opt-2 linux-info multilib user
-
-MY_P=${PN}-${PV/_/-}
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-S="${WORKDIR}/${MY_P}"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   echo
-   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
-   echo
-   fi
-
-   # Required for JIT support, see README_PACKAGERS
-   enewgroup ${PN}
-   enewuser ${PN} -1 -1 -1 ${PN}
-
-   use java && java-pkg_init
-}
-
-src_prepare() {
-   epatch "${FILESDIR}/${P}-athlon.patch"
-   epatch "${FILESDIR}/${P}-opjitconv-open.patch"
-}
-
-src_configure() {
-   econf \
-   --disable-werror \
-   $(use_enable pch) \
-   $(use_with java java ${JAVA_HOME})
-}
-
-src_install() {
-   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
-
-   dodoc ChangeLog* README TODO
-   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
-   doenvd "${T}/10${PN}"
-}
-
-pkg_postinst() {
-   echo
-   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
-   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
-   elog "Please read manpages and this html doc:"
-   elog "  /usr/share/doc/${PF}/${PN}.html"
-   echo
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2016-03-20 Thread Andrew Savchenko
commit: 8082ba7028491049b5b6deccede5e80b8c7fdfc1
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sun Mar 20 17:14:34 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sun Mar 20 17:14:34 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8082ba70

Revert "dev-util/oprofile: remove old version"

This reverts commit 331e1e47a803fcc79d9e66ae54db9c364a8f1af9, which
accidentally removed patch used by 0.9.9-r2
(oprofile-1.0.0-athlon.patch).

 dev-util/oprofile/Manifest |  1 +
 .../oprofile/files/oprofile-1.0.0-athlon.patch | 20 ++
 .../files/oprofile-1.0.0-opjitconv-open.patch  | 11 
 dev-util/oprofile/oprofile-1.0.0-r2.ebuild | 72 ++
 4 files changed, 104 insertions(+)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index e5c9b78..0dd98d4 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,2 +1,3 @@
 DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
+DIST oprofile-1.0.0.tar.gz 1397396 SHA256 
847110b4ecdcf8c8353cd38f94c1b704aad4bfcd9453e38b88d112cfb7e3c45a SHA512 
35b0e9f23c1d8df0aebda3f9b550692a896424de901d529a0ad41da41000328f33d184dcbb8e6f8367008723c8b2177b621757a2282b4c881ac46a57e1b51010
 WHIRLPOOL 
eaf7feefb6561851d2f8573ec60f2086245aa9fc034c8f4ab62679895ae80ca45e8dcb4bfdcb96ad477c5b446b7f0b11e339d9dc270e8b4b0366bc3a9e980143
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650

diff --git a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch 
b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
new file mode 100644
index 000..5916271
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
@@ -0,0 +1,20 @@
+Fix AMD Athlon CPU family recognition.
+See upstream bug 275 for details:
+https://sourceforge.net/p/oprofile/bugs/275/
+--- oprofile-1.0.0/libop/op_cpu_type.c.orig2014-09-12 18:39:47.0 
+0400
 oprofile-1.0.0/libop/op_cpu_type.c 2014-11-30 18:29:00.328342552 +0300
+@@ -538,10 +538,13 @@
+   family = cpu_family(eax);
+ 
+   /* These family does not exist in the past.*/
+-  if (family < 0x0f || family == 0x13)
++  if ((family < 0x0f && family != 0x06) || family == 0x13)
+   return ret;
+ 
+   switch (family) {
++  case 0x6:
++  ret = op_get_cpu_number("i386/athlon");
++  break;
+   case 0x0f:
+   ret = op_get_cpu_number("x86-64/hammer");
+   break;

diff --git a/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch 
b/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch
new file mode 100644
index 000..2943a07
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch
@@ -0,0 +1,11 @@
+--- a/opjitconv/opjitconv.c
 b/opjitconv/opjitconv.c
+@@ -216,7 +216,7 @@
+   int file_locked = 0;
+   unsigned int usecs_waited = 0;
+   int rc = OP_JIT_CONV_OK;
+-  int fd = open(dumpfile, S_IRUSR);
++  int fd = open(dumpfile, O_RDONLY);
+   if (fd < 0) {
+   perror("opjitconv failed to open JIT dumpfile");
+   return OP_JIT_CONV_FAIL;

diff --git a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild 
b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
new file mode 100644
index 000..2fda6ad
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit eutils java-pkg-opt-2 linux-info multilib user
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs
+   >=sys-libs/glibc-2.3.2-r1
+   java? ( >=virtual/jdk-1.5:= )"
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.31"
+
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! kernel_is -ge 2 6 31; then
+   echo
+   ewarn "Support for 

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2016-03-19 Thread Agostino Sarubbo
commit: ef8f5414ee7f67c81b42e031e5698969452478bd
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat Mar 19 16:31:30 2016 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat Mar 19 16:31:30 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef8f5414

dev-util/oprofile: amd64 stable wrt bug #577752

Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
index f4aae03..2f76ec2 100644
--- a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="java pch"
 
 RDEPEND=">=dev-libs/popt-1.7-r1



[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/, dev-util/oprofile/files/

2016-03-18 Thread Andrew Savchenko
commit: 331e1e47a803fcc79d9e66ae54db9c364a8f1af9
Author: Andrew Savchenko  gentoo  org>
AuthorDate: Sat Mar 19 04:59:03 2016 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Sat Mar 19 05:00:09 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=331e1e47

dev-util/oprofile: remove old version

Package-Manager: portage-2.2.28
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/Manifest |  1 -
 .../oprofile/files/oprofile-1.0.0-athlon.patch | 20 --
 .../files/oprofile-1.0.0-opjitconv-open.patch  | 11 
 dev-util/oprofile/oprofile-1.0.0-r2.ebuild | 72 --
 4 files changed, 104 deletions(-)

diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
index 0dd98d4..e5c9b78 100644
--- a/dev-util/oprofile/Manifest
+++ b/dev-util/oprofile/Manifest
@@ -1,3 +1,2 @@
 DIST oprofile-0.9.9.tar.gz 1502834 SHA256 
1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 
98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f
 WHIRLPOOL 
534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
-DIST oprofile-1.0.0.tar.gz 1397396 SHA256 
847110b4ecdcf8c8353cd38f94c1b704aad4bfcd9453e38b88d112cfb7e3c45a SHA512 
35b0e9f23c1d8df0aebda3f9b550692a896424de901d529a0ad41da41000328f33d184dcbb8e6f8367008723c8b2177b621757a2282b4c881ac46a57e1b51010
 WHIRLPOOL 
eaf7feefb6561851d2f8573ec60f2086245aa9fc034c8f4ab62679895ae80ca45e8dcb4bfdcb96ad477c5b446b7f0b11e339d9dc270e8b4b0366bc3a9e980143
 DIST oprofile-1.1.0.tar.gz 1468502 SHA256 
cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 
b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758
 WHIRLPOOL 
b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650

diff --git a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch 
b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
deleted file mode 100644
index 5916271..000
--- a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Fix AMD Athlon CPU family recognition.
-See upstream bug 275 for details:
-https://sourceforge.net/p/oprofile/bugs/275/
 oprofile-1.0.0/libop/op_cpu_type.c.orig2014-09-12 18:39:47.0 
+0400
-+++ oprofile-1.0.0/libop/op_cpu_type.c 2014-11-30 18:29:00.328342552 +0300
-@@ -538,10 +538,13 @@
-   family = cpu_family(eax);
- 
-   /* These family does not exist in the past.*/
--  if (family < 0x0f || family == 0x13)
-+  if ((family < 0x0f && family != 0x06) || family == 0x13)
-   return ret;
- 
-   switch (family) {
-+  case 0x6:
-+  ret = op_get_cpu_number("i386/athlon");
-+  break;
-   case 0x0f:
-   ret = op_get_cpu_number("x86-64/hammer");
-   break;

diff --git a/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch 
b/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch
deleted file mode 100644
index 2943a07..000
--- a/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/opjitconv/opjitconv.c
-+++ b/opjitconv/opjitconv.c
-@@ -216,7 +216,7 @@
-   int file_locked = 0;
-   unsigned int usecs_waited = 0;
-   int rc = OP_JIT_CONV_OK;
--  int fd = open(dumpfile, S_IRUSR);
-+  int fd = open(dumpfile, O_RDONLY);
-   if (fd < 0) {
-   perror("opjitconv failed to open JIT dumpfile");
-   return OP_JIT_CONV_FAIL;

diff --git a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild 
b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
deleted file mode 100644
index 2fda6ad..000
--- a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-inherit eutils java-pkg-opt-2 linux-info multilib user
-
-MY_P=${PN}-${PV/_/-}
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   sys-libs/binutils-libs
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-S="${WORKDIR}/${MY_P}"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   echo
-   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
-  

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2015-09-29 Thread Andrew Savchenko
commit: d04ba9e826781f21deeaee34ea82377756dbe8f2
Author: Andrew Savchenko  gmail  com>
AuthorDate: Tue Sep 29 19:47:45 2015 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Tue Sep 29 19:48:45 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d04ba9e8

dev-util/oprofile: remove old

Package-Manager: portage-2.2.22
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/oprofile-1.0.0-r1.ebuild | 72 --
 dev-util/oprofile/oprofile-1.1.0.ebuild| 67 ---
 2 files changed, 139 deletions(-)

diff --git a/dev-util/oprofile/oprofile-1.0.0-r1.ebuild 
b/dev-util/oprofile/oprofile-1.0.0-r1.ebuild
deleted file mode 100644
index 4c75501..000
--- a/dev-util/oprofile/oprofile-1.0.0-r1.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-inherit eutils java-pkg-opt-2 linux-info multilib user
-
-MY_P=${PN}-${PV/_/-}
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   >=sys-devel/binutils-2.14.90.0.6-r3:*
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-S="${WORKDIR}/${MY_P}"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   echo
-   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
-   echo
-   fi
-
-   # Required for JIT support, see README_PACKAGERS
-   enewgroup ${PN}
-   enewuser ${PN} -1 -1 -1 ${PN}
-
-   use java && java-pkg_init
-}
-
-src_prepare() {
-   epatch "${FILESDIR}/${P}-athlon.patch"
-   epatch "${FILESDIR}/${P}-opjitconv-open.patch"
-}
-
-src_configure() {
-   econf \
-   --disable-werror \
-   $(use_enable pch) \
-   $(use_with java java ${JAVA_HOME})
-}
-
-src_install() {
-   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
-
-   dodoc ChangeLog* README TODO
-   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
-   doenvd "${T}/10${PN}"
-}
-
-pkg_postinst() {
-   echo
-   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
-   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
-   elog "Please read manpages and this html doc:"
-   elog "  /usr/share/doc/${PF}/${PN}.html"
-   echo
-}

diff --git a/dev-util/oprofile/oprofile-1.1.0.ebuild 
b/dev-util/oprofile/oprofile-1.1.0.ebuild
deleted file mode 100644
index fedcbb1..000
--- a/dev-util/oprofile/oprofile-1.1.0.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-inherit java-pkg-opt-2 linux-info multilib user
-
-MY_P=${PN}-${PV/_/-}
-DESCRIPTION="A transparent low-overhead system-wide profiler"
-HOMEPAGE="http://${PN}.sourceforge.net;
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="java pch"
-
-RDEPEND=">=dev-libs/popt-1.7-r1
-   >=sys-devel/binutils-2.14.90.0.6-r3:*
-   >=sys-libs/glibc-2.3.2-r1
-   java? ( >=virtual/jdk-1.5:= )"
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-2.6.31"
-
-S="${WORKDIR}/${MY_P}"
-
-CONFIG_CHECK="PERF_EVENTS"
-ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
-
-pkg_setup() {
-   linux-info_pkg_setup
-   if ! kernel_is -ge 2 6 31; then
-   echo
-   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
-   echo
-   fi
-
-   # Required for JIT support, see README_PACKAGERS
-   enewgroup ${PN}
-   enewuser ${PN} -1 -1 -1 ${PN}
-
-   use java && java-pkg_init
-}
-
-src_configure() {
-   econf \
-   --disable-werror \
-   $(use_enable pch) \
-   $(use_with java java ${JAVA_HOME})
-}
-
-src_install() {
-   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
-
-   dodoc ChangeLog* README TODO
-   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
-   doenvd "${T}/10${PN}"
-}
-
-pkg_postinst() {
-   echo
-   elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf 
instead."
-   elog "CONFIG_OPROFILE is no longer used, you may remove it from your 
kernels."
-   elog "Please read manpages and this html doc:"
-   elog "  

[gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/

2015-09-29 Thread Andrew Savchenko
commit: 29d5953cd9ef8e3a7ff83005cfa6656f8e8455e0
Author: Andrew Savchenko  gmail  com>
AuthorDate: Tue Sep 29 19:35:38 2015 +
Commit: Andrew Savchenko  gentoo  org>
CommitDate: Tue Sep 29 19:48:43 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29d5953c

dev-util/oprofile: update dependencies

migrate from sys-devel/binutils to sys-libs/binutils-libs

Package-Manager: portage-2.2.22
Signed-off-by: Andrew Savchenko  gentoo.org>

 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 81 ++
 dev-util/oprofile/oprofile-1.0.0-r2.ebuild | 72 ++
 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 67 
 3 files changed, 220 insertions(+)

diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild 
b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
new file mode 100644
index 000..bab174a
--- /dev/null
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit autotools eutils linux-info multilib user java-pkg-opt-2
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch qt4"
+
+DEPEND=">=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs
+   >=sys-libs/glibc-2.3.2-r1
+   qt4? ( dev-qt/qtgui:4[qt3support] )
+   java? ( >=virtual/jdk-1.5:= )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
+   echo
+   elog "In order for ${PN} to work, you need to configure your 
kernel"
+   elog "with CONFIG_OPROFILE set to 'm' or 'y'."
+   echo
+   fi
+
+   if ! kernel_is -ge 2 6 ; then
+   echo
+   elog "Support for kernels before 2.6 has been dropped in 
${PN}-0.9.8."
+   echo
+   fi
+
+   # Required for JIT support, see README_PACKAGERS
+   enewgroup ${PN}
+   enewuser ${PN} -1 -1 -1 ${PN}
+
+   use java && java-pkg_init
+}
+
+src_prepare() {
+   epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
+   epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
+   epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
+   eautoreconf
+}
+
+src_configure() {
+   econf \
+   --disable-werror \
+   $(use_with qt4 x) \
+   $(use_enable qt4 gui qt4) \
+   $(use_enable pch) \
+   $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+   emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+   dodoc ChangeLog* README TODO
+
+   dodir /etc/env.d
+   echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > 
"${D}"/etc/env.d/10${PN} || die "env.d failed"
+}
+
+pkg_postinst() {
+   echo
+   elog "Now load the ${PN} module by running:"
+   elog "  # opcontrol --init"
+   elog "Then read manpages and this html doc:"
+   elog "  /usr/share/doc/${PF}/${PN}.html"
+   echo
+}

diff --git a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild 
b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
new file mode 100644
index 000..2fda6ad
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit eutils java-pkg-opt-2 linux-info multilib user
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net;
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+   sys-libs/binutils-libs
+   >=sys-libs/glibc-2.3.2-r1
+   java? ( >=virtual/jdk-1.5:= )"
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-2.6.31"
+
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+   linux-info_pkg_setup
+   if ! kernel_is -ge 2 6 31; then
+   echo
+   ewarn "Support for kernels before 2.6.31 has been dropped in 
${PN}-1.0.0."
+   echo
+   fi
+
+   # Required for JIT support, see README_PACKAGERS
+   enewgroup ${PN}
+   enewuser ${PN} -1 -1 -1 ${PN}
+
+   use java && java-pkg_init
+}
+
+src_prepare() {
+   epatch "${FILESDIR}/${P}-athlon.patch"
+   epatch "${FILESDIR}/${P}-opjitconv-open.patch"
+}
+
+src_configure() {
+   econf \
+   --disable-werror \
+   $(use_enable pch) \
+   $(use_with