From 71ddbfdcd300e23033a86673f303bdd4734db10a Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 2 May 2026 04:03:12 +0100 Subject: [PATCH] app-arch/lz4: use dot-a eclass ... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/968594 Signed-off-by: Sam James --- app-arch/lz4/lz4-1.10.0-r1.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app-arch/lz4/lz4-1.10.0-r1.ebuild b/app-arch/lz4/lz4-1.10.0-r1.ebuild index 8e94fbf76cdcc..abd9fa50120c3 100644 --- a/app-arch/lz4/lz4-1.10.0-r1.ebuild +++ b/app-arch/lz4/lz4-1.10.0-r1.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 meson-multilib +inherit dot-a meson-multilib DESCRIPTION="Extremely Fast Compression algorithm" HOMEPAGE="https://github.com/lz4/lz4" @@ -23,6 +23,11 @@ PATCHES=( "${FILESDIR}/${PV}-meson-do-not-force-c99-mode.patch" ) +src_configure() { + use static-libs && lto-guarantee-fat + multilib-minimal_src_configure +} + multilib_src_configure() { local emesonargs=( -Dtests=$(usex test true false) @@ -40,3 +45,8 @@ multilib_src_configure() { meson_src_configure } + +multilib_src_install_all() { + einstalldocs + strip-lto-bytecode +}