commit:     f149ed13e8e2abfc5cab650e1b417a2a6eb7a50f
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  9 02:57:12 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Jul  9 03:08:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f149ed13

sci-physics/pythia: mark as LTO-unsafe

It's very old code. So old, in fact, that upstream doesn't support it
anymore and introduced a major new release series (which resulted in
adding an outright SLOT to the ebuild) to port it to C++. And that was
in 2012.

The error itself is, naturally, fortran related. :) :) So there is
simply no point in reporting this anywhere. The newer SLOT works fine.
Simply prevent LTO. Anyways, no one is using 6.x except "to allow older
published results to be reproduced, should the need arise". Free
permission to not care about LTO...

Closes: https://bugs.gentoo.org/927728
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sci-physics/pythia/pythia-6.4.28-r2.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/sci-physics/pythia/pythia-6.4.28-r2.ebuild 
b/sci-physics/pythia/pythia-6.4.28-r2.ebuild
index 01ffdc71dd71..14188ab9f6df 100644
--- a/sci-physics/pythia/pythia-6.4.28-r2.ebuild
+++ b/sci-physics/pythia/pythia-6.4.28-r2.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=7
 
-inherit autotools fortran-2
+inherit autotools flag-o-matic fortran-2
 
 MV=$(ver_cut 1)
 MY_PN=${PN}${MV}
@@ -70,6 +70,17 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/927728
+       #
+       # Fixed in SLOT 8, so no point in reporting it upstream or trying to fix
+       # it. The 6.x series is explicitly unsupported but graciously hosted 
"for
+       # reproduction of historic results".
+       #
+       # Anyway, the actual error is fortran related. The big feature of 8.x 
was
+       # porting to C++.
+       filter-lto
+
        econf --disable-static
 }
 

Reply via email to