commit:     116e12fab7100e225a4ad03240293a333aaf222e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 12 10:34:30 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 10:44:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116e12fa

dev-python/uv: Use thin LTO instead of fat

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/uv/uv-0.6.10.ebuild | 4 ++++
 dev-python/uv/uv-0.6.13.ebuild | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/dev-python/uv/uv-0.6.10.ebuild b/dev-python/uv/uv-0.6.10.ebuild
index 7b969d86fd6c..a84c1fd65892 100644
--- a/dev-python/uv/uv-0.6.10.ebuild
+++ b/dev-python/uv/uv-0.6.10.ebuild
@@ -90,6 +90,10 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # force thin lto, makes build much faster and less memory hungry
+       # (i.e. makes it possible to actually build uv on 32-bit PPC)
+       sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
+
        # enable system libraries where supported
        export ZSTD_SYS_USE_PKG_CONFIG=1
        # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?

diff --git a/dev-python/uv/uv-0.6.13.ebuild b/dev-python/uv/uv-0.6.13.ebuild
index 44cb91d40951..fa89cd13ee49 100644
--- a/dev-python/uv/uv-0.6.13.ebuild
+++ b/dev-python/uv/uv-0.6.13.ebuild
@@ -90,6 +90,10 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # force thin lto, makes build much faster and less memory hungry
+       # (i.e. makes it possible to actually build uv on 32-bit PPC)
+       sed -i -e '/lto/s:fat:thin:' Cargo.toml || die
+
        # enable system libraries where supported
        export ZSTD_SYS_USE_PKG_CONFIG=1
        # TODO: unbundle libz-ng-sys, tikv-jemalloc-sys?

Reply via email to