commit:     a07f997c521cf2a5ca2ebc755f53d0e1f5d358fe
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 15:32:34 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May  6 17:40:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a07f997c

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

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

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sys-apps/iproute2/iproute2-6.14.0.ebuild | 4 +++-
 sys-apps/iproute2/iproute2-9999.ebuild   | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys-apps/iproute2/iproute2-6.14.0.ebuild 
b/sys-apps/iproute2/iproute2-6.14.0.ebuild
index dc463bb807cd..1a434fec50ef 100644
--- a/sys-apps/iproute2/iproute2-6.14.0.ebuild
+++ b/sys-apps/iproute2/iproute2-6.14.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit edo toolchain-funcs flag-o-matic
+inherit dot-a edo toolchain-funcs flag-o-matic
 
 if [[ ${PV} == 9999 ]] ; then
        
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git";
@@ -86,6 +86,7 @@ src_prepare() {
 
 src_configure() {
        tc-export AR CC PKG_CONFIG
+       lto-guarantee-fat
 
        # This sure is ugly. Should probably move into toolchain-funcs at some 
point.
        local setns
@@ -210,4 +211,5 @@ src_install() {
        elif [[ -d "${ED}"/var/lib/arpd ]]; then
                rmdir --ignore-fail-on-non-empty -p "${ED}"/var/lib/arpd || die
        fi
+       strip-lto-bytecode
 }

diff --git a/sys-apps/iproute2/iproute2-9999.ebuild 
b/sys-apps/iproute2/iproute2-9999.ebuild
index dcaf60620faf..dfc30230bd45 100644
--- a/sys-apps/iproute2/iproute2-9999.ebuild
+++ b/sys-apps/iproute2/iproute2-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit edo toolchain-funcs flag-o-matic
+inherit dot-a edo toolchain-funcs flag-o-matic
 
 if [[ ${PV} == 9999 ]] ; then
        
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git";
@@ -86,6 +86,7 @@ src_prepare() {
 
 src_configure() {
        tc-export AR CC PKG_CONFIG
+       lto-guarantee-fat
 
        # This sure is ugly. Should probably move into toolchain-funcs at some 
point.
        local setns
@@ -210,4 +211,5 @@ src_install() {
        elif [[ -d "${ED}"/var/lib/arpd ]]; then
                rmdir --ignore-fail-on-non-empty -p "${ED}"/var/lib/arpd || die
        fi
+       strip-lto-bytecode
 }

Reply via email to