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@gentoo.org>
This commit is contained in:
Eli Schwartz 2025-08-19 14:50:44 -04:00
parent a8214d2d07
commit d83fe0bdf9
No known key found for this signature in database
GPG Key ID: 84A7D12B700D2F57
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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