commit:     9886fb6e3a70afd01458f0d829544a6133f20dce
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 13 06:01:58 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Jun 13 07:16:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9886fb6e

media-libs/lvtk: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Closes: https://bugs.gentoo.org/957963
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 media-libs/lvtk/lvtk-1.2.0-r2.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/media-libs/lvtk/lvtk-1.2.0-r2.ebuild 
b/media-libs/lvtk/lvtk-1.2.0-r2.ebuild
index b30ada57dd81..bb4bb250aebd 100644
--- a/media-libs/lvtk/lvtk-1.2.0-r2.ebuild
+++ b/media-libs/lvtk/lvtk-1.2.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{9..13} )
 PYTHON_REQ_USE="threads(+)"
 
-inherit python-single-r1 waf-utils
+inherit dot-a python-single-r1 waf-utils
 
 WAF_VER=2.0.20
 
@@ -43,6 +43,8 @@ src_unpack() {
 }
 
 src_configure() {
+       lto-guarantee-fat
+
        local mywafconfargs=(
                "--docdir=${EPREFIX}/usr/share/doc/${PF}"
                "--lv2dir=${EPREFIX}/usr/$(get_libdir)/lv2"
@@ -58,6 +60,8 @@ src_configure() {
 src_install() {
        waf-utils_src_install
 
+       strip-lto-bytecode
+
        # It does not respect docdir properly, reported upstream
        if use doc; then
                mv "${ED}/usr/share/doc/${PF}/lvtk-1/html" 
"${ED}/usr/share/doc/${PF}/html" || die

Reply via email to