commit:     956f65d78d5fb3468a3cf31b19e7f08e4f9afb34
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 02:43:22 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 19:53:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956f65d7

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 <AT> gentoo.org>

 net-libs/netwib/netwib-5.39.0-r1.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-libs/netwib/netwib-5.39.0-r1.ebuild 
b/net-libs/netwib/netwib-5.39.0-r1.ebuild
index 00c9aa0e1237..4535f6c5c12f 100644
--- a/net-libs/netwib/netwib-5.39.0-r1.ebuild
+++ b/net-libs/netwib/netwib-5.39.0-r1.ebuild
@@ -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 \

Reply via email to