From 885db77dd4e3b095ea0b1e346bcac47d68ccd4cea819336a287ebfced8e9c33a Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 2 Jul 2025 16:08:50 +0000 Subject: [PATCH] - Reduce memory usage during build, removing lto=fat from Cargo.toml. bsc#1245526 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uv?expand=0&rev=80 --- python-uv.changes | 6 ++++++ python-uv.spec | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/python-uv.changes b/python-uv.changes index 7fa4ed8..7640109 100644 --- a/python-uv.changes +++ b/python-uv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 2 10:33:55 UTC 2025 - Daniel Garcia + +- Reduce memory usage during build, removing lto=fat from Cargo.toml. + bsc#1245526 + ------------------------------------------------------------------- Wed Jul 2 08:35:47 UTC 2025 - Ondřej Súkup diff --git a/python-uv.spec b/python-uv.spec index a986d89..79a52b7 100644 --- a/python-uv.spec +++ b/python-uv.spec @@ -103,8 +103,13 @@ drop-in replacement for common pip and pip-tools workflows. %prep %autosetup -p1 -a1 -n uv-%{version} +%ifnarch x86_64 +# Reduce memory consumption for non x86 arches +sed -i '/lto = "fat"/d' Cargo.toml +%endif %build +export LDFLAGS="--no-keep-memory" export CARGO_AUDITABLE="auditable" export CARGO_INCREMENTAL=0 export CARGO_FEATURE_VENDORED=1