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 <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz 2025-08-07 12:09:29 -04:00
parent 1c207e714a
commit c6da47d4cd
No known key found for this signature in database
GPG Key ID: 84A7D12B700D2F57

View File

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