From a07f997c521cf2a5ca2ebc755f53d0e1f5d358fe Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 6 May 2025 11:32:34 -0400 Subject: [PATCH] sys-apps/iproute2: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Signed-off-by: Eli Schwartz --- 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 dc463bb807cdb..1a434fec50efb 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 dcaf60620faf7..dfc30230bd455 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 }