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@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-07-08 22:57:12 -04:00
parent ef21f83344
commit f149ed13e8

View File

@@ -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
}