1 |
commit: a93d3a43b1362718c7f61520fa2de5866eba424f |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 04:27:54 2022 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 3 04:28:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/dev/tamiko.git/commit/?id=a93d3a43 |
7 |
|
8 |
sys-apps/likwid: remove |
9 |
|
10 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
11 |
|
12 |
sys-apps/likwid/Manifest | 3 - |
13 |
.../likwid/files/likwid-4.3.1-fix-gnustack.patch | 32 ----- |
14 |
sys-apps/likwid/likwid-5.1.1-r50.ebuild | 151 --------------------- |
15 |
sys-apps/likwid/likwid-5.2.0-r50.ebuild | 151 --------------------- |
16 |
sys-apps/likwid/likwid-5.2.1-r50.ebuild | 147 -------------------- |
17 |
sys-apps/likwid/metadata.xml | 11 -- |
18 |
6 files changed, 495 deletions(-) |
19 |
|
20 |
diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest |
21 |
deleted file mode 100644 |
22 |
index cef42f0..0000000 |
23 |
--- a/sys-apps/likwid/Manifest |
24 |
+++ /dev/null |
25 |
@@ -1,3 +0,0 @@ |
26 |
-DIST likwid-5.1.1.tar.gz 2226404 SHA256 faec7c62987967232f476a6ff0ee85af686fd24b5a360126896b7f435d1f943f SHA512 6f78f57ffddbc12c4861945b5aece86f94b1086911ff2972e1bb5fed08f263c57e73dd278f0d146a9ca3438159b14a8b5431f281972842269fc2f5adb52de6c1 WHIRLPOOL 349206045b365b2363618feb0f609852ac7d01c00e46488a172de3d4ba84d0140fdb2bd36f39473c65fc27420def598836e4e7bd30d9f0ac8ceb3b162ebadf7f |
27 |
-DIST likwid-5.2.0.tar.gz 2299164 SHA256 aa6dccacfca59e52d8f3be187ffcf292b2a2fa1f51a81bf8912b9d48e5a257e0 SHA512 f69e44d51b8576db4af76395b5d0620660d9225e3114531b2d5822727f9bceb271ec99853a0f9e14ae4959a3d6f159c832cc0892101ddd12eb1c77a03f744e1f WHIRLPOOL f50138c7c5cd1b477b174613a4c0c56f3df3c26a5ec842d9969d0d99beffc8412e16e1ef341a90218f0ae648d84c67052808b53cad91cbe24b574e3abdf97a8e |
28 |
-DIST likwid-5.2.1.tar.gz 2308041 SHA256 1b8e668da117f24302a344596336eca2c69d2bc2f49fa228ca41ea0688f6cbc2 SHA512 f096dcc071e976284c874aeb254dcb83c66ae808876a8c6be7b05e359d06800f1da25c01c072950c3493eb9ca10f6f9d81624feef61cc7a01f40fc0d003f98a7 WHIRLPOOL e06a570674a1333481fb97796878eeeedda489dd53204b2eda25b64ce5e88d63f6436efe2ffe1ece0236b39e72df3b0ec12d51d48eb7f91ccabc8c5306ce7e89 |
29 |
|
30 |
diff --git a/sys-apps/likwid/files/likwid-4.3.1-fix-gnustack.patch b/sys-apps/likwid/files/likwid-4.3.1-fix-gnustack.patch |
31 |
deleted file mode 100644 |
32 |
index c543a6c..0000000 |
33 |
--- a/sys-apps/likwid/files/likwid-4.3.1-fix-gnustack.patch |
34 |
+++ /dev/null |
35 |
@@ -1,32 +0,0 @@ |
36 |
---- likwid-likwid-4.3.1/bench/Makefile.org 2018-02-26 14:03:17.706837535 +0800 |
37 |
-+++ likwid-likwid-4.3.1/bench/Makefile 2018-02-26 14:04:19.427195208 +0800 |
38 |
-@@ -115,6 +115,7 @@ |
39 |
- $(BUILD_DIR)/%.o: $(BUILD_DIR)/%.pas |
40 |
- @echo "===> ASSEMBLE $@" |
41 |
- $(Q)$(PAS) -i $(PASFLAGS) -o $(BUILD_DIR)/$*.s $< '$(DEFINES)' |
42 |
-+ @cat ../fix_gnustack.txt >> $(BUILD_DIR)/$*.s |
43 |
- $(Q)$(AS) $(ASFLAGS) $(BUILD_DIR)/$*.s -o $@ |
44 |
- |
45 |
- ifeq ($(findstring $(MAKECMDGOALS),clean),) |
46 |
- |
47 |
-diff --git a/fix_gnustack.txt b/fix_gnustack.txt |
48 |
-new file mode 100644 |
49 |
-index 0000000..965af94 |
50 |
---- /dev/null |
51 |
-+++ likwid-likwid-4.1.1/fix_gnustack.txt |
52 |
-@@ -0,0 +1,3 @@ |
53 |
-+#if defined(__linux__) && defined(__ELF__) |
54 |
-+.section .note.GNU-stack,"",%progbits |
55 |
-+#endif |
56 |
- |
57 |
---- likwid-likwid-4.3.1/src/loadData.S.org 2018-02-26 14:06:16.418872121 +0800 |
58 |
-+++ likwid-likwid-4.3.1/src/loadData.S 2018-02-26 14:19:03.281289307 +0800 |
59 |
-@@ -41,4 +41,6 @@ |
60 |
- #endif |
61 |
- .size _loadData, .-_loadData |
62 |
- |
63 |
-- |
64 |
-+#if defined(__linux__) && defined(__ELF__) |
65 |
-+.section .note.GNU-stack,"",%progbits |
66 |
-+#endif |
67 |
- |
68 |
|
69 |
diff --git a/sys-apps/likwid/likwid-5.1.1-r50.ebuild b/sys-apps/likwid/likwid-5.1.1-r50.ebuild |
70 |
deleted file mode 100644 |
71 |
index fe50e47..0000000 |
72 |
--- a/sys-apps/likwid/likwid-5.1.1-r50.ebuild |
73 |
+++ /dev/null |
74 |
@@ -1,151 +0,0 @@ |
75 |
-# Copyright 1999-2021 Gentoo Authors |
76 |
-# Distributed under the terms of the GNU General Public License v2 |
77 |
- |
78 |
-EAPI=6 |
79 |
- |
80 |
-FORTRAN_NEEDED=fortran |
81 |
-#PYTHON_COMPAT=( python3_{5,6,7} ) |
82 |
- |
83 |
-# 4.3.4 will need python-single-r1 |
84 |
-inherit fcaps fortran-2 linux-info toolchain-funcs |
85 |
- |
86 |
-DESCRIPTION="A performance-oriented tool suite for x86 multicore environments" |
87 |
-HOMEPAGE="https://github.com/rrze-likwid/likwid" |
88 |
-SRC_URI="https://ftp.fau.de/pub/likwid/${P}.tar.gz" |
89 |
- |
90 |
-LICENSE="GPL-3+ BSD MIT" |
91 |
- |
92 |
-SLOT="0" |
93 |
-KEYWORDS="~amd64" # upstream partial support exists for x86 arm arm64 |
94 |
-IUSE="fortran" # ${PYTHON_REQUIRED_USE} |
95 |
- |
96 |
-CDEPEND="dev-lang/perl" |
97 |
- |
98 |
-# filter/json uses Python3 |
99 |
-RDEPEND="${CDEPEND}" |
100 |
- |
101 |
-DEPEND="${CDEPEND}" |
102 |
- |
103 |
-CONFIG_CHECK="~X86_MSR" |
104 |
- |
105 |
-FILECAPS=( |
106 |
- -M 755 cap_sys_rawio+ep usr/sbin/likwid-accessD |
107 |
- -- |
108 |
- -M 755 cap_sys_rawio+ep usr/sbin/likwid-setFreq |
109 |
-) |
110 |
- |
111 |
-PATCHES=( |
112 |
- "${FILESDIR}/${PN}-4.3.1-fix-gnustack.patch" |
113 |
-) |
114 |
- |
115 |
-pkg_setup() { |
116 |
- fortran-2_pkg_setup |
117 |
-} |
118 |
- |
119 |
-src_prepare() { |
120 |
- # Ensure we build with a non executable stack |
121 |
- sed \ |
122 |
- -e '/^SHARED_CFLAGS/s/$/ -Wa,--noexecstack/' \ |
123 |
- -i make/include_{GCC*,CLANG}.mk \ |
124 |
- || die "Failed to set nonexecstack" |
125 |
- |
126 |
- # Make the install targets respect Q= for being quiet or not |
127 |
- # MUCH easier for debugging |
128 |
- sed -r \ |
129 |
- -e '/^install/,/^[a-z]/{/^\t@/{ s/@/$(Q)/; }}' \ |
130 |
- -i \ |
131 |
- Makefile || die "Failed to sed Makefile" |
132 |
- |
133 |
- sed -i \ |
134 |
- -e '/^\.NOTPARALLEL:/d' \ |
135 |
- Makefile \ |
136 |
- bench/Makefile \ |
137 |
- ext/hwloc/Makefile || die "Failed to re-enable parallel" |
138 |
- |
139 |
- default |
140 |
-} |
141 |
- |
142 |
-export_emake_opts() { |
143 |
- # Warning: this build system uses PREFIX in a way that differs from |
144 |
- # autoconf! It's more like: |
145 |
- # PREFIX=$(DESTDIR)$(INSTALLED_PREFIX) |
146 |
- # it's not 100% like that, because parts of the Makefiles are inconsistent. |
147 |
- # this is the same solution used in the upstream RPM specs |
148 |
- # these variables are uppercase so they match what's put into Make. |
149 |
- local INSTALLED_PREFIX=/usr |
150 |
- local INSTALLED_LIBPREFIX=/usr/$(get_libdir) # upstream is '$(INSTALLED_PREFIX)/lib' |
151 |
- local INSTALLED_MANPREFIX=/usr/share/man # upstream has it as used but undefined variable. |
152 |
- # If the build is too loud, pass 'Q=@' |
153 |
- src_compile_opts=( |
154 |
- "Q=" |
155 |
- "INSTALLED_PREFIX=${INSTALLED_PREFIX}" |
156 |
- "INSTALLED_LIBPREFIX=${INSTALLED_LIBPREFIX}" |
157 |
- "INSTALLED_MANPREFIX=${INSTALLED_MANPREFIX}" |
158 |
- "PREFIX=${INSTALLED_PREFIX}" |
159 |
- "LIBPREFIX=${INSTALLED_LIBPREFIX}" |
160 |
- "MANPREFIX=${INSTALLED_MANPREFIX}" |
161 |
- "CC=$(tc-getCC)" |
162 |
- "ANSI_CFLAGS=${CFLAGS}" |
163 |
- "INSTRUMENT_BENCH=true" |
164 |
- "FORTRAN_INTERFACE=$(usex fortran likwid.mod false)" |
165 |
- "FC=$(usex fortran "${FC}" false)" |
166 |
- "FCFLAGS=-J ./ -fsyntax-only" # needed for building correctly |
167 |
- ) |
168 |
- src_install_opts=( |
169 |
- "PREFIX=${D}${INSTALLED_PREFIX}" |
170 |
- "LIBPREFIX=${D}${INSTALLED_LIBPREFIX}" |
171 |
- "MANPREFIX=${D}${INSTALLED_MANPREFIX}" |
172 |
- ) |
173 |
-} |
174 |
- |
175 |
-src_compile() { |
176 |
- export_emake_opts |
177 |
- emake \ |
178 |
- "${src_compile_opts[@]}" \ |
179 |
- || die 'emake failed' |
180 |
-} |
181 |
- |
182 |
-src_install () { |
183 |
- export_emake_opts |
184 |
- emake \ |
185 |
- "${src_compile_opts[@]}" \ |
186 |
- "${src_install_opts[@]}" \ |
187 |
- DESTDIR="${D}" \ |
188 |
- install || die 'emake install failed' |
189 |
- |
190 |
- use fortran && doheader likwid.mod |
191 |
- |
192 |
- # Fix Python filter added shortly after 4.3.3 |
193 |
- #python_fix_shebang "${D}"/usr/share/likwid/filter/ |
194 |
- |
195 |
- # Do NOT use 'doman'! The upstream 'make install' target does a sed as it's |
196 |
- # generating the final manpage to the real install dir; and the copies in |
197 |
- # ${S} are unmodified. |
198 |
- dodoc README.md CHANGELOG |
199 |
- dodoc doc/*.txt |
200 |
- dodoc doc/*.md |
201 |
- dodoc -r doc/applications doc/archs |
202 |
- # Fix upstream partial doc install |
203 |
- rm -rf "${D}"/usr/share/likwid/docs || die |
204 |
- ln -sf "/usr/share/doc/${PF}" "${D}"/usr/share/likwid/docs || die |
205 |
-} |
206 |
- |
207 |
-pkg_preinst() { |
208 |
- # This is now a symlink, but used to be a plain directory |
209 |
- OLDDOCDIR=/usr/share/likwid/docs |
210 |
- if [[ ! -L "${OLDDOCDIR}" && -d "${OLDDOCDIR}" ]]; then |
211 |
- einfo "Cleaning up old docdir at ${OLDDOCDIR}" |
212 |
- rm -rf "${OLDDOCDIR}" || die |
213 |
- fi |
214 |
-} |
215 |
- |
216 |
-pkg_postinst() { |
217 |
- fcaps_pkg_postinst |
218 |
- einfo "If you get 'Cannot gather values from MSR_PLATFORM_INFO', then 'modprobe msr'!" |
219 |
- einfo |
220 |
- ewarn "To enable users to access performance counters it is necessary to" |
221 |
- ewarn "change the access permissions to /dev/cpu/msr[0]* devices." |
222 |
- ewarn "It can be accomplished by adding the following line to file" |
223 |
- ewarn "/etc/udev/rules.d/99-myrules.rules: KERNEL==\"msr[0-9]*\" MODE=\"0666\"" |
224 |
- ewarn "Alternatively, assign the MSR files to a unique group and use mode 0660" |
225 |
-} |
226 |
|
227 |
diff --git a/sys-apps/likwid/likwid-5.2.0-r50.ebuild b/sys-apps/likwid/likwid-5.2.0-r50.ebuild |
228 |
deleted file mode 100644 |
229 |
index fe50e47..0000000 |
230 |
--- a/sys-apps/likwid/likwid-5.2.0-r50.ebuild |
231 |
+++ /dev/null |
232 |
@@ -1,151 +0,0 @@ |
233 |
-# Copyright 1999-2021 Gentoo Authors |
234 |
-# Distributed under the terms of the GNU General Public License v2 |
235 |
- |
236 |
-EAPI=6 |
237 |
- |
238 |
-FORTRAN_NEEDED=fortran |
239 |
-#PYTHON_COMPAT=( python3_{5,6,7} ) |
240 |
- |
241 |
-# 4.3.4 will need python-single-r1 |
242 |
-inherit fcaps fortran-2 linux-info toolchain-funcs |
243 |
- |
244 |
-DESCRIPTION="A performance-oriented tool suite for x86 multicore environments" |
245 |
-HOMEPAGE="https://github.com/rrze-likwid/likwid" |
246 |
-SRC_URI="https://ftp.fau.de/pub/likwid/${P}.tar.gz" |
247 |
- |
248 |
-LICENSE="GPL-3+ BSD MIT" |
249 |
- |
250 |
-SLOT="0" |
251 |
-KEYWORDS="~amd64" # upstream partial support exists for x86 arm arm64 |
252 |
-IUSE="fortran" # ${PYTHON_REQUIRED_USE} |
253 |
- |
254 |
-CDEPEND="dev-lang/perl" |
255 |
- |
256 |
-# filter/json uses Python3 |
257 |
-RDEPEND="${CDEPEND}" |
258 |
- |
259 |
-DEPEND="${CDEPEND}" |
260 |
- |
261 |
-CONFIG_CHECK="~X86_MSR" |
262 |
- |
263 |
-FILECAPS=( |
264 |
- -M 755 cap_sys_rawio+ep usr/sbin/likwid-accessD |
265 |
- -- |
266 |
- -M 755 cap_sys_rawio+ep usr/sbin/likwid-setFreq |
267 |
-) |
268 |
- |
269 |
-PATCHES=( |
270 |
- "${FILESDIR}/${PN}-4.3.1-fix-gnustack.patch" |
271 |
-) |
272 |
- |
273 |
-pkg_setup() { |
274 |
- fortran-2_pkg_setup |
275 |
-} |
276 |
- |
277 |
-src_prepare() { |
278 |
- # Ensure we build with a non executable stack |
279 |
- sed \ |
280 |
- -e '/^SHARED_CFLAGS/s/$/ -Wa,--noexecstack/' \ |
281 |
- -i make/include_{GCC*,CLANG}.mk \ |
282 |
- || die "Failed to set nonexecstack" |
283 |
- |
284 |
- # Make the install targets respect Q= for being quiet or not |
285 |
- # MUCH easier for debugging |
286 |
- sed -r \ |
287 |
- -e '/^install/,/^[a-z]/{/^\t@/{ s/@/$(Q)/; }}' \ |
288 |
- -i \ |
289 |
- Makefile || die "Failed to sed Makefile" |
290 |
- |
291 |
- sed -i \ |
292 |
- -e '/^\.NOTPARALLEL:/d' \ |
293 |
- Makefile \ |
294 |
- bench/Makefile \ |
295 |
- ext/hwloc/Makefile || die "Failed to re-enable parallel" |
296 |
- |
297 |
- default |
298 |
-} |
299 |
- |
300 |
-export_emake_opts() { |
301 |
- # Warning: this build system uses PREFIX in a way that differs from |
302 |
- # autoconf! It's more like: |
303 |
- # PREFIX=$(DESTDIR)$(INSTALLED_PREFIX) |
304 |
- # it's not 100% like that, because parts of the Makefiles are inconsistent. |
305 |
- # this is the same solution used in the upstream RPM specs |
306 |
- # these variables are uppercase so they match what's put into Make. |
307 |
- local INSTALLED_PREFIX=/usr |
308 |
- local INSTALLED_LIBPREFIX=/usr/$(get_libdir) # upstream is '$(INSTALLED_PREFIX)/lib' |
309 |
- local INSTALLED_MANPREFIX=/usr/share/man # upstream has it as used but undefined variable. |
310 |
- # If the build is too loud, pass 'Q=@' |
311 |
- src_compile_opts=( |
312 |
- "Q=" |
313 |
- "INSTALLED_PREFIX=${INSTALLED_PREFIX}" |
314 |
- "INSTALLED_LIBPREFIX=${INSTALLED_LIBPREFIX}" |
315 |
- "INSTALLED_MANPREFIX=${INSTALLED_MANPREFIX}" |
316 |
- "PREFIX=${INSTALLED_PREFIX}" |
317 |
- "LIBPREFIX=${INSTALLED_LIBPREFIX}" |
318 |
- "MANPREFIX=${INSTALLED_MANPREFIX}" |
319 |
- "CC=$(tc-getCC)" |
320 |
- "ANSI_CFLAGS=${CFLAGS}" |
321 |
- "INSTRUMENT_BENCH=true" |
322 |
- "FORTRAN_INTERFACE=$(usex fortran likwid.mod false)" |
323 |
- "FC=$(usex fortran "${FC}" false)" |
324 |
- "FCFLAGS=-J ./ -fsyntax-only" # needed for building correctly |
325 |
- ) |
326 |
- src_install_opts=( |
327 |
- "PREFIX=${D}${INSTALLED_PREFIX}" |
328 |
- "LIBPREFIX=${D}${INSTALLED_LIBPREFIX}" |
329 |
- "MANPREFIX=${D}${INSTALLED_MANPREFIX}" |
330 |
- ) |
331 |
-} |
332 |
- |
333 |
-src_compile() { |
334 |
- export_emake_opts |
335 |
- emake \ |
336 |
- "${src_compile_opts[@]}" \ |
337 |
- || die 'emake failed' |
338 |
-} |
339 |
- |
340 |
-src_install () { |
341 |
- export_emake_opts |
342 |
- emake \ |
343 |
- "${src_compile_opts[@]}" \ |
344 |
- "${src_install_opts[@]}" \ |
345 |
- DESTDIR="${D}" \ |
346 |
- install || die 'emake install failed' |
347 |
- |
348 |
- use fortran && doheader likwid.mod |
349 |
- |
350 |
- # Fix Python filter added shortly after 4.3.3 |
351 |
- #python_fix_shebang "${D}"/usr/share/likwid/filter/ |
352 |
- |
353 |
- # Do NOT use 'doman'! The upstream 'make install' target does a sed as it's |
354 |
- # generating the final manpage to the real install dir; and the copies in |
355 |
- # ${S} are unmodified. |
356 |
- dodoc README.md CHANGELOG |
357 |
- dodoc doc/*.txt |
358 |
- dodoc doc/*.md |
359 |
- dodoc -r doc/applications doc/archs |
360 |
- # Fix upstream partial doc install |
361 |
- rm -rf "${D}"/usr/share/likwid/docs || die |
362 |
- ln -sf "/usr/share/doc/${PF}" "${D}"/usr/share/likwid/docs || die |
363 |
-} |
364 |
- |
365 |
-pkg_preinst() { |
366 |
- # This is now a symlink, but used to be a plain directory |
367 |
- OLDDOCDIR=/usr/share/likwid/docs |
368 |
- if [[ ! -L "${OLDDOCDIR}" && -d "${OLDDOCDIR}" ]]; then |
369 |
- einfo "Cleaning up old docdir at ${OLDDOCDIR}" |
370 |
- rm -rf "${OLDDOCDIR}" || die |
371 |
- fi |
372 |
-} |
373 |
- |
374 |
-pkg_postinst() { |
375 |
- fcaps_pkg_postinst |
376 |
- einfo "If you get 'Cannot gather values from MSR_PLATFORM_INFO', then 'modprobe msr'!" |
377 |
- einfo |
378 |
- ewarn "To enable users to access performance counters it is necessary to" |
379 |
- ewarn "change the access permissions to /dev/cpu/msr[0]* devices." |
380 |
- ewarn "It can be accomplished by adding the following line to file" |
381 |
- ewarn "/etc/udev/rules.d/99-myrules.rules: KERNEL==\"msr[0-9]*\" MODE=\"0666\"" |
382 |
- ewarn "Alternatively, assign the MSR files to a unique group and use mode 0660" |
383 |
-} |
384 |
|
385 |
diff --git a/sys-apps/likwid/likwid-5.2.1-r50.ebuild b/sys-apps/likwid/likwid-5.2.1-r50.ebuild |
386 |
deleted file mode 100644 |
387 |
index 499f382..0000000 |
388 |
--- a/sys-apps/likwid/likwid-5.2.1-r50.ebuild |
389 |
+++ /dev/null |
390 |
@@ -1,147 +0,0 @@ |
391 |
-# Copyright 1999-2021 Gentoo Authors |
392 |
-# Distributed under the terms of the GNU General Public License v2 |
393 |
- |
394 |
-EAPI=8 |
395 |
- |
396 |
-FORTRAN_NEEDED=fortran |
397 |
- |
398 |
-inherit fcaps fortran-2 linux-info toolchain-funcs |
399 |
- |
400 |
-DESCRIPTION="A performance-oriented tool suite for x86 multicore environments" |
401 |
-HOMEPAGE="https://github.com/rrze-likwid/likwid" |
402 |
-SRC_URI="https://ftp.fau.de/pub/likwid/${P}.tar.gz" |
403 |
- |
404 |
-LICENSE="GPL-3+ BSD MIT" |
405 |
- |
406 |
-SLOT="0" |
407 |
-KEYWORDS="~amd64" # upstream partial support exists for x86 arm arm64 |
408 |
-IUSE="fortran" |
409 |
- |
410 |
-CDEPEND="dev-lang/perl" |
411 |
- |
412 |
-RDEPEND="${CDEPEND}" |
413 |
-DEPEND="${CDEPEND}" |
414 |
- |
415 |
-CONFIG_CHECK="~X86_MSR" |
416 |
- |
417 |
-FILECAPS=( |
418 |
- -M 755 cap_sys_rawio+ep usr/sbin/likwid-accessD |
419 |
- -- |
420 |
- -M 755 cap_sys_rawio+ep usr/sbin/likwid-setFreq |
421 |
-) |
422 |
- |
423 |
-PATCHES=( |
424 |
- "${FILESDIR}/${PN}-4.3.1-fix-gnustack.patch" |
425 |
-) |
426 |
- |
427 |
-pkg_setup() { |
428 |
- fortran-2_pkg_setup |
429 |
-} |
430 |
- |
431 |
-src_prepare() { |
432 |
- # Ensure we build with a non executable stack |
433 |
- sed \ |
434 |
- -e '/^SHARED_CFLAGS/s/$/ -Wa,--noexecstack/' \ |
435 |
- -i make/include_{GCC*,CLANG}.mk \ |
436 |
- || die "Failed to set nonexecstack" |
437 |
- |
438 |
- # Make the install targets respect Q= for being quiet or not |
439 |
- # MUCH easier for debugging |
440 |
- sed -r \ |
441 |
- -e '/^install/,/^[a-z]/{/^\t@/{ s/@/$(Q)/; }}' \ |
442 |
- -i \ |
443 |
- Makefile || die "Failed to sed Makefile" |
444 |
- |
445 |
- sed -i \ |
446 |
- -e '/^\.NOTPARALLEL:/d' \ |
447 |
- Makefile \ |
448 |
- bench/Makefile \ |
449 |
- ext/hwloc/Makefile || die "Failed to re-enable parallel" |
450 |
- |
451 |
- default |
452 |
-} |
453 |
- |
454 |
-export_emake_opts() { |
455 |
- # Warning: this build system uses PREFIX in a way that differs from |
456 |
- # autoconf! It's more like: |
457 |
- # PREFIX=$(DESTDIR)$(INSTALLED_PREFIX) |
458 |
- # it's not 100% like that, because parts of the Makefiles are inconsistent. |
459 |
- # this is the same solution used in the upstream RPM specs |
460 |
- # these variables are uppercase so they match what's put into Make. |
461 |
- local INSTALLED_PREFIX=/usr |
462 |
- local INSTALLED_LIBPREFIX=/usr/$(get_libdir) # upstream is '$(INSTALLED_PREFIX)/lib' |
463 |
- local INSTALLED_MANPREFIX=/usr/share/man # upstream has it as used but undefined variable. |
464 |
- # If the build is too loud, pass 'Q=@' |
465 |
- src_compile_opts=( |
466 |
- "Q=" |
467 |
- "INSTALLED_PREFIX=${INSTALLED_PREFIX}" |
468 |
- "INSTALLED_LIBPREFIX=${INSTALLED_LIBPREFIX}" |
469 |
- "INSTALLED_MANPREFIX=${INSTALLED_MANPREFIX}" |
470 |
- "PREFIX=${INSTALLED_PREFIX}" |
471 |
- "LIBPREFIX=${INSTALLED_LIBPREFIX}" |
472 |
- "MANPREFIX=${INSTALLED_MANPREFIX}" |
473 |
- "CC=$(tc-getCC)" |
474 |
- "ANSI_CFLAGS=${CFLAGS}" |
475 |
- "INSTRUMENT_BENCH=true" |
476 |
- "FORTRAN_INTERFACE=$(usex fortran likwid.mod false)" |
477 |
- "FC=$(usex fortran "${FC}" false)" |
478 |
- "FCFLAGS=-J ./ -fsyntax-only" # needed for building correctly |
479 |
- ) |
480 |
- src_install_opts=( |
481 |
- "PREFIX=${D}${INSTALLED_PREFIX}" |
482 |
- "LIBPREFIX=${D}${INSTALLED_LIBPREFIX}" |
483 |
- "MANPREFIX=${D}${INSTALLED_MANPREFIX}" |
484 |
- ) |
485 |
-} |
486 |
- |
487 |
-src_compile() { |
488 |
- export_emake_opts |
489 |
- emake \ |
490 |
- "${src_compile_opts[@]}" \ |
491 |
- || die 'emake failed' |
492 |
-} |
493 |
- |
494 |
-src_install () { |
495 |
- export_emake_opts |
496 |
- emake \ |
497 |
- "${src_compile_opts[@]}" \ |
498 |
- "${src_install_opts[@]}" \ |
499 |
- DESTDIR="${D}" \ |
500 |
- install || die 'emake install failed' |
501 |
- |
502 |
- use fortran && doheader likwid.mod |
503 |
- |
504 |
- # Fix Python filter added shortly after 4.3.3 |
505 |
- #python_fix_shebang "${D}"/usr/share/likwid/filter/ |
506 |
- |
507 |
- # Do NOT use 'doman'! The upstream 'make install' target does a sed as it's |
508 |
- # generating the final manpage to the real install dir; and the copies in |
509 |
- # ${S} are unmodified. |
510 |
- dodoc README.md CHANGELOG |
511 |
- dodoc doc/*.txt |
512 |
- dodoc doc/*.md |
513 |
- dodoc -r doc/applications doc/archs |
514 |
- # Fix upstream partial doc install |
515 |
- rm -rf "${D}"/usr/share/likwid/docs || die |
516 |
- ln -sf "/usr/share/doc/${PF}" "${D}"/usr/share/likwid/docs || die |
517 |
-} |
518 |
- |
519 |
-pkg_preinst() { |
520 |
- # This is now a symlink, but used to be a plain directory |
521 |
- OLDDOCDIR=/usr/share/likwid/docs |
522 |
- if [[ ! -L "${OLDDOCDIR}" && -d "${OLDDOCDIR}" ]]; then |
523 |
- einfo "Cleaning up old docdir at ${OLDDOCDIR}" |
524 |
- rm -rf "${OLDDOCDIR}" || die |
525 |
- fi |
526 |
-} |
527 |
- |
528 |
-pkg_postinst() { |
529 |
- fcaps_pkg_postinst |
530 |
- einfo "If you get 'Cannot gather values from MSR_PLATFORM_INFO', then 'modprobe msr'!" |
531 |
- einfo |
532 |
- ewarn "To enable users to access performance counters it is necessary to" |
533 |
- ewarn "change the access permissions to /dev/cpu/msr[0]* devices." |
534 |
- ewarn "It can be accomplished by adding the following line to file" |
535 |
- ewarn "/etc/udev/rules.d/99-myrules.rules: KERNEL==\"msr[0-9]*\" MODE=\"0666\"" |
536 |
- ewarn "Alternatively, assign the MSR files to a unique group and use mode 0660" |
537 |
-} |
538 |
|
539 |
diff --git a/sys-apps/likwid/metadata.xml b/sys-apps/likwid/metadata.xml |
540 |
deleted file mode 100644 |
541 |
index 3a16425..0000000 |
542 |
--- a/sys-apps/likwid/metadata.xml |
543 |
+++ /dev/null |
544 |
@@ -1,11 +0,0 @@ |
545 |
-<?xml version="1.0" encoding="UTF-8"?> |
546 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
547 |
-<pkgmetadata> |
548 |
- <maintainer type="person"> |
549 |
- <email>robbat2@g.o</email> |
550 |
- <name>Robin H. Johnson</name> |
551 |
- </maintainer> |
552 |
- <upstream> |
553 |
- <remote-id type="github">rrze-likwid/likwid</remote-id> |
554 |
- </upstream> |
555 |
-</pkgmetadata> |