sci-libs/coinor-dylp: mark as LTO-unsafe

It fails to compile correctly, tests fail, and the resulting library
fails to link when other packages try to use it. The reason is because
it checks for a SunOS symbol using an ancient autotools version that
relies on UB to detect whether it exists, then tries to link to it.

Upgrading autotools is complicated and the software is deprecated and in
maintenance mode, so no telling when it may be released. There are
commits in git master to update it but they are intermingled with
updating to unreleased dependency versions?

Closes: https://bugs.gentoo.org/862696
Closes: https://bugs.gentoo.org/878141
Closes: https://bugs.gentoo.org/878143
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-09-03 17:23:01 -04:00
parent 8756b866ab
commit 25c2cc32ea

View File

@@ -5,7 +5,7 @@ EAPI=8
MY_PN=DyLP
inherit libtool
inherit flag-o-matic libtool
DESCRIPTION="COIN-OR dynamic simplex linear program solver"
HOMEPAGE="https://github.com/coin-or/DyLP/"
@@ -49,6 +49,11 @@ src_prepare() {
}
src_configure() {
# heavily vintage autotools relies on UB to detect SunOS
# https://bugs.gentoo.org/878143
# https://github.com/coin-or/DyLP/issues/27
filter-lto
local myeconfargs=(
--enable-dependency-linking
--with-coin-instdir="${ED}"/usr