public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Eli Schwartz" <eschwartz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/netwib/
Date: Tue, 05 Aug 2025 20:01:06 +0000 (UTC)	[thread overview]
Message-ID: <1754423608.956f65d78d5fb3468a3cf31b19e7f08e4f9afb34.eschwartz@gentoo> (raw)

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	other threads:[~2025-08-05 20:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-05 20:01 Eli Schwartz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-05 20:01 [gentoo-commits] repo/gentoo:master commit in: net-libs/netwib/ Eli Schwartz
2021-11-29 19:49 Jakov Smolić

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1754423608.956f65d78d5fb3468a3cf31b19e7f08e4f9afb34.eschwartz@gentoo \
    --to=eschwartz@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox