Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
Date: Wed, 21 Apr 2021 07:32:42
Message-Id: 1618967831.aeadb10ff9c2c671b48c60f33b2f4c73d95aa5ba.andrewammerlaan@gentoo
1 commit: aeadb10ff9c2c671b48c60f33b2f4c73d95aa5ba
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Apr 21 00:17:10 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Wed Apr 21 01:17:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aeadb10f
7
8 sys-cluster/extrae: fix dependencies
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 | 5 +-
14 sys-cluster/extrae/extrae-3.8.3.ebuild | 175 ------------------------------
15 2 files changed, 4 insertions(+), 176 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 4affa0895..d0518e68f 100644
19 --- a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
20 +++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
21 @@ -15,6 +15,7 @@ SLOT="0"
22 KEYWORDS="~amd64"
23 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"
24 #aspectj and aspectj-weaver needs to be enabled both at the same time but the aspectj package in gentoo doesn't have weaver
25 +#TODO: find out who is pulling in libpfm
26 #TODO: find out which FFT library is used
27 #TODO: remove some useflags (boost fft elf dwarf)
28 #TODO: pmapi online dyninst cuda spectral cupti openshmem gm mx synapse memkind sionlib aspectj
29 @@ -22,7 +23,9 @@ IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory +
30
31 CDEPEND="
32 ${PYTHON_DEPS}
33 + app-arch/xz-utils
34 dev-libs/icu
35 + dev-libs/libpfm
36 sys-libs/libunwind
37 dev-libs/libxml2
38 dev-libs/papi
39 @@ -36,7 +39,7 @@ CDEPEND="
40 boost? ( dev-libs/boost:= )
41 dwarf? ( dev-libs/libdwarf )
42 elf? ( virtual/libelf )
43 - nanos? ( sys-cluster/nanos6 )
44 + inotify? ( dev-libs/libevent )
45 opencl? ( dev-util/opencl-headers )
46 "
47 DEPEND="
48
49 diff --git a/sys-cluster/extrae/extrae-3.8.3.ebuild b/sys-cluster/extrae/extrae-3.8.3.ebuild
50 deleted file mode 100644
51 index 59b3c2edb..000000000
52 --- a/sys-cluster/extrae/extrae-3.8.3.ebuild
53 +++ /dev/null
54 @@ -1,175 +0,0 @@
55 -# Copyright 2019-2021 Gentoo Authors
56 -# Distributed under the terms of the GNU General Public License v2
57 -
58 -EAPI=7
59 -
60 -PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
61 -inherit autotools java-pkg-opt-2 python-single-r1
62 -
63 -DESCRIPTION="Instrumentation framework to generate execution traces of parallel runtimes"
64 -HOMEPAGE="https://github.com/bsc-performance-tools/extrae"
65 -SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz -> ${P}.tar.gz"
66 -
67 -LICENSE="LGPL-2.1"
68 -SLOT="0"
69 -KEYWORDS="~amd64"
70 -#TODO: correctly install python stuff
71 -IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory +instrument-io +instrument-syscall merge-in-trace opencl openmp +parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib smpss +xml"
72 -#aspectj and aspectj-weaver needs to be enabled both at the same time but the aspectj package in gentoo doesn't have weaver
73 -#TODO: find out which FFT library is used
74 -#TODO: remove some useflags (boost fft elf dwarf)
75 -#TODO: nanos pmapi online dyninst cuda spectral cupti openshmem gm mx synapse memkind sionlib aspectj
76 -#TODO: support llvm libunwind, llvm rt, elftoolchain
77 -
78 -CDEPEND="
79 - ${PYTHON_DEPS}
80 - dev-libs/icu
81 - sys-libs/libunwind
82 - dev-libs/libxml2
83 - dev-libs/papi
84 - sys-apps/hwloc
85 - sys-libs/glibc
86 - sys-libs/zlib
87 - virtual/mpi
88 - || ( sys-devel/binutils:* sys-libs/binutils-libs )
89 - boost? ( dev-libs/boost:= )
90 - dwarf? ( dev-libs/libdwarf )
91 - elf? ( virtual/libelf )
92 - opencl? ( dev-util/opencl-headers )
93 -"
94 -DEPEND="
95 - ${CDEPEND}
96 - java? ( virtual/jdk:1.8 )
97 -"
98 -RDEPEND="
99 - ${CDEPEND}
100 - java? ( virtual/jre:1.8 )
101 - virtual/opencl
102 -"
103 -BDEPEND="
104 - doc? ( dev-python/sphinx )
105 -"
106 -REQUIRED_USE="
107 - ${PYTHON_REQUIRED_USE}
108 -"
109 -# cupti? ( cuda )
110 -# dyninst? ( boost dwarf elf )
111 -# online? ( synapse )
112 -# aspectj? ( java )
113 -# spectral? ( fft )
114 -
115 -src_prepare() {
116 - default
117 - eautoreconf
118 -}
119 -
120 -src_configure() {
121 - local myconf=(
122 - --datadir="${T}"
123 - --datarootdir="${T}"
124 - --libdir="${EPREFIX}/usr/$(get_libdir)/extrae"
125 -
126 - --disable-mic
127 - --disable-nanos
128 - --disable-online
129 - --disable-peruse
130 - --disable-pmapi
131 - --disable-static
132 -
133 - --enable-shared
134 -
135 - --with-librt="${EPREFIX}/usr"
136 - --with-mpi="${EPREFIX}/usr"
137 - --with-papi="${EPREFIX}/usr"
138 - --with-pic
139 - --with-unwind="${EPREFIX}/usr"
140 -
141 - --without-dyninst
142 - --without-cupti
143 - --without-memkind
144 - --without-clustering
145 - --without-java-aspectj
146 - --without-java-aspectj-weaver
147 - --without-synapse
148 - --without-spectral
149 - --without-openshmem
150 - --without-gm
151 - --without-mx
152 -
153 - $(use_enable doc)
154 - $(use_enable heterogeneous)
155 - $(use_enable inotify)
156 - $(use_enable instrument-dynamic-memory)
157 - $(use_enable instrument-io)
158 - $(use_enable instrument-syscall)
159 - $(use_enable merge-in-trace)
160 - $(use_enable openmp)
161 - $(use_enable sampling)
162 - $(use_enable parallel-merge)
163 - $(use_enable pebs-sampling)
164 - $(use_enable posix-clock)
165 - $(use_enable pthread)
166 - $(use_enable single-mpi-lib)
167 - $(use_enable smpss)
168 - $(use_enable xml)
169 - )
170 -# $(use_enable nanos)
171 -# --without-sionlib
172 -#--with-pmpi-hook (Choose method to call PMPI (dlsym or pmpi))
173 -
174 - if use boost; then
175 - myconf+=( "--with-boost=${EPREFIX}/usr" )
176 - else
177 - myconf+=( "--without-boost" )
178 - fi
179 - if use dwarf; then
180 - myconf+=( "--with-dwarf=${EPREFIX}/usr" )
181 - else
182 - myconf+=( "--without-dwarf" )
183 - fi
184 - if use elf; then
185 - myconf+=( "--with-elf=${EPREFIX}/usr" )
186 - else
187 - myconf+=( "--without-elf" )
188 - fi
189 - if use fft; then
190 - myconf+=( "--with-fft=${EPREFIX}/usr" )
191 - else
192 - myconf+=( "--without-fft" )
193 - fi
194 - if use java; then
195 - myconf+=( "--with-java-jdk=$(java-config -O)" )
196 - else
197 - myconf+=( "--without-java-jdk" )
198 - fi
199 - if use opencl; then
200 - myconf+=( "--with-opencl=${EPREFIX}/usr" )
201 - else
202 - myconf+=( "--without-opencl" )
203 - fi
204 - econf "${myconf[@]}"
205 -}
206 -
207 -src_install() {
208 - default
209 -
210 - mkdir -p "${D}/$(python_get_sitedir)/" || die
211 - mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
212 - python_optimize "${D}/$(python_get_sitedir)/pyextrae"
213 -
214 - #super-duper workaround
215 - mkdir -p "${ED}/usr/share/doc/${PF}" || die
216 - mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
217 - mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
218 -
219 - if use doc ; then
220 - mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
221 - mv "${T}/man" "${ED}/usr/share/" || die
222 - docompress -x "/usr/share/doc/${PF}/html"
223 - fi
224 - docompress -x "/usr/share/doc/${PF}/examples"
225 - docompress -x "/usr/share/doc/${PF}/tests"
226 -
227 - find "${ED}" -name '*.a' -delete || die
228 - find "${ED}" -name '*.la' -delete || die
229 -}