commit:     eacd5a2afcfef1294f49649fe9c2947fe9f976b8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 18:02:41 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May  6 18:02:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eacd5a2a

sys-apps/attr: use dot-a.eclass

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

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/attr/attr-2.5.2-r1.ebuild | 7 +++++--
 sys-apps/attr/attr-9999.ebuild     | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/sys-apps/attr/attr-2.5.2-r1.ebuild 
b/sys-apps/attr/attr-2.5.2-r1.ebuild
index a055cb13a557..c4b9fddfcf5f 100644
--- a/sys-apps/attr/attr-2.5.2-r1.ebuild
+++ b/sys-apps/attr/attr-2.5.2-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit multilib-minimal
+inherit dot-a multilib-minimal
 
 if [[ ${PV} == 9999 ]] ; then
        EGIT_REPO_URI="https://git.savannah.gnu.org/git/${PN}.git";
@@ -42,6 +42,8 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       lto-guarantee-fat
+
        local myeconfargs=(
                --bindir="${EPREFIX}"/bin
                --libexecdir="${EPREFIX}"/usr/$(get_libdir)
@@ -68,5 +70,6 @@ multilib_src_install_all() {
                find "${ED}" -name '*.la' -delete || die
        fi
 
+       strip-lto-bytecode
        einstalldocs
 }

diff --git a/sys-apps/attr/attr-9999.ebuild b/sys-apps/attr/attr-9999.ebuild
index 35f3c75e8223..7be8efa71e41 100644
--- a/sys-apps/attr/attr-9999.ebuild
+++ b/sys-apps/attr/attr-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit multilib-minimal
+inherit dot-a multilib-minimal
 
 if [[ ${PV} == 9999 ]] ; then
        EGIT_REPO_URI="https://git.savannah.gnu.org/git/${PN}.git";
@@ -42,6 +42,8 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       lto-guarantee-fat
+
        local myeconfargs=(
                --bindir="${EPREFIX}"/bin
                --libexecdir="${EPREFIX}"/usr/$(get_libdir)
@@ -68,5 +70,6 @@ multilib_src_install_all() {
                find "${ED}" -name '*.la' -delete || die
        fi
 
+       strip-lto-bytecode
        einstalldocs
 }

Reply via email to