commit: 7052e53c8bf86ba09e6f88808652279767f1597e Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Thu Mar 5 07:50:42 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 7 01:24:57 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7052e53c
dev-libs/snowball-stemmer: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/229 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild b/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild index 0846d31f2ba4..ce53afb68687 100644 --- a/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild +++ b/dev-libs/snowball-stemmer/snowball-stemmer-3.0.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit toolchain-funcs +inherit dot-a toolchain-funcs MY_TESTDATA_COMMIT="381b447563f9bef87b218ebbedde3159afdc3032" @@ -27,6 +27,11 @@ PATCHES=( "${FILESDIR}/${P}-shared-library.patch" ) +src_configure() { + use static-libs && lto-guarantee-fat + default +} + src_compile() { tc-export CC AR default @@ -47,5 +52,8 @@ src_install() { dolib.so libstemmer.so.$(ver_cut 1) dolib.so libstemmer.so - use static-libs && dolib.a libstemmer.a + if use static-libs; then + dolib.a libstemmer.a + strip-lto-bytecode + fi }
