aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-04-23 16:50:25 +0200
committerAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-04-24 16:12:19 +0200
commit55da92a78fb0bf296acf20a2b09ae8290c53426d (patch)
treef392c71a77a06300ca79caa3423b3d73839c09dc /sci-physics
parentpackage.mask: mask multiqc and nipype (diff)
downloadsci-55da92a78fb0bf296acf20a2b09ae8290c53426d.tar.gz
sci-55da92a78fb0bf296acf20a2b09ae8290c53426d.tar.bz2
sci-55da92a78fb0bf296acf20a2b09ae8290c53426d.zip
sci-physics/cernlib: Fix test failures
Closes: https://github.com/gentoo/sci/pull/1268 Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/cernlib/cernlib-2023.10.31.0-r2.ebuild (renamed from sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild)11
1 files changed, 9 insertions, 2 deletions
diff --git a/sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild b/sci-physics/cernlib/cernlib-2023.10.31.0-r2.ebuild
index c5c919678..93220dffb 100644
--- a/sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild
+++ b/sci-physics/cernlib/cernlib-2023.10.31.0-r2.ebuild
@@ -1,7 +1,7 @@
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
-inherit cmake fortran-2
+inherit cmake fortran-2 flag-o-matic
DESCRIPTION="CERN program library for High Energy Physics"
HOMEPAGE="https://cernlib.web.cern.ch/cernlib/"
@@ -16,7 +16,8 @@ LICENSE="
"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+free"
+# static-libs as default since otherwise test fail...
+IUSE="+free +static-libs"
RESTRICT="mirror"
RDEPEND="
@@ -59,6 +60,12 @@ src_configure() {
# docs follow rpm like spliting into packages cernlib, cernlib-devel, etc.
# we move them into a folder that agrees with gentoo doc structure.
sed -i "s#/doc/#/doc/${PF}/#g" CMakeLists.txt || die
+ # with -O2 some tests fail
+ # let upstream decide on optimization (-O0) since code is fragile
+ filter-flags -O1 -O2 -O3 -Os -Oz -Og -Ofast
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=$(usex static-libs OFF ON)
+ )
cmake_src_configure
}