From af2e7ef90af5c37f4cd561ff3bb1053b3aeee2d4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 5 Aug 2024 14:46:02 -0400 Subject: [PATCH] sci-libs/gsl: mark as LTO-unsafe It appears to be fixed in 2.8 but the package is high-maintenance due to required patching. Filter it for now and drop the filter when updating to the new version. Closes: https://bugs.gentoo.org/927585 Signed-off-by: Eli Schwartz --- sci-libs/gsl/gsl-2.7.1-r2.ebuild | 8 +++++++- sci-libs/gsl/gsl-2.7.1-r3.ebuild | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sci-libs/gsl/gsl-2.7.1-r2.ebuild b/sci-libs/gsl/gsl-2.7.1-r2.ebuild index 62c11d0d8578f..ddc7239a72ceb 100644 --- a/sci-libs/gsl/gsl-2.7.1-r2.ebuild +++ b/sci-libs/gsl/gsl-2.7.1-r2.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 @@ -36,6 +36,12 @@ src_prepare() { } src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/927585 + # + # Testsuite issue. Seems fixed in 2.8. + filter-lto + filter-flags -ffast-math if use cblas-external; then diff --git a/sci-libs/gsl/gsl-2.7.1-r3.ebuild b/sci-libs/gsl/gsl-2.7.1-r3.ebuild index 81205249e8734..e3b8d92fe4849 100644 --- a/sci-libs/gsl/gsl-2.7.1-r3.ebuild +++ b/sci-libs/gsl/gsl-2.7.1-r3.ebuild @@ -37,6 +37,12 @@ src_prepare() { } src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/927585 + # + # Testsuite issue. Seems fixed in 2.8. + filter-lto + filter-flags -ffast-math if use cblas-external; then