[packages/python3-ruff] Rel 2. Use thin LTO on ix86
arekm
arekm at pld-linux.org
Sat Oct 10 16:19:11 CEST 2026
commit 603239d0fc424f4e40ba1b9e9c8818cdfe73aa0b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Oct 10 16:18:31 2026 +0200
Rel 2. Use thin LTO on ix86
python3-ruff.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/python3-ruff.spec b/python3-ruff.spec
index eed0594..3a86851 100644
--- a/python3-ruff.spec
+++ b/python3-ruff.spec
@@ -2,7 +2,7 @@ Summary: An extremely fast Python linter and code formatter, written in Rust
Summary(pl.UTF-8): Bardzo szybki linter i formater kodu dla Pythona, napisany w języku Rust
Name: python3-ruff
Version: 0.17.0
-Release: 1
+Release: 2
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/ruff/
@@ -55,6 +55,10 @@ 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
+%endif
export CARGO_HOME="$(pwd)/.cargo"
export CARGO_OFFLINE=true
export RUSTFLAGS="%{rpmrustflags}"
@@ -70,6 +74,10 @@ export PYO3_CROSS_LIB_DIR=%{_libdir}
%install
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
+%endif
export CARGO_HOME="$(pwd)/.cargo"
export CARGO_OFFLINE=true
export RUSTFLAGS="%{rpmrustflags}"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-ruff.git/commitdiff/603239d0fc424f4e40ba1b9e9c8818cdfe73aa0b
More information about the pld-cvs-commit
mailing list