From 5401a0bca754883a3466da1c35ccabab423190ee Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Sat, 9 Mar 2024 17:47:10 +0100 Subject: sci-physics/root: filter lto flags, bug #879323 Closes: https://bugs.gentoo.org/879323 Signed-off-by: Guilherme Amadio --- sci-physics/root/root-6.28.12.ebuild | 5 ++++- sci-physics/root/root-6.30.04.ebuild | 5 ++++- sci-physics/root/root-6.30.9999.ebuild | 7 +++++-- sci-physics/root/root-9999.ebuild | 7 +++++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/sci-physics/root/root-6.28.12.ebuild b/sci-physics/root/root-6.28.12.ebuild index 5f308e286c0a..47324a37ee7d 100644 --- a/sci-physics/root/root-6.28.12.ebuild +++ b/sci-physics/root/root-6.28.12.ebuild @@ -8,7 +8,7 @@ CMAKE_MAKEFILE_GENERATOR=emake FORTRAN_NEEDED="fortran" PYTHON_COMPAT=( python3_{9..12} ) -inherit cmake cuda fortran-2 python-single-r1 toolchain-funcs +inherit cmake cuda flag-o-matic fortran-2 python-single-r1 toolchain-funcs DESCRIPTION="C++ data analysis framework and interpreter from CERN" HOMEPAGE="https://root.cern" @@ -168,6 +168,9 @@ src_prepare() { # with vanilla clang. The patches enable the C++ interpreter to work. src_configure() { + + filter-lto # https://bugs.gentoo.org/879323 + local mycmakeargs=( -DCMAKE_C_COMPILER="$(tc-getCC)" -DCMAKE_CXX_COMPILER="$(tc-getCXX)" diff --git a/sci-physics/root/root-6.30.04.ebuild b/sci-physics/root/root-6.30.04.ebuild index 5f308e286c0a..47324a37ee7d 100644 --- a/sci-physics/root/root-6.30.04.ebuild +++ b/sci-physics/root/root-6.30.04.ebuild @@ -8,7 +8,7 @@ CMAKE_MAKEFILE_GENERATOR=emake FORTRAN_NEEDED="fortran" PYTHON_COMPAT=( python3_{9..12} ) -inherit cmake cuda fortran-2 python-single-r1 toolchain-funcs +inherit cmake cuda flag-o-matic fortran-2 python-single-r1 toolchain-funcs DESCRIPTION="C++ data analysis framework and interpreter from CERN" HOMEPAGE="https://root.cern" @@ -168,6 +168,9 @@ src_prepare() { # with vanilla clang. The patches enable the C++ interpreter to work. src_configure() { + + filter-lto # https://bugs.gentoo.org/879323 + local mycmakeargs=( -DCMAKE_C_COMPILER="$(tc-getCC)" -DCMAKE_CXX_COMPILER="$(tc-getCXX)" diff --git a/sci-physics/root/root-6.30.9999.ebuild b/sci-physics/root/root-6.30.9999.ebuild index 831e28f81da0..47324a37ee7d 100644 --- a/sci-physics/root/root-6.30.9999.ebuild +++ b/sci-physics/root/root-6.30.9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -8,7 +8,7 @@ CMAKE_MAKEFILE_GENERATOR=emake FORTRAN_NEEDED="fortran" PYTHON_COMPAT=( python3_{9..12} ) -inherit cmake cuda fortran-2 python-single-r1 toolchain-funcs +inherit cmake cuda flag-o-matic fortran-2 python-single-r1 toolchain-funcs DESCRIPTION="C++ data analysis framework and interpreter from CERN" HOMEPAGE="https://root.cern" @@ -168,6 +168,9 @@ src_prepare() { # with vanilla clang. The patches enable the C++ interpreter to work. src_configure() { + + filter-lto # https://bugs.gentoo.org/879323 + local mycmakeargs=( -DCMAKE_C_COMPILER="$(tc-getCC)" -DCMAKE_CXX_COMPILER="$(tc-getCXX)" diff --git a/sci-physics/root/root-9999.ebuild b/sci-physics/root/root-9999.ebuild index 831e28f81da0..47324a37ee7d 100644 --- a/sci-physics/root/root-9999.ebuild +++ b/sci-physics/root/root-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -8,7 +8,7 @@ CMAKE_MAKEFILE_GENERATOR=emake FORTRAN_NEEDED="fortran" PYTHON_COMPAT=( python3_{9..12} ) -inherit cmake cuda fortran-2 python-single-r1 toolchain-funcs +inherit cmake cuda flag-o-matic fortran-2 python-single-r1 toolchain-funcs DESCRIPTION="C++ data analysis framework and interpreter from CERN" HOMEPAGE="https://root.cern" @@ -168,6 +168,9 @@ src_prepare() { # with vanilla clang. The patches enable the C++ interpreter to work. src_configure() { + + filter-lto # https://bugs.gentoo.org/879323 + local mycmakeargs=( -DCMAKE_C_COMPILER="$(tc-getCC)" -DCMAKE_CXX_COMPILER="$(tc-getCXX)" -- cgit v1.2.3-65-gdbad