commit:     af2e7ef90af5c37f4cd561ff3bb1053b3aeee2d4
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  5 18:46:02 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 00:18:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af2e7ef9

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 <eschwartz <AT> gentoo.org>

 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 62c11d0d8578..ddc7239a72ce 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 81205249e873..e3b8d92fe484 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

Reply via email to