[packages/python3-ruff] Disable LTO on ix86 - thin LTO still exhausts the 32-bit rustc address space.

arekm arekm at pld-linux.org
Sat Oct 10 16:43:59 CEST 2026


commit 03284152a490f9801092066f7aac946144bd3db9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 10 16:43:18 2026 +0200

    Disable LTO on ix86 - thin LTO still exhausts the 32-bit rustc address space.

 python3-ruff.spec | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python3-ruff.spec b/python3-ruff.spec
index 3a86851..4fd908a 100644
--- a/python3-ruff.spec
+++ b/python3-ruff.spec
@@ -56,8 +56,8 @@ EOF
 %build
 export CARGO_BUILD_JOBS="%{__jobs}"
 %ifarch %{ix86}
-# fat LTO with PLD's forced debuginfo exceeds the 32-bit rustc address space
-export CARGO_PROFILE_RELEASE_LTO=thin
+# fat and thin LTO of the ruff binary with PLD's forced debuginfo exceed the 32-bit rustc address space
+export CARGO_PROFILE_RELEASE_LTO=off
 %endif
 export CARGO_HOME="$(pwd)/.cargo"
 export CARGO_OFFLINE=true
@@ -75,8 +75,8 @@ export PYO3_CROSS_LIB_DIR=%{_libdir}
 rm -rf $RPM_BUILD_ROOT
 
 %ifarch %{ix86}
-# fat LTO with PLD's forced debuginfo exceeds the 32-bit rustc address space
-export CARGO_PROFILE_RELEASE_LTO=thin
+# fat and thin LTO of the ruff binary with PLD's forced debuginfo exceed the 32-bit rustc address space
+export CARGO_PROFILE_RELEASE_LTO=off
 %endif
 export CARGO_HOME="$(pwd)/.cargo"
 export CARGO_OFFLINE=true
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-ruff.git/commitdiff/03284152a490f9801092066f7aac946144bd3db9



More information about the pld-cvs-commit mailing list