commit:     26ad00568a47f83595f7678e62b6ed4c8f74ffa1
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Jul 28 00:21:11 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Jul 28 00:21:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=26ad0056

sys-cluster/extrae: add dyninst useflag

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r8.ebuild | 41 ++++++++++++++-----------------
 sys-cluster/extrae/metadata.xml           |  6 +----
 2 files changed, 20 insertions(+), 27 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r8.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r8.ebuild
index 49144b4b8..5f1a1ef45 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r8.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r8.ebuild
@@ -14,17 +14,15 @@ 
SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz ->
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="boost clustering doc dwarf elf heterogeneous inotify 
+instrument-dynamic-memory
-+instrument-io +instrument-syscall memkind merge-in-trace nanos online opencl 
openmp
-+parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
sionlib smpss
-spectral +xml"
+IUSE="clustering doc dyninst heterogeneous inotify +instrument-dynamic-memory 
+instrument-io
++instrument-syscall memkind merge-in-trace nanos online opencl openmp 
+parallel-merge
+pebs-sampling +posix-clock pthread sampling +single-mpi-lib sionlib smpss 
spectral +xml"
 
 #aspectj and aspectj-weaver need to both be enabled at the same time
 #current dev-java/aspectj package only provides aspectj.jar
 #aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
 #aspectj-weaver needs bar/aspectjweaver.jar
-#TODO: remove some useflags (boost elf dwarf)
-#TODO: pmapi online dyninst cuda cupti openshmem gm mx aspectj
+#TODO: pmapi cuda cupti openshmem gm mx aspectj
 #TODO: support llvm libunwind, llvm rt, elftoolchain
 
 CDEPEND="
@@ -39,10 +37,13 @@ CDEPEND="
        || ( sys-libs/libunwind sys-libs/llvm-libunwind )
        || ( sys-devel/binutils:* sys-libs/binutils-libs )
 
-       boost? ( dev-libs/boost:= )
-       clustering? ( sys-cluster/clusteringsuite )
-       dwarf? ( dev-libs/libdwarf )
-       elf? ( virtual/libelf )
+       clustering? ( sys-cluster/clusteringsuite[treedbscan] )
+       dyninst? (
+               dev-libs/boost:=
+               dev-libs/libdwarf
+               sys-cluster/dyninst
+               virtual/libelf
+       )
        inotify? ( dev-libs/libevent )
        memkind? ( dev-libs/memkind )
        online? ( sys-cluster/synapse )
@@ -76,7 +77,6 @@ REQUIRED_USE="
        java? ( pthread )
 "
 #      cupti? ( cuda )
-#      dyninst? ( boost dwarf elf )
 #      aspectj? ( java )
 
 src_prepare() {
@@ -105,7 +105,6 @@ src_configure() {
                --with-pic
                --with-unwind="${EPREFIX}/usr"
 
-               --without-dyninst
                --without-cupti
                --without-openshmem
                --without-gm
@@ -119,6 +118,7 @@ src_configure() {
                $(use_enable instrument-syscall)
                $(use_enable merge-in-trace)
                $(use_enable nanos)
+               $(use_enable online)
                $(use_enable openmp)
                $(use_enable sampling)
                $(use_enable parallel-merge)
@@ -138,24 +138,21 @@ src_configure() {
                myconf+=( "--without-java-aspectj-weaver" )
                myconf+=( "--without-java-aspectj" )
 #      fi
-       if use boost; then
-               myconf+=( "--with-boost=${EPREFIX}/usr" )
-       else
-               myconf+=( "--without-boost" )
-       fi
        if use clustering; then
                myconf+=( "--with-clustering=${EPREFIX}/usr" )
        else
                myconf+=( "--without-clustering" )
        fi
-       if use dwarf; then
+       if use dyninst; then
+               myconf+=( "--with-boost=${EPREFIX}/usr" )
+               myconf+=( "--with-dyninst=${EPREFIX}/usr" )
+               myconf+=( 
"--with-dyninst-headers=${EPREFIX}/usr/include/dyninst" )
                myconf+=( "--with-dwarf=${EPREFIX}/usr" )
-       else
-               myconf+=( "--without-dwarf" )
-       fi
-       if use elf; then
                myconf+=( "--with-elf=${EPREFIX}/usr" )
        else
+               myconf+=( "--without-boost" )
+               myconf+=( "--without-dyninst" )
+               myconf+=( "--without-dwarf" )
                myconf+=( "--without-elf" )
        fi
        if use java; then

diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index 3db14b4bc..fc023d8fb 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -17,14 +17,11 @@ process). Extrae generates trace files that can be later 
visualized with sys-clu
        </upstream>
        <use>
                <!--<flag name="aspectj">Enable support for tracing Java 
through <pkg>dev-java/aspectj</pkg> (experimental)</flag>-->
-               <flag name="boost">Search for boost</flag>
                <flag name="clustering">Enable 
<pkg>sys-cluster/clusteringsuite</pkg> support</flag>
                <!--<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>-->
                <!--<flag name="cupti">CUPTI is used to instrument CUDA 
calls</flag>-->
                <flag name="doc">Generates the documentation of this 
instrumentation package</flag>
-               <flag name="dwarf">Build with 
<pkg>dev-libs/libdwarf</pkg></flag>
-               <!--<flag name="dyninst">Build with dyninst</flag>-->
-               <flag name="elf">Build with <pkg>virtual/libelf</pkg></flag>
+               <flag name="dyninst">Build with dyninst</flag>
                <flag name="heterogeneous">Enable support for heterogeneous 
tracing</flag>
                <flag name="inotify">Enable inotify support</flag>
                <flag name="instrument-dynamic-memory">Enables instrumentation 
for dynamic memory (malloc, free, realloc) calls</flag>
@@ -47,7 +44,6 @@ process). Extrae generates trace files that can be later 
visualized with sys-clu
                <flag name="single-mpi-lib">Produces a single instrumentation 
library for MPI that contains both Fortran and C wrappers. Applications that 
call the MPI library from both C and Fortran languages need this flag to be 
enabled.</flag>
                <flag name="sionlib">Enable support for 
<pkg>sys-cluster/sionlib</pkg></flag>
                <flag name="smpss">Enable support for tracing 
SMP-superscalar</flag>
-               <!--<flag name="synapse">This library is a front-end of the 
MRNet library</flag>-->
                <flag name="xml">Enable support for XML configuration</flag>
        </use>
 </pkgmetadata>

Reply via email to