From c6da47d4cd7086cee6652af1c310ec93f5ac3038 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 7 Aug 2025 12:09:29 -0400 Subject: [PATCH] dev-debug/duma: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958427 Signed-off-by: Eli Schwartz --- dev-debug/duma/duma-2.5.15-r3.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-debug/duma/duma-2.5.15-r3.ebuild b/dev-debug/duma/duma-2.5.15-r3.ebuild index f0f76efd1d0c..2bf19cdf1383 100644 --- a/dev-debug/duma/duma-2.5.15-r3.ebuild +++ b/dev-debug/duma/duma-2.5.15-r3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit flag-o-matic toolchain-funcs +inherit dot-a flag-o-matic toolchain-funcs DESCRIPTION="DUMA (Detect Unintended Memory Access) is a memory debugging library" HOMEPAGE="http://duma.sourceforge.net" @@ -22,6 +22,7 @@ PATCHES=( ) src_configure() { + lto-guarantee-fat # other flags will break duma export CFLAGS="-O0 -Wall -Wextra -U_FORTIFY_SOURCE" tc-export AR CC CXX LD RANLIB @@ -63,6 +64,7 @@ src_test() { src_install() { emake prefix="${ED}/usr" libdir="${ED}/usr/$(get_libdir)" \ docdir="${ED}/usr/share/doc/${PF}" install + strip-lto-bytecode sed -i "s|LD_PRELOAD=./libduma|LD_PRELOAD=libduma|" "${D}"/usr/bin/duma \ || die "sed failed"