Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
Date: Fri, 03 Jun 2022 10:44:44
Message-Id: 1654185304.51ded80176b55c0506b5151e556e959874da9a37.flow@gentoo
1 commit: 51ded80176b55c0506b5151e556e959874da9a37
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu Jun 2 15:54:19 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 15:55:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51ded801
7
8 sys-cluster/extrae: drop 3.8.3-r10
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sys-cluster/extrae/Manifest | 1 -
13 sys-cluster/extrae/extrae-3.8.3-r10.ebuild | 238 -----------------------------
14 2 files changed, 239 deletions(-)
15
16 diff --git a/sys-cluster/extrae/Manifest b/sys-cluster/extrae/Manifest
17 index 1f6352936..2e81d6e17 100644
18 --- a/sys-cluster/extrae/Manifest
19 +++ b/sys-cluster/extrae/Manifest
20 @@ -1,2 +1 @@
21 -DIST extrae-3.8.3.tar.gz 1056317 BLAKE2B 9efe7011ba9474de66deb8c679f10eff37cc3d5699b42cb1b076ed43b539bbc15ecc613b3f17b03df9e93a219ebcafd3e1d56229db9c0d4e7a0a56d5c3edd591 SHA512 3fba66447790e0a1c71c0e5a61f67ad966cdd4e19742799ecc50124a916ef599fff747027ccc803584f0ab2d1d76c29ded7072a70dd0aed5a3be7ff6ecbb8709
22 DIST extrae-4.0.1.tar.gz 1082141 BLAKE2B a049f744aa1d2f6770e620939c5d7981098e86908843f0b9d38d06a4aa9103ed2d551a34301dbf57857316340031d536a814d82a9ab0aab5ab70b063171ff52c SHA512 58cbe06b1eb738dba3c9d38a96ca8a9bf442c492214e086876af25b8d7e01c379b46281f6815763e87e0e69214636f95486d48b1b6ce088b54d24b4d77ff0920
23
24 diff --git a/sys-cluster/extrae/extrae-3.8.3-r10.ebuild b/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
25 deleted file mode 100644
26 index 20f867fe8..000000000
27 --- a/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
28 +++ /dev/null
29 @@ -1,238 +0,0 @@
30 -# Copyright 2019-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PYTHON_COMPAT=( pypy3 python3_{8..10} )
36 -
37 -inherit autotools java-pkg-opt-2 python-single-r1
38 -
39 -DESCRIPTION="Instrumentation framework to generate execution traces of parallel runtimes"
40 -HOMEPAGE="https://github.com/bsc-performance-tools/extrae"
41 -SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 -
43 -LICENSE="LGPL-2.1"
44 -SLOT="0"
45 -KEYWORDS="~amd64"
46 -
47 -IUSE_INSTRUMENT="
48 - +instrument_dynamic-memory
49 - +instrument_io
50 - +instrument_syscall
51 -"
52 -IUSE="${IUSE_INSTRUMENT} clustering dlsym doc dyninst heterogeneous inotify memkind
53 -merge-in-trace nanos online opencl openmp openshmem +parallel-merge pebs-sampling
54 -peruse +posix-clock pthread sampling +single-mpi-lib sionlib smpss spectral +xml"
55 -
56 -#aspectj and aspectj-weaver need to both be enabled at the same time
57 -#current dev-java/aspectj package only provides aspectj.jar
58 -#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
59 -#aspectj-weaver needs bar/aspectjweaver.jar
60 -#TODO: cuda cupti gm mx
61 -#TODO: support llvm libunwind, llvm rt, elftoolchain
62 -
63 -CDEPEND="
64 - ${PYTHON_DEPS}
65 - dev-libs/libxml2
66 - dev-libs/papi
67 - !sys-cluster/openmpi[libompitrace(+)]
68 - sys-libs/libunwind
69 - sys-libs/zlib
70 - virtual/mpi
71 -
72 - || ( sys-devel/binutils:* sys-libs/binutils-libs )
73 -
74 - clustering? ( sys-cluster/clusteringsuite[treedbscan] )
75 - dyninst? (
76 - dev-libs/boost:=
77 - dev-libs/libdwarf
78 - sys-cluster/dyninst
79 - virtual/libelf
80 - )
81 - inotify? ( dev-libs/libevent )
82 - memkind? ( dev-libs/memkind )
83 - online? ( sys-cluster/synapse )
84 - opencl? ( dev-util/opencl-headers )
85 - openshmem? ( sys-cluster/SOS )
86 - peruse? ( sys-cluster/openmpi[peruse(-)] )
87 - sionlib? ( sys-cluster/sionlib:= )
88 - spectral? (
89 - sci-libs/fftw
90 - sys-cluster/spectral
91 - )
92 -"
93 -# aspectj? ( >=dev-java/aspectj-1.9.6 )
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? (
105 - app-text/ghostscript-gpl
106 - dev-python/sphinx
107 - dev-tex/latexmk
108 - dev-texlive/texlive-latexextra
109 - )
110 - java? ( app-admin/chrpath )
111 -"
112 -
113 -PATCHES=( "${FILESDIR}/${P}-link-sionlib.patch" )
114 -REQUIRED_USE="
115 - ${PYTHON_REQUIRED_USE}
116 -
117 - || ( ${IUSE_INSTRUMENT//+/} )
118 -
119 - java? ( pthread )
120 -"
121 -# cupti? ( cuda )
122 -# aspectj? ( java )
123 -
124 -src_prepare() {
125 - default
126 - eautoreconf
127 -}
128 -
129 -src_configure() {
130 - export VARTEXFONTS="${T}/fonts"
131 -
132 - local myconf=(
133 - --datadir="${T}"
134 - --datarootdir="${T}"
135 -
136 - --disable-mic
137 - --disable-pmapi
138 - --disable-static
139 -
140 - --enable-shared
141 -
142 - --with-librt="${EPREFIX}/usr"
143 - --with-mpi="${EPREFIX}/usr"
144 - --with-papi="${EPREFIX}/usr"
145 - --with-unwind="${EPREFIX}/usr"
146 -
147 - --without-cupti
148 - --without-gm
149 - --without-mx
150 -
151 - $(use_enable doc)
152 - $(use_enable heterogeneous)
153 - $(use_enable inotify)
154 - $(use_enable instrument_dynamic-memory)
155 - $(use_enable instrument_io)
156 - $(use_enable instrument_syscall)
157 - $(use_enable merge-in-trace)
158 - $(use_enable nanos)
159 - $(use_enable online)
160 - $(use_enable openmp)
161 - $(use_enable parallel-merge)
162 - $(use_enable pebs-sampling)
163 - $(use_enable peruse)
164 - $(use_enable posix-clock)
165 - $(use_enable pthread)
166 - $(use_enable sampling)
167 - $(use_enable single-mpi-lib)
168 - $(use_enable smpss)
169 - $(use_enable xml)
170 - )
171 -
172 - use dlsym && myconf+=( "--with-pmpi-hook=dlsym" )
173 -
174 -# if use aspectj; then
175 -# myconf+=( "--with-java-aspectj=${EPREFIX}/usr/share/aspectj/lib" )
176 -# myconf+=( "--with-java-aspectj-weaver=${EPREFIX}/usr" )
177 -# else
178 - myconf+=( "--without-java-aspectj-weaver" )
179 - myconf+=( "--without-java-aspectj" )
180 -# fi
181 - if use clustering; then
182 - myconf+=( "--with-clustering=${EPREFIX}/usr" )
183 - else
184 - myconf+=( "--without-clustering" )
185 - fi
186 - if use dyninst; then
187 - myconf+=( "--with-boost=${EPREFIX}/usr" )
188 - myconf+=( "--with-dyninst=${EPREFIX}/usr" )
189 - myconf+=( "--with-dyninst-headers=${EPREFIX}/usr/include/dyninst" )
190 - myconf+=( "--with-dwarf=${EPREFIX}/usr" )
191 - myconf+=( "--with-elf=${EPREFIX}/usr" )
192 - else
193 - myconf+=( "--without-boost" )
194 - myconf+=( "--without-dyninst" )
195 - myconf+=( "--without-dwarf" )
196 - myconf+=( "--without-elf" )
197 - fi
198 - if use java; then
199 - myconf+=( "--with-java-jdk=$(java-config -O)" )
200 - else
201 - myconf+=( "--without-java-jdk" )
202 - fi
203 - if use memkind; then
204 - myconf+=( "--with-memkind=${EPREFIX}/usr" )
205 - else
206 - myconf+=( "--without-memkind" )
207 - fi
208 - if use online; then
209 - myconf+=( "--with-synapse=${EPREFIX}/usr" )
210 - else
211 - myconf+=( "--without-synapse" )
212 - fi
213 - if use opencl; then
214 - myconf+=( "--with-opencl=${EPREFIX}/usr" )
215 - else
216 - myconf+=( "--without-opencl" )
217 - fi
218 - if use openshmem; then
219 - myconf+=( "--with-openshmem=${EPREFIX}/usr" )
220 - else
221 - myconf+=( "--without-openshmem" )
222 - fi
223 - if use sionlib; then
224 - myconf+=( "--with-sionlib=${EPREFIX}/usr" )
225 - myconf+=( "--with-sionlib-headers=${EPREFIX}/usr/include/sionlib" )
226 - fi
227 - if use spectral; then
228 - myconf+=( "--with-fft=${EPREFIX}/usr" )
229 - myconf+=( "--with-spectral=${EPREFIX}/usr" )
230 - else
231 - myconf+=( "--without-fft" )
232 - myconf+=( "--without-spectral" )
233 - fi
234 -
235 - econf "${myconf[@]}"
236 -}
237 -
238 -src_install() {
239 - default
240 -
241 - #TODO: build examples
242 -
243 - mkdir -p "${D}/$(python_get_sitedir)/" || die
244 - mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
245 - python_optimize "${D}/$(python_get_sitedir)/pyextrae"
246 -
247 - #super-duper workaround
248 - mkdir -p "${ED}/usr/share/doc/${PF}" || die
249 - mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
250 - mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
251 -
252 - if use doc ; then
253 - mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
254 - mv "${T}/man" "${ED}/usr/share/" || die
255 - docompress -x "/usr/share/doc/${PF}/html"
256 - fi
257 - docompress -x "/usr/share/doc/${PF}/examples"
258 - docompress -x "/usr/share/doc/${PF}/tests"
259 -
260 - if use java; then
261 - chrpath -d "${ED}/usr/$(get_libdir)/libextrae-jvmti-agent.so" || die
262 - chrpath -d "${ED}/usr/$(get_libdir)/libjavatrace.so" || die
263 - fi
264 -
265 - find "${ED}" -name '*.a' -delete || die
266 - find "${ED}" -name '*.la' -delete || die
267 -}