commit:     845cbe2fef97ec5d8f0cb983ff075d2be9d72537
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Mar  6 03:37:57 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 05:29:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=845cbe2f

sci-libs/arpack: mark as LTO-unsafe

It fails in tests, but unfortunately that means we cannot... test...
compiling with LTO.

Closes: https://bugs.gentoo.org/878139
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/arpack/arpack-3.9.1.ebuild | 11 +++++++++--
 sci-libs/arpack/arpack-9999.ebuild  | 11 +++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/sci-libs/arpack/arpack-3.9.1.ebuild 
b/sci-libs/arpack/arpack-3.9.1.ebuild
index c3a10d3e5d15..fe8ac4dd7b91 100644
--- a/sci-libs/arpack/arpack-3.9.1.ebuild
+++ b/sci-libs/arpack/arpack-3.9.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools fortran-2 toolchain-funcs
+inherit autotools flag-o-matic fortran-2 toolchain-funcs
 
 DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems"
 HOMEPAGE="http://www.caam.rice.edu/software/ARPACK/ 
https://github.com/opencollab/arpack-ng";
@@ -39,6 +39,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/878139
+       # https://github.com/opencollab/arpack-ng/issues/451
+       #
+       # Only when building tests. Still this means we cannot test it.
+       filter-lto
+
        econf \
                --disable-static \
                --enable-icb \

diff --git a/sci-libs/arpack/arpack-9999.ebuild 
b/sci-libs/arpack/arpack-9999.ebuild
index 0388be81f2bc..97ecc817d3fc 100644
--- a/sci-libs/arpack/arpack-9999.ebuild
+++ b/sci-libs/arpack/arpack-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools fortran-2 toolchain-funcs
+inherit autotools flag-o-matic fortran-2 toolchain-funcs
 
 DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems"
 HOMEPAGE="http://www.caam.rice.edu/software/ARPACK/ 
https://github.com/opencollab/arpack-ng";
@@ -35,6 +35,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/878139
+       # https://github.com/opencollab/arpack-ng/issues/451
+       #
+       # Only when building tests. Still this means we cannot test it.
+       filter-lto
+
        econf \
                --disable-static \
                --enable-icb \

Reply via email to