[packages/uv] Another try to get this linking on x32/i686

arekm arekm at pld-linux.org
Fri May 1 02:06:43 CEST 2026


commit 75a88b2c942b2eaf829491c2a70667b1fc842cdb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri May 1 02:06:37 2026 +0200

    Another try to get this linking on x32/i686

 uv.spec | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/uv.spec b/uv.spec
index a96caa5..0fc25e1 100644
--- a/uv.spec
+++ b/uv.spec
@@ -4,6 +4,13 @@
 #
 %define		crates_ver	%{version}
 
+# 32-bit linkers can't fit uv's debug info into the ~3 GB process
+# address space, so drop debuginfo and the -debuginfo/-debugsource
+# subpackages on 32-bit only.
+%ifarch %{ix86} %{arm} x32
+%define		_enable_debug_packages	0
+%endif
+
 Summary:	An extremely fast Python package and project manager
 Summary(pl.UTF-8):	Bardzo szybki menedżer pakietów i projektów Pythonowych
 Name:		uv
@@ -113,6 +120,9 @@ export CARGO_TERM_VERBOSE=true
 export CARGO_BUILD_TARGET=x86_64-unknown-linux-gnux32
 export PKG_CONFIG_ALLOW_CROSS=1
 %endif
+%ifarch %{ix86} %{arm} x32
+export RUSTFLAGS="-C debuginfo=0 -C strip=none"
+%endif
 
 %cargo_build --frozen --bin uv --bin uvx
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/uv.git/commitdiff/75a88b2c942b2eaf829491c2a70667b1fc842cdb



More information about the pld-cvs-commit mailing list