commit: 7a22c2f516a040791e5df66e34301a837117263d
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May 6 16:53:15 2025 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May 6 17:40:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a22c2f5
sys-apps/dtc: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO.
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
sys-apps/dtc/dtc-1.7.2-r2.ebuild | 4 +++-
sys-apps/dtc/dtc-9999.ebuild | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sys-apps/dtc/dtc-1.7.2-r2.ebuild b/sys-apps/dtc/dtc-1.7.2-r2.ebuild
index 0ee4b6bdc8c7..472d035d31e9 100644
--- a/sys-apps/dtc/dtc-1.7.2-r2.ebuild
+++ b/sys-apps/dtc/dtc-1.7.2-r2.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
-inherit meson python-single-r1
+inherit dot-a meson python-single-r1
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
@@ -61,6 +61,7 @@ pkg_setup() {
}
src_configure() {
+ use static-libs && lto-guarantee-fat
local emesonargs=(
-Dtools=true
-Dvalgrind=disabled # only used for some tests
@@ -78,6 +79,7 @@ src_install() {
# bug #907940
rm "${ED}/usr/$(get_libdir)"/*.a || die
fi
+ strip-lto-bytecode
use python && python_optimize "${ED}"
}
diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild
index 0d0226033d67..1d6995af84e3 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
-inherit meson python-single-r1
+inherit dot-a meson python-single-r1
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/dtc/dtc.git"
@@ -56,6 +56,7 @@ pkg_setup() {
}
src_configure() {
+ use static-libs && lto-guarantee-fat
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
-Dtools=true
@@ -70,6 +71,7 @@ src_configure() {
src_install() {
meson_src_install
+ strip-lto-bytecode
use python && python_optimize "${ED}"
}