net-libs/netwib: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Does feel a bit silly since the package has no outputs other than this
static lib, basically. There's nothing to benefit from lto at all. I was
convinced by Sam to *not* use filter-lto instead, because filter-lto
will corrupt grep if used for things that aren't actually *broken*.

Closes: https://bugs.gentoo.org/958462
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2025-08-04 22:43:22 -04:00
parent d991d7f854
commit 956f65d78d

View File

@@ -1,11 +1,11 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# NOTE: netwib, netwox and netwag go together, bump all or bump none
EAPI=8
inherit toolchain-funcs
inherit dot-a toolchain-funcs
DESCRIPTION="Library of Ethernet, IP, UDP, TCP, ICMP, ARP and RARP protocols"
HOMEPAGE="
@@ -37,12 +37,15 @@ src_configure() {
tc-export AR CC RANLIB
sed -e "s:/lib:/$(get_libdir):" \
-i config.dat || die
# the only package output is static libs
lto-guarantee-fat
sh genemake || die
}
src_install() {
default
strip-lto-bytecode
dodoc \
../README.TXT \