public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2015-08-26  3:19 Matt Thode
  0 siblings, 0 replies; 11+ messages in thread
From: Matt Thode @ 2015-08-26  3:19 UTC (permalink / raw
  To: gentoo-commits

commit:     661cfafc23970f580a744d24574855f2346333fe
Author:     Brendan Horan <brendan <AT> horan <DOT> hk>
AuthorDate: Wed Aug 26 01:19:05 2015 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 03:20:11 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=661cfafc

sys-apps/likwid: Upstream re-submitted the tarball with altered content. See bug 558664.

Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 sys-apps/likwid/likwid-4.0.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys-apps/likwid/likwid-4.0.1.ebuild b/sys-apps/likwid/likwid-4.0.1.ebuild
index 8016266..52c115c 100644
--- a/sys-apps/likwid/likwid-4.0.1.ebuild
+++ b/sys-apps/likwid/likwid-4.0.1.ebuild
@@ -31,6 +31,8 @@ FILECAPS=(
 	cap_sys_rawio usr/bin/likwid-{perfctr,bench,powermeter}
 )
 
+S=${WORKDIR}/likwid-likwid-${PV}
+
 src_prepare() {
 	# See Bug 558402
 	epatch "${FILESDIR}"/${P}-Makefile.patch \


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2015-09-01 20:06 Tobias Klausmann
  0 siblings, 0 replies; 11+ messages in thread
From: Tobias Klausmann @ 2015-09-01 20:06 UTC (permalink / raw
  To: gentoo-commits

commit:     8beb92bc34200ac73e5ca5060020eb932c9478e7
Author:     Tobias Klausmann <klausman <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  1 19:59:23 2015 +0000
Commit:     Tobias Klausmann <klausman <AT> gentoo <DOT> org>
CommitDate: Tue Sep  1 19:59:23 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8beb92bc

sys-apps/likwid: Fixing HOMEPAGE move due to code.google.com shutdown

Package-Manager: portage-2.2.20.1

 sys-apps/likwid/likwid-3.1.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-apps/likwid/likwid-3.1.3.ebuild b/sys-apps/likwid/likwid-3.1.3.ebuild
index f938441..5ecba88 100644
--- a/sys-apps/likwid/likwid-3.1.3.ebuild
+++ b/sys-apps/likwid/likwid-3.1.3.ebuild
@@ -9,7 +9,7 @@ FORTRAN_NEEDED=fortran
 inherit eutils fcaps fortran-2 linux-info multilib
 
 DESCRIPTION="A lightweight performance-oriented tool suite for x86 multicore environments"
-HOMEPAGE="https://code.google.com/p/likwid/"
+HOMEPAGE="https://github.com/rrze-likwid/likwid"
 SRC_URI="http://ftp.fau.de/pub/likwid/likwid-${PV}.tar.gz"
 
 LICENSE="GPL-3"


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2015-09-08  1:37 Ian Delaney
  0 siblings, 0 replies; 11+ messages in thread
From: Ian Delaney @ 2015-09-08  1:37 UTC (permalink / raw
  To: gentoo-commits

commit:     2d143ddb0ff0564220c26e0151a48ea9df779727
Author:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  8 01:35:36 2015 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Tue Sep  8 01:35:36 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d143ddb

sys-apps/likwid: set SRC_URI to devspace, fixes bug #559522

Package-Manager: portage-2.2.20

 sys-apps/likwid/Manifest            | 2 +-
 sys-apps/likwid/likwid-4.0.1.ebuild | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest
index 448cb7b..2b503e5 100644
--- a/sys-apps/likwid/Manifest
+++ b/sys-apps/likwid/Manifest
@@ -1,2 +1,2 @@
 DIST likwid-3.1.3.tar.gz 605675 SHA256 05078ec55dce3d4cf1c94832bd289ccbcaee7bdee9a1ea9f6681ccd3f59ece5b SHA512 e31b4498e702d4ddf61e3c123d43f0804ef4cef149bb3732b61e3894aa9d76feb7a2654bbb0467dd30323031122ea01cf17e4f01a33f193e750cdbdfc09741d7 WHIRLPOOL bccfcc68e792f09a66eab99affa81250fbe34d4759a81a4e0bd0af2535e5bb09229bee4bc165986559d14101183e5be9a933273ec9f1a7c5c8da3f97f07f9e8e
-DIST likwid-4.0.1.tar.gz 1429223 SHA256 c04551a2264389f4a88cb2757efdcb0a8d3c3fd9851020d0827a90b68b8c36e3 SHA512 fdc0eaf102814d53efdabb12d90f4baeec9d190f9808e3fcf5a6785136a7cf9fd0789cf64417cd52c7288a50a4284f8e44463c16410c2b0e4ef3ce3790c61b86 WHIRLPOOL 9a944b77ebb60d5283c2c42c44dabeb6dc8837d64a4e2d90d0878ab60c5b3b3d7e55cbfbbe7fcc075edcc83d4d980f689a8ed6b5f3a5051c6af824d624b1dbd6
+DIST likwid-4.0.1.tar.gz 1409079 SHA256 ab384e585d99a7404075c48f78a08e892a75db12c348da6622ed0536a0a05c7f SHA512 f164a244e56afdc4409790b75f3cb4ea49cc91f7a210590de426f429db5717eed9691263580008cf69997be56a63009224012ee48c55f05b112f96cfca81c52e WHIRLPOOL 59392e6a2057fb9f9aa70b7cc0594ca7a665171b8a2302ddd9350930571596f14e5c9753d132eddb750ef8503330b4f456158fae7a99705c36e7aac80afa6bb2

diff --git a/sys-apps/likwid/likwid-4.0.1.ebuild b/sys-apps/likwid/likwid-4.0.1.ebuild
index 52c115c..0c25cb3 100644
--- a/sys-apps/likwid/likwid-4.0.1.ebuild
+++ b/sys-apps/likwid/likwid-4.0.1.ebuild
@@ -10,7 +10,8 @@ inherit eutils fcaps linux-info multilib fortran-2
 
 DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
 HOMEPAGE="https://github.com/rrze-likwid/likwid"
-SRC_URI="https://github.com/rrze-likwid/likwid/archive/likwid-${PV}.tar.gz"
+# Upstream have made a habit of making changes to the tagged realesed tarball
+SRC_URI="https://dev.gentoo.org/~idella4/tarballs/likwid-${PV}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -24,6 +25,8 @@ DEPEND="${RDEPEND}
 	fortran? ( sys-devel/gcc:*[fortran] )
 	dev-lang/lua:0"
 
+RESTRICT="mirror"
+
 CONFIG_CHECK="~X86_MSR"
 
 FILECAPS=(


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2016-04-20  9:14 Ian Delaney
  0 siblings, 0 replies; 11+ messages in thread
From: Ian Delaney @ 2016-04-20  9:14 UTC (permalink / raw
  To: gentoo-commits

commit:     80926eb278f951627f71b72ec1d841766f282f7e
Author:     Brendan Horan <brendan <AT> horan <DOT> hk>
AuthorDate: Tue Apr 19 23:37:12 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Wed Apr 20 09:14:14 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80926eb2

sys-apps/likwid : remove sed dep

Removed unneeded dependency sys-apps/sed from DEPEND
Closes: https://github.com/gentoo/gentoo/pull/1311

Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>

 sys-apps/likwid/likwid-4.0.1-r1.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys-apps/likwid/likwid-4.0.1-r1.ebuild b/sys-apps/likwid/likwid-4.0.1-r1.ebuild
index 11e04c2..3e884ee 100644
--- a/sys-apps/likwid/likwid-4.0.1-r1.ebuild
+++ b/sys-apps/likwid/likwid-4.0.1-r1.ebuild
@@ -21,7 +21,6 @@ IUSE="fortran"
 RDEPEND="dev-lang/perl"
 
 DEPEND="${RDEPEND}
-	sys-apps/sed
 	fortran? ( sys-devel/gcc:*[fortran] )
 	dev-lang/lua:0"
 


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2016-05-12  1:14 Sam Jorna
  0 siblings, 0 replies; 11+ messages in thread
From: Sam Jorna @ 2016-05-12  1:14 UTC (permalink / raw
  To: gentoo-commits

commit:     68e7d18fc6a90751f83a8862e8eff084ccc66087
Author:     Sam Jorna <wraeth <AT> gentoo <DOT> org>
AuthorDate: Thu May 12 01:13:24 2016 +0000
Commit:     Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Thu May 12 01:13:55 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68e7d18f

sys-apps/likwid: revbump, fix file perms

Fixes incorrect permissions on installed binaries. Patch by proxied
maintainer per bug.

Gentoo-bug: 582692
Package-Manager: portage-2.2.28

 sys-apps/likwid/{likwid-4.0.1-r1.ebuild => likwid-4.0.1-r2.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-apps/likwid/likwid-4.0.1-r1.ebuild b/sys-apps/likwid/likwid-4.0.1-r2.ebuild
similarity index 94%
rename from sys-apps/likwid/likwid-4.0.1-r1.ebuild
rename to sys-apps/likwid/likwid-4.0.1-r2.ebuild
index 3e884ee..7d68628 100644
--- a/sys-apps/likwid/likwid-4.0.1-r1.ebuild
+++ b/sys-apps/likwid/likwid-4.0.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -29,8 +29,8 @@ RESTRICT="mirror"
 CONFIG_CHECK="~X86_MSR"
 
 FILECAPS=(
-	cap_sys_rawio usr/sbin/likwid-accessD --
-	cap_sys_rawio usr/bin/likwid-{perfctr,bench,powermeter}
+	-M 755 cap_sys_rawio usr/sbin/likwid-accessD --
+	-M 755 cap_sys_rawio usr/bin/likwid-{perfctr,bench,powermeter}
 )
 
 S=${WORKDIR}/likwid-likwid-${PV}


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2016-07-19 16:54 Amy Winston
  0 siblings, 0 replies; 11+ messages in thread
From: Amy Winston @ 2016-07-19 16:54 UTC (permalink / raw
  To: gentoo-commits

commit:     22a1e5b0ffb9dee347174ad75df59b149b41bf00
Author:     Amy Winston <amynka <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 19 16:54:00 2016 +0000
Commit:     Amy Winston <amynka <AT> gentoo <DOT> org>
CommitDate: Tue Jul 19 16:54:00 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a1e5b0

sys-apps/likwid: fix license, unused inherits removed

Package-Manager: portage-2.2.28

 sys-apps/likwid/likwid-4.1.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/likwid/likwid-4.1.1.ebuild b/sys-apps/likwid/likwid-4.1.1.ebuild
index c7f11c8..5cb4ba7 100644
--- a/sys-apps/likwid/likwid-4.1.1.ebuild
+++ b/sys-apps/likwid/likwid-4.1.1.ebuild
@@ -6,13 +6,13 @@ EAPI=6
 
 FORTRAN_NEEDED=fortran
 
-inherit eutils fcaps linux-info multilib fortran-2
+inherit fcaps linux-info fortran-2
 
 DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
 HOMEPAGE="https://github.com/rrze-likwid/likwid"
 SRC_URI="https://github.com/RRZE-HPC/likwid/archive/likwid-4.1.1.tar.gz"
 
-LICENSE="GPL-3"
+LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="fortran"


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2016-11-02 16:19 Göktürk Yüksek
  0 siblings, 0 replies; 11+ messages in thread
From: Göktürk Yüksek @ 2016-11-02 16:19 UTC (permalink / raw
  To: gentoo-commits

commit:     4b144e2682d22cd7a826eaee527b0b3e0725c064
Author:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  2 15:52:34 2016 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Wed Nov  2 16:08:52 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b144e26

sys-apps/likwid: respect CC

Package-Manager: portage-2.2.28

 sys-apps/likwid/likwid-4.1.2.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys-apps/likwid/likwid-4.1.2.ebuild b/sys-apps/likwid/likwid-4.1.2.ebuild
index 6566777..a20b746 100644
--- a/sys-apps/likwid/likwid-4.1.2.ebuild
+++ b/sys-apps/likwid/likwid-4.1.2.ebuild
@@ -6,7 +6,7 @@ EAPI=6
 
 FORTRAN_NEEDED=fortran
 
-inherit fcaps linux-info fortran-2
+inherit fcaps linux-info toolchain-funcs fortran-2
 
 DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
 HOMEPAGE="https://github.com/rrze-likwid/likwid"
@@ -78,6 +78,10 @@ src_prepare() {
 			|| die "Failed to set GCC flags for fortran"
 	fi
 
+	# Respect CC
+	sed -e "s:^CC.*:CC = $(tc-getCC):" \
+		-i make/include_GCC.mk || die
+
 	default
 
 }


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2018-04-15 18:48 Patrice Clement
  0 siblings, 0 replies; 11+ messages in thread
From: Patrice Clement @ 2018-04-15 18:48 UTC (permalink / raw
  To: gentoo-commits

commit:     c5412a2d0af560cb8d0782de0c4244ac4bd780a3
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 15 18:47:31 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Apr 15 18:48:05 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5412a2d

sys-apps/likwid: remove maintainer.

Closes: https://bugs.gentoo.org/651824
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-apps/likwid/metadata.xml | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/sys-apps/likwid/metadata.xml b/sys-apps/likwid/metadata.xml
index 9c00570418d..69f8f4152ad 100644
--- a/sys-apps/likwid/metadata.xml
+++ b/sys-apps/likwid/metadata.xml
@@ -1,14 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<maintainer type="person">
-		<email>brendan@horan.hk</email>
-		<name>Brendan Horan</name>
-	</maintainer>
-	<maintainer type="project">
-		<email>proxy-maint@gentoo.org</email>
-		<name>Proxy Maintainers</name>
-	</maintainer>
+	<!-- maintainer-needed -->
 	<upstream>
 		<remote-id type="github">rrze-likwid/likwid</remote-id>
 	</upstream>


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2019-04-28 21:03 Robin H. Johnson
  0 siblings, 0 replies; 11+ messages in thread
From: Robin H. Johnson @ 2019-04-28 21:03 UTC (permalink / raw
  To: gentoo-commits

commit:     4b0ddd59e83ad16026b1ffce47d1b4978c2f806c
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 21:01:08 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 21:03:44 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b0ddd59

sys-apps/likwid: bump

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 sys-apps/likwid/Manifest            |   1 +
 sys-apps/likwid/likwid-4.3.4.ebuild | 186 ++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)

diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest
index cc76505f29e..22f882da943 100644
--- a/sys-apps/likwid/Manifest
+++ b/sys-apps/likwid/Manifest
@@ -1 +1,2 @@
 DIST likwid-4.3.3.tar.gz 1579433 BLAKE2B 9ec468bba009dec860b24c9c55c3d6023ffda3ab0985d835796686ba52d1d3372b2bfce926cf229388978de34e1ab0b41d8d27c88623c51c3e8ff1e9d674906b SHA512 ae4d68e238bc40e4a4ab5df628561c9bb7a0ef8727d5779dba2c32fff0be1dd333532bee7e4c197e5fe286de81d35b863ef09f4bc8b9f9145360e6e461f3d94e
+DIST likwid-4.3.4.tar.gz 1584829 BLAKE2B dcd1c3a0c5e549dc3d22bb98120339521e270da55460f5af9f2fe04849af0fe1ac4d9b881883a4efc3695ceb087d1afad5bcc55b55543199d2c33b0f5012cc68 SHA512 f1ee930a98d160728078a81a2cdc798ec62ac484545ced937131e6a6443e5ac23b8e597d31c7b1b9f67c1169e1c662c366cf1098158cb467d9f7ff12946b08a2

diff --git a/sys-apps/likwid/likwid-4.3.4.ebuild b/sys-apps/likwid/likwid-4.3.4.ebuild
new file mode 100644
index 00000000000..eba012a63db
--- /dev/null
+++ b/sys-apps/likwid/likwid-4.3.4.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+FORTRAN_NEEDED=fortran
+#PYTHON_COMPAT=( python3_{5,6,7} )
+
+# 4.3.4 will need python-single-r1
+inherit fcaps fortran-2 linux-info toolchain-funcs
+
+DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
+HOMEPAGE="https://github.com/rrze-likwid/likwid"
+SRC_URI="https://ftp.fau.de/pub/likwid/${P}.tar.gz"
+
+# If this ebuild is changed to use the bundled Lua-5.3, then MIT should be
+# added to the LICENSE field.
+LICENSE="GPL-3+ BSD"
+
+SLOT="0"
+KEYWORDS="~amd64" # upstream partial support exists for x86 arm arm64
+IUSE="fortran" # ${PYTHON_REQUIRED_USE}
+
+# lua:
+# likwid's primary functionality is driven by a set of lua scripts installed in
+# /usr/bin/
+# likwid bundles lua-5.3.2, AND supports using a system copy of lua-5.2 or
+# lua-5.3, which we use. This ebuild uses the system copy of Lua instead.
+#
+# hwloc:
+# likwid bundles a MODIFIED copy of hwloc-2.0.0a1 with specific configuration
+# for CPU probing & access
+#
+# Perl:
+# likwid uses Perl to convert from an internal text format to ASM listings
+# likwid also uses perl for some installed helper scripts
+# The build system bundles some Perl modules, that are not removed at this time:
+# Parse-RecDescent
+# Template
+#
+# Python:
+# Python3 is used for one helper script, filter/json, added after 4.3.3
+CDEPEND="dev-lang/perl
+	dev-lang/lua:5.3"
+
+# filter/json uses Python3
+RDEPEND="${CDEPEND}"
+	#${PYTHON_DEPS}"
+
+# Part of the build process depends on Data::Dumper
+#	perl-core/Data-Dumper"
+DEPEND="${CDEPEND}"
+
+CONFIG_CHECK="~X86_MSR"
+
+FILECAPS=(
+	-M 755 cap_sys_rawio+ep usr/sbin/likwid-accessD
+	--
+	-M 755 cap_sys_rawio+ep usr/sbin/likwid-setFreq
+)
+
+PATCHES=(
+	"${FILESDIR}/${PN}-4.3.1-fix-gnustack.patch"
+	# Old patches are obsolete:
+	#"${FILESDIR}/${PN}-4.3.1-Makefile.patch"
+	#"${FILESDIR}/${PN}-4.3.1-config.mk.patch"
+)
+
+pkg_setup() {
+	fortran-2_pkg_setup
+	#python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	# Ensure we build with a non executable stack
+	sed \
+		-e '/^SHARED_CFLAGS/s/$/ -Wa,--noexecstack/' \
+		-i make/include_{GCC*,CLANG}.mk \
+		|| die "Failed to set nonexecstack"
+
+	# Make the install targets respect Q= for being quiet or not
+	# MUCH easier for debugging
+	sed -r \
+		-e '/^install/,/^[a-z]/{/^\t@/{ s/@/$(Q)/; }}' \
+		-i \
+		Makefile || die "Failed to sed Makefile"
+
+	sed -i \
+		-e '/^\.NOTPARALLEL:/d' \
+		Makefile \
+		bench/Makefile \
+		ext/hwloc/Makefile || die "Failed to re-enable parallel"
+
+	default
+}
+
+export_emake_opts() {
+	# Warning: this build system uses PREFIX in a way that differs from
+	# autoconf! It's more like:
+	# PREFIX=$(DESTDIR)$(INSTALLED_PREFIX)
+	# it's not 100% like that, because parts of the Makefiles are inconsistent.
+	# this is the same solution used in the upstream RPM specs
+	# these variables are uppercase so they match what's put into Make.
+	local INSTALLED_PREFIX=/usr
+	local INSTALLED_LIBPREFIX=/usr/$(get_libdir) # upstream is '$(INSTALLED_PREFIX)/lib'
+	local INSTALLED_MANPREFIX=/usr/share/man # upstream has it as used but undefined variable.
+	# TODO: support LUA_SINGLE_TARGET here later for Lua 5.2
+	local LUASLOT='5.3'
+	# If the build is too loud, pass 'Q=@'
+	src_compile_opts=(
+		"Q="
+		"INSTALLED_PREFIX=${INSTALLED_PREFIX}"
+		"INSTALLED_LIBPREFIX=${INSTALLED_LIBPREFIX}"
+		"INSTALLED_MANPREFIX=${INSTALLED_MANPREFIX}"
+		"PREFIX=${INSTALLED_PREFIX}"
+		"LIBPREFIX=${INSTALLED_LIBPREFIX}"
+		"MANPREFIX=${INSTALLED_MANPREFIX}"
+		"CC=$(tc-getCC)"
+		"ANSI_CFLAGS=${CFLAGS}"
+		"INSTRUMENT_BENCH=true"
+		"LUA_INCLUDE_DIR=/usr/include/lua${LUASLOT}"
+		"LUA_LIB_DIR=/usr/$(get_libdir)"
+		"LUA_LIB_NAME=lua${LUASLOT}"
+		"LUA_BIN=/usr/bin"
+		"FORTRAN_INTERFACE=$(usex fortran likwid.mod false)"
+		"FC=$(usex fortran "${FC}" false)"
+		"FCFLAGS=-J ./ -fsyntax-only" # needed for building correctly
+	)
+	src_install_opts=(
+		"PREFIX=${D}${INSTALLED_PREFIX}"
+		"LIBPREFIX=${D}${INSTALLED_LIBPREFIX}"
+		"MANPREFIX=${D}${INSTALLED_MANPREFIX}"
+	)
+}
+
+src_compile() {
+	export_emake_opts
+	emake \
+		"${src_compile_opts[@]}" \
+		|| die 'emake failed'
+}
+
+src_install () {
+	export_emake_opts
+	emake \
+		"${src_compile_opts[@]}" \
+		"${src_install_opts[@]}" \
+		DESTDIR="${D}" \
+		install || die 'emake install failed'
+
+	use fortran && doheader likwid.mod
+
+	# Fix Python filter added shortly after 4.3.3
+	#python_fix_shebang "${D}"/usr/share/likwid/filter/
+
+	# Do NOT use 'doman'! The upstream 'make install' target does a sed as it's
+	# generating the final manpage to the real install dir; and the copies in
+	# ${S} are unmodified.
+	dodoc README.md CHANGELOG doc/logo.png
+	dodoc doc/*.txt
+	dodoc doc/*.md
+	dodoc -r doc/applications doc/archs
+	# Fix upstream partial doc install
+	rm -rf "${D}"/usr/share/likwid/docs || die
+	ln -sf "/usr/share/doc/${PF}" "${D}"/usr/share/likwid/docs || die
+}
+
+pkg_preinst() {
+	# This is now a symlink, but used to be a plain directory
+	OLDDOCDIR=/usr/share/likwid/docs
+	if [[ ! -L "${OLDDOCDIR}" && -d "${OLDDOCDIR}" ]]; then
+		einfo "Cleaning up old docdir at ${OLDDOCDIR}"
+		rm -rf "${OLDDOCDIR}" || die
+	fi
+}
+
+pkg_postinst() {
+	fcaps_pkg_postinst
+	einfo "If you get 'Cannot gather values from MSR_PLATFORM_INFO', then 'modprobe msr'!"
+	einfo
+	ewarn "To enable users to access performance counters it is necessary to"
+	ewarn "change the access permissions to /dev/cpu/msr[0]* devices."
+	ewarn "It can be accomplished by adding the following line to file"
+	ewarn "/etc/udev/rules.d/99-myrules.rules: KERNEL==\"msr[0-9]*\" MODE=\"0666\""
+	ewarn "Alternatively, assign the MSR files to a unique group and use mode 0660"
+}


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2022-06-03  4:29 Matthias Maier
  0 siblings, 0 replies; 11+ messages in thread
From: Matthias Maier @ 2022-06-03  4:29 UTC (permalink / raw
  To: gentoo-commits

commit:     1efac637754de80ed8bb6f397c16d44cfcc334c4
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  3 04:26:53 2022 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri Jun  3 04:29:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1efac637

sys-apps/likwid: add 5.2.1

Closes: https://bugs.gentoo.org/800106
Closes: https://bugs.gentoo.org/808225
Closes: https://bugs.gentoo.org/822141
Closes: https://bugs.gentoo.org/828825
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sys-apps/likwid/Manifest            |   1 +
 sys-apps/likwid/likwid-5.2.1.ebuild | 147 ++++++++++++++++++++++++++++++++++++
 2 files changed, 148 insertions(+)

diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest
index 16c593487b67..0ad4fd9fba92 100644
--- a/sys-apps/likwid/Manifest
+++ b/sys-apps/likwid/Manifest
@@ -1 +1,2 @@
 DIST likwid-4.3.4.tar.gz 1584829 BLAKE2B dcd1c3a0c5e549dc3d22bb98120339521e270da55460f5af9f2fe04849af0fe1ac4d9b881883a4efc3695ceb087d1afad5bcc55b55543199d2c33b0f5012cc68 SHA512 f1ee930a98d160728078a81a2cdc798ec62ac484545ced937131e6a6443e5ac23b8e597d31c7b1b9f67c1169e1c662c366cf1098158cb467d9f7ff12946b08a2
+DIST likwid-5.2.1.tar.gz 2308041 BLAKE2B 1913212fb5157365a439757018ab58b4555e2b4401575ee05c784d038e13296644a7d0a89769599eef0444b13ed10f0357ad09b9cbae712f7d1fb9cca65fb1e3 SHA512 f096dcc071e976284c874aeb254dcb83c66ae808876a8c6be7b05e359d06800f1da25c01c072950c3493eb9ca10f6f9d81624feef61cc7a01f40fc0d003f98a7

diff --git a/sys-apps/likwid/likwid-5.2.1.ebuild b/sys-apps/likwid/likwid-5.2.1.ebuild
new file mode 100644
index 000000000000..ed2192fcf1bc
--- /dev/null
+++ b/sys-apps/likwid/likwid-5.2.1.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEEDED=fortran
+
+inherit fcaps fortran-2 linux-info toolchain-funcs
+
+DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
+HOMEPAGE="https://github.com/rrze-likwid/likwid"
+SRC_URI="https://ftp.fau.de/pub/likwid/${P}.tar.gz"
+
+LICENSE="GPL-3+ BSD MIT"
+
+SLOT="0"
+KEYWORDS="~amd64" # upstream partial support exists for x86 arm arm64
+IUSE="fortran"
+
+CDEPEND="dev-lang/perl"
+
+RDEPEND="${CDEPEND}"
+DEPEND="${CDEPEND}"
+
+CONFIG_CHECK="~X86_MSR"
+
+FILECAPS=(
+	-M 755 cap_sys_rawio+ep usr/sbin/likwid-accessD
+	--
+	-M 755 cap_sys_rawio+ep usr/sbin/likwid-setFreq
+)
+
+PATCHES=(
+	"${FILESDIR}/${PN}-4.3.1-fix-gnustack.patch"
+)
+
+pkg_setup() {
+	fortran-2_pkg_setup
+}
+
+src_prepare() {
+	# Ensure we build with a non executable stack
+	sed \
+		-e '/^SHARED_CFLAGS/s/$/ -Wa,--noexecstack/' \
+		-i make/include_{GCC*,CLANG}.mk \
+		|| die "Failed to set nonexecstack"
+
+	# Make the install targets respect Q= for being quiet or not
+	# MUCH easier for debugging
+	sed -r \
+		-e '/^install/,/^[a-z]/{/^\t@/{ s/@/$(Q)/; }}' \
+		-i \
+		Makefile || die "Failed to sed Makefile"
+
+	sed -i \
+		-e '/^\.NOTPARALLEL:/d' \
+		Makefile \
+		bench/Makefile \
+		ext/hwloc/Makefile || die "Failed to re-enable parallel"
+
+	default
+}
+
+export_emake_opts() {
+	# Warning: this build system uses PREFIX in a way that differs from
+	# autoconf! It's more like:
+	# PREFIX=$(DESTDIR)$(INSTALLED_PREFIX)
+	# it's not 100% like that, because parts of the Makefiles are inconsistent.
+	# this is the same solution used in the upstream RPM specs
+	# these variables are uppercase so they match what's put into Make.
+	local INSTALLED_PREFIX=/usr
+	local INSTALLED_LIBPREFIX=/usr/$(get_libdir) # upstream is '$(INSTALLED_PREFIX)/lib'
+	local INSTALLED_MANPREFIX=/usr/share/man # upstream has it as used but undefined variable.
+	# If the build is too loud, pass 'Q=@'
+	src_compile_opts=(
+		"Q="
+		"INSTALLED_PREFIX=${INSTALLED_PREFIX}"
+		"INSTALLED_LIBPREFIX=${INSTALLED_LIBPREFIX}"
+		"INSTALLED_MANPREFIX=${INSTALLED_MANPREFIX}"
+		"PREFIX=${INSTALLED_PREFIX}"
+		"LIBPREFIX=${INSTALLED_LIBPREFIX}"
+		"MANPREFIX=${INSTALLED_MANPREFIX}"
+		"CC=$(tc-getCC)"
+		"ANSI_CFLAGS=${CFLAGS}"
+		"INSTRUMENT_BENCH=true"
+		"FORTRAN_INTERFACE=$(usex fortran likwid.mod false)"
+		"FC=$(usex fortran "${FC}" false)"
+		"FCFLAGS=-J ./ -fsyntax-only" # needed for building correctly
+	)
+	src_install_opts=(
+		"PREFIX=${D}${INSTALLED_PREFIX}"
+		"LIBPREFIX=${D}${INSTALLED_LIBPREFIX}"
+		"MANPREFIX=${D}${INSTALLED_MANPREFIX}"
+	)
+}
+
+src_compile() {
+	export_emake_opts
+	emake \
+		"${src_compile_opts[@]}" \
+		|| die 'emake failed'
+}
+
+src_install () {
+	export_emake_opts
+	emake \
+		"${src_compile_opts[@]}" \
+		"${src_install_opts[@]}" \
+		DESTDIR="${D}" \
+		install || die 'emake install failed'
+
+	use fortran && doheader likwid.mod
+
+	# Fix Python filter added shortly after 4.3.3
+	#python_fix_shebang "${D}"/usr/share/likwid/filter/
+
+	# Do NOT use 'doman'! The upstream 'make install' target does a sed as it's
+	# generating the final manpage to the real install dir; and the copies in
+	# ${S} are unmodified.
+	dodoc README.md CHANGELOG
+	dodoc doc/*.txt
+	dodoc doc/*.md
+	dodoc -r doc/applications doc/archs
+	# Fix upstream partial doc install
+	rm -rf "${D}"/usr/share/likwid/docs || die
+	ln -sf "/usr/share/doc/${PF}" "${D}"/usr/share/likwid/docs || die
+}
+
+pkg_preinst() {
+	# This is now a symlink, but used to be a plain directory
+	OLDDOCDIR=/usr/share/likwid/docs
+	if [[ ! -L "${OLDDOCDIR}" && -d "${OLDDOCDIR}" ]]; then
+		einfo "Cleaning up old docdir at ${OLDDOCDIR}"
+		rm -rf "${OLDDOCDIR}" || die
+	fi
+}
+
+pkg_postinst() {
+	fcaps_pkg_postinst
+	einfo "If you get 'Cannot gather values from MSR_PLATFORM_INFO', then 'modprobe msr'!"
+	einfo
+	ewarn "To enable users to access performance counters it is necessary to"
+	ewarn "change the access permissions to /dev/cpu/msr[0]* devices."
+	ewarn "It can be accomplished by adding the following line to file"
+	ewarn "/etc/udev/rules.d/99-myrules.rules: KERNEL==\"msr[0-9]*\" MODE=\"0666\""
+	ewarn "Alternatively, assign the MSR files to a unique group and use mode 0660"
+}


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/
@ 2023-07-02  5:20 Matthias Maier
  0 siblings, 0 replies; 11+ messages in thread
From: Matthias Maier @ 2023-07-02  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     55121850326fa7c30ecacdb20c9bdff599732cc4
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  2 05:17:48 2023 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Jul  2 05:19:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55121850

sys-apps/likwid: add 5.2.2

Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sys-apps/likwid/Manifest            |   1 +
 sys-apps/likwid/likwid-5.2.2.ebuild | 147 ++++++++++++++++++++++++++++++++++++
 2 files changed, 148 insertions(+)

diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest
index 0ad4fd9fba92..1f8bdfdbd74f 100644
--- a/sys-apps/likwid/Manifest
+++ b/sys-apps/likwid/Manifest
@@ -1,2 +1,3 @@
 DIST likwid-4.3.4.tar.gz 1584829 BLAKE2B dcd1c3a0c5e549dc3d22bb98120339521e270da55460f5af9f2fe04849af0fe1ac4d9b881883a4efc3695ceb087d1afad5bcc55b55543199d2c33b0f5012cc68 SHA512 f1ee930a98d160728078a81a2cdc798ec62ac484545ced937131e6a6443e5ac23b8e597d31c7b1b9f67c1169e1c662c366cf1098158cb467d9f7ff12946b08a2
 DIST likwid-5.2.1.tar.gz 2308041 BLAKE2B 1913212fb5157365a439757018ab58b4555e2b4401575ee05c784d038e13296644a7d0a89769599eef0444b13ed10f0357ad09b9cbae712f7d1fb9cca65fb1e3 SHA512 f096dcc071e976284c874aeb254dcb83c66ae808876a8c6be7b05e359d06800f1da25c01c072950c3493eb9ca10f6f9d81624feef61cc7a01f40fc0d003f98a7
+DIST likwid-5.2.2.tar.gz 2312420 BLAKE2B ceb5ee35fc266e6669f5a304bc222ae5fa598b76b0b2af9b37a214279033e8189f6c7726bdb41ad111f331a2fea52f6ff49cf190d7150b813ea651dbdc06d53f SHA512 5949933341092a1ccb81add47771c8e5613c9faef8650d70ed8e7f81cee4e6d87bc6838686873bd6270f4cfef3fd57d8a69b067f943134e4ac08c14664105d0d

diff --git a/sys-apps/likwid/likwid-5.2.2.ebuild b/sys-apps/likwid/likwid-5.2.2.ebuild
new file mode 100644
index 000000000000..9e9d5ae85a94
--- /dev/null
+++ b/sys-apps/likwid/likwid-5.2.2.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEEDED=fortran
+
+inherit fcaps fortran-2 linux-info toolchain-funcs
+
+DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
+HOMEPAGE="https://github.com/rrze-likwid/likwid"
+SRC_URI="https://ftp.fau.de/pub/likwid/${P}.tar.gz"
+
+LICENSE="GPL-3+ BSD MIT"
+
+SLOT="0"
+KEYWORDS="~amd64" # upstream partial support exists for x86 arm arm64
+IUSE="fortran"
+
+CDEPEND="dev-lang/perl"
+
+RDEPEND="${CDEPEND}"
+DEPEND="${CDEPEND}"
+
+CONFIG_CHECK="~X86_MSR"
+
+FILECAPS=(
+	-M 755 cap_sys_rawio+ep usr/sbin/likwid-accessD
+	--
+	-M 755 cap_sys_rawio+ep usr/sbin/likwid-setFreq
+)
+
+PATCHES=(
+	"${FILESDIR}/${PN}-4.3.1-fix-gnustack.patch"
+)
+
+pkg_setup() {
+	fortran-2_pkg_setup
+}
+
+src_prepare() {
+	# Ensure we build with a non executable stack
+	sed \
+		-e '/^SHARED_CFLAGS/s/$/ -Wa,--noexecstack/' \
+		-i make/include_{GCC*,CLANG}.mk \
+		|| die "Failed to set nonexecstack"
+
+	# Make the install targets respect Q= for being quiet or not
+	# MUCH easier for debugging
+	sed -r \
+		-e '/^install/,/^[a-z]/{/^\t@/{ s/@/$(Q)/; }}' \
+		-i \
+		Makefile || die "Failed to sed Makefile"
+
+	sed -i \
+		-e '/^\.NOTPARALLEL:/d' \
+		Makefile \
+		bench/Makefile \
+		ext/hwloc/Makefile || die "Failed to re-enable parallel"
+
+	default
+}
+
+export_emake_opts() {
+	# Warning: this build system uses PREFIX in a way that differs from
+	# autoconf! It's more like:
+	# PREFIX=$(DESTDIR)$(INSTALLED_PREFIX)
+	# it's not 100% like that, because parts of the Makefiles are inconsistent.
+	# this is the same solution used in the upstream RPM specs
+	# these variables are uppercase so they match what's put into Make.
+	local INSTALLED_PREFIX=/usr
+	local INSTALLED_LIBPREFIX=/usr/$(get_libdir) # upstream is '$(INSTALLED_PREFIX)/lib'
+	local INSTALLED_MANPREFIX=/usr/share/man # upstream has it as used but undefined variable.
+	# If the build is too loud, pass 'Q=@'
+	src_compile_opts=(
+		"Q="
+		"INSTALLED_PREFIX=${INSTALLED_PREFIX}"
+		"INSTALLED_LIBPREFIX=${INSTALLED_LIBPREFIX}"
+		"INSTALLED_MANPREFIX=${INSTALLED_MANPREFIX}"
+		"PREFIX=${INSTALLED_PREFIX}"
+		"LIBPREFIX=${INSTALLED_LIBPREFIX}"
+		"MANPREFIX=${INSTALLED_MANPREFIX}"
+		"CC=$(tc-getCC)"
+		"ANSI_CFLAGS=${CFLAGS}"
+		"INSTRUMENT_BENCH=true"
+		"FORTRAN_INTERFACE=$(usex fortran likwid.mod false)"
+		"FC=$(usex fortran "${FC}" false)"
+		"FCFLAGS=-J ./ -fsyntax-only" # needed for building correctly
+	)
+	src_install_opts=(
+		"PREFIX=${D}${INSTALLED_PREFIX}"
+		"LIBPREFIX=${D}${INSTALLED_LIBPREFIX}"
+		"MANPREFIX=${D}${INSTALLED_MANPREFIX}"
+	)
+}
+
+src_compile() {
+	export_emake_opts
+	emake \
+		"${src_compile_opts[@]}" \
+		|| die 'emake failed'
+}
+
+src_install () {
+	export_emake_opts
+	emake \
+		"${src_compile_opts[@]}" \
+		"${src_install_opts[@]}" \
+		DESTDIR="${D}" \
+		install || die 'emake install failed'
+
+	use fortran && doheader likwid.mod
+
+	# Fix Python filter added shortly after 4.3.3
+	#python_fix_shebang "${D}"/usr/share/likwid/filter/
+
+	# Do NOT use 'doman'! The upstream 'make install' target does a sed as it's
+	# generating the final manpage to the real install dir; and the copies in
+	# ${S} are unmodified.
+	dodoc README.md CHANGELOG
+	dodoc doc/*.txt
+	dodoc doc/*.md
+	dodoc -r doc/applications doc/archs
+	# Fix upstream partial doc install
+	rm -rf "${D}"/usr/share/likwid/docs || die
+	ln -sf "/usr/share/doc/${PF}" "${D}"/usr/share/likwid/docs || die
+}
+
+pkg_preinst() {
+	# This is now a symlink, but used to be a plain directory
+	OLDDOCDIR=/usr/share/likwid/docs
+	if [[ ! -L "${OLDDOCDIR}" && -d "${OLDDOCDIR}" ]]; then
+		einfo "Cleaning up old docdir at ${OLDDOCDIR}"
+		rm -rf "${OLDDOCDIR}" || die
+	fi
+}
+
+pkg_postinst() {
+	fcaps_pkg_postinst
+	einfo "If you get 'Cannot gather values from MSR_PLATFORM_INFO', then 'modprobe msr'!"
+	einfo
+	ewarn "To enable users to access performance counters it is necessary to"
+	ewarn "change the access permissions to /dev/cpu/msr[0]* devices."
+	ewarn "It can be accomplished by adding the following line to file"
+	ewarn "/etc/udev/rules.d/99-myrules.rules: KERNEL==\"msr[0-9]*\" MODE=\"0666\""
+	ewarn "Alternatively, assign the MSR files to a unique group and use mode 0660"
+}


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-07-02  5:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12  1:14 [gentoo-commits] repo/gentoo:master commit in: sys-apps/likwid/ Sam Jorna
  -- strict thread matches above, loose matches on Subject: below --
2023-07-02  5:20 Matthias Maier
2022-06-03  4:29 Matthias Maier
2019-04-28 21:03 Robin H. Johnson
2018-04-15 18:48 Patrice Clement
2016-11-02 16:19 Göktürk Yüksek
2016-07-19 16:54 Amy Winston
2016-04-20  9:14 Ian Delaney
2015-09-08  1:37 Ian Delaney
2015-09-01 20:06 Tobias Klausmann
2015-08-26  3:19 Matt Thode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox