Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/extrae/
Date: Sat, 24 Apr 2021 18:51:48
Message-Id: 1619290302.2c039b70f0366f338ad65a434f402e7d32972d77.Alessandro-Barbieri@gentoo
1 commit: 2c039b70f0366f338ad65a434f402e7d32972d77
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 24 18:45:57 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 24 18:51:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2c039b70
7
8 sys-cluster/extrae: preparation for aspectj support
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 sys-cluster/extrae/extrae-3.8.3-r1.ebuild | 16 +++++++++++++---
14 sys-cluster/extrae/metadata.xml | 1 +
15 2 files changed, 14 insertions(+), 3 deletions(-)
16
17 diff --git a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
18 index d0518e68f..f1781b099 100644
19 --- a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
20 +++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
21 @@ -14,7 +14,10 @@ LICENSE="LGPL-2.1"
22 SLOT="0"
23 KEYWORDS="~amd64"
24 IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory +instrument-io +instrument-syscall merge-in-trace nanos opencl openmp +parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib smpss +xml"
25 -#aspectj and aspectj-weaver needs to be enabled both at the same time but the aspectj package in gentoo doesn't have weaver
26 +#aspectj and aspectj-weaver need to both be enabled at the same time
27 +#current dev-java/aspectj package only provides aspectj.jar
28 +#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
29 +#aspectj-weaver needs bar/aspectjweaver.jar
30 #TODO: find out who is pulling in libpfm
31 #TODO: find out which FFT library is used
32 #TODO: remove some useflags (boost fft elf dwarf)
33 @@ -42,6 +45,7 @@ CDEPEND="
34 inotify? ( dev-libs/libevent )
35 opencl? ( dev-util/opencl-headers )
36 "
37 +# aspectj? ( >=dev-java/aspectj-1.9.6 )
38 DEPEND="
39 ${CDEPEND}
40 java? ( virtual/jdk:1.8 )
41 @@ -56,6 +60,7 @@ BDEPEND="
42 "
43 REQUIRED_USE="
44 ${PYTHON_REQUIRED_USE}
45 + java? ( pthread )
46 "
47 # cupti? ( cuda )
48 # dyninst? ( boost dwarf elf )
49 @@ -92,8 +97,6 @@ src_configure() {
50 --without-cupti
51 --without-memkind
52 --without-clustering
53 - --without-java-aspectj
54 - --without-java-aspectj-weaver
55 --without-synapse
56 --without-spectral
57 --without-openshmem
58 @@ -121,6 +124,13 @@ src_configure() {
59 # --without-sionlib
60 #--with-pmpi-hook (Choose method to call PMPI (dlsym or pmpi))
61
62 +# if use aspectj; then
63 +# myconf+=( "--with-java-aspectj=${EPREFIX}/usr/share/aspectj/lib" )
64 +# myconf+=( "--with-java-aspectj-weaver=${EPREFIX}/usr" )
65 +# else
66 + myconf+=( "--without-java-aspectj-weaver" )
67 + myconf+=( "--without-java-aspectj" )
68 +# fi
69 if use boost; then
70 myconf+=( "--with-boost=${EPREFIX}/usr" )
71 else
72
73 diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
74 index fb390763b..6022df6bb 100644
75 --- a/sys-cluster/extrae/metadata.xml
76 +++ b/sys-cluster/extrae/metadata.xml
77 @@ -16,6 +16,7 @@ process). Extrae generates trace files that can be later visualized with <pkg>sy
78 <remote-id type="github">bsc-performance-tools/extrae</remote-id>
79 </upstream>
80 <use>
81 + <!--<flag name="aspectj">Enable support for tracing Java through <pkg>dev-java/aspectj</pkg> (experimental)</flag>-->
82 <flag name="boost">Search for boost</flag>
83 <flag name="doc">Generates the documentation of this instrumentation package</flag>
84 <!--<flag name="cuda">Enable support for tracing CUDA calls on nVidia hardware and needs to point to the CUDA SDK installation path. This instrumentation is only valid in binaries that use the shared version of the CUDA library.</flag>-->