commit: 55da92a78fb0bf296acf20a2b09ae8290c53426d Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Tue Apr 23 14:50:25 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Wed Apr 24 14:12:19 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=55da92a7
sci-physics/cernlib: Fix test failures Closes: https://github.com/gentoo/sci/pull/1268 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> ...-2023.10.31.0-r1.ebuild => cernlib-2023.10.31.0-r2.ebuild} | 11 +++++++++-- 1 file 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 similarity index 82% rename from sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild rename to 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 }
