commit: d83fe0bdf9ce288d1e23362f7cc7496a0086d6fa Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Tue Aug 19 18:50:44 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Tue Aug 19 19:06:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d83fe0bd
app-emulation/libguestfs: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958907 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> app-emulation/libguestfs/libguestfs-1.54.1-r1.ebuild | 8 +++++++- app-emulation/libguestfs/libguestfs-1.55.13.ebuild | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app-emulation/libguestfs/libguestfs-1.54.1-r1.ebuild b/app-emulation/libguestfs/libguestfs-1.54.1-r1.ebuild index 238d5b523b18..0c9445eebcf9 100644 --- a/app-emulation/libguestfs/libguestfs-1.54.1-r1.ebuild +++ b/app-emulation/libguestfs/libguestfs-1.54.1-r1.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{10..13} ) USE_RUBY=( ruby3{2..3} ) LUA_COMPAT=( lua5-{1..4} luajit ) -inherit autotools bash-completion-r1 linux-info lua-single perl-functions\ +inherit autotools bash-completion-r1 dot-a linux-info lua-single perl-functions\ python-single-r1 ruby-single toolchain-funcs vala MY_PV_1="$(ver_cut 1-2)" @@ -150,6 +150,10 @@ src_configure() { # Bug #915339 unset LEX YACC + if use ocaml || use static-libs; then + lto-guarantee-fat + fi + local myconf=( --disable-appliance --disable-daemon @@ -193,6 +197,8 @@ src_configure() { src_install() { emake INSTALLDIRS=vendor DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" + # ocaml always installs a static lib even without USE=static-libs + strip-lto-bytecode "${ED}" find "${ED}" -name '*.la' -delete || die diff --git a/app-emulation/libguestfs/libguestfs-1.55.13.ebuild b/app-emulation/libguestfs/libguestfs-1.55.13.ebuild index ac53014c3a09..703f09786b4d 100644 --- a/app-emulation/libguestfs/libguestfs-1.55.13.ebuild +++ b/app-emulation/libguestfs/libguestfs-1.55.13.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{10..13} ) USE_RUBY=( ruby3{2..3} ) LUA_COMPAT=( lua5-{1..4} luajit ) -inherit autotools bash-completion-r1 linux-info lua-single perl-functions\ +inherit autotools bash-completion-r1 dot-a linux-info lua-single perl-functions\ python-single-r1 ruby-single toolchain-funcs vala MY_PV_1="$(ver_cut 1-2)" @@ -150,6 +150,10 @@ src_configure() { # Bug #915339 unset LEX YACC + if use ocaml || use static-libs; then + lto-guarantee-fat + fi + local myconf=( --disable-appliance --disable-daemon @@ -193,6 +197,8 @@ src_configure() { src_install() { emake INSTALLDIRS=vendor DESTDIR="${D}" install "LINGUAS=""${LINGUAS}""" + # ocaml always installs a static lib even without USE=static-libs + strip-lto-bytecode "${ED}" find "${ED}" -name '*.la' -delete || die
