From 25c2cc32eaa4dee3d227ffb0665a1f1ac83c9249 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 3 Sep 2024 17:23:01 -0400 Subject: [PATCH] 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 --- sci-libs/coinor-dylp/coinor-dylp-1.10.4-r1.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sci-libs/coinor-dylp/coinor-dylp-1.10.4-r1.ebuild b/sci-libs/coinor-dylp/coinor-dylp-1.10.4-r1.ebuild index 2fb4758ebad7e..35272e7866489 100644 --- a/sci-libs/coinor-dylp/coinor-dylp-1.10.4-r1.ebuild +++ b/sci-libs/coinor-dylp/coinor-dylp-1.10.4-r1.ebuild @@ -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