[packages/maturin] rely on python macros passing correct rust flags

atler atler at pld-linux.org
Sun Jun 22 21:07:49 CEST 2025


commit 231a320862cffd9a05580c01545728caf97a33b4
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Jun 22 19:55:44 2025 +0200

    rely on python macros passing correct rust flags
    
    avoid duplicating flags in every spec using python + rust during both
    build and installation.
    
    also makes sure PKG_CONFIG_ALLOW_CROSS is included as well

 maturin.spec | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/maturin.spec b/maturin.spec
index de5a090..751fd63 100644
--- a/maturin.spec
+++ b/maturin.spec
@@ -93,7 +93,6 @@ export CARGO_HOME="$(pwd)/.cargo"
 %cargo_build --frozen
 
 %if %{with python3}
-export RUSTFLAGS="%{rpmrustflags}"
 export MATURIN_SETUP_ARGS="%__cargo_common_opts --target %rust_target --target-dir %cargo_targetdir"
 %py3_build_pyproject
 %endif
@@ -105,7 +104,6 @@ export CARGO_HOME="$(pwd)/.cargo"
 %cargo_install --frozen --root $RPM_BUILD_ROOT%{_prefix} --path $(pwd)
 
 %if %{with python3}
-export RUSTFLAGS="%{rpmrustflags}"
 export MATURIN_SETUP_ARGS="%__cargo_common_opts --target %rust_target --target-dir %cargo_targetdir"
 %{__rm} $RPM_BUILD_ROOT%{_bindir}/maturin
 %py3_install_pyproject
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/maturin.git/commitdiff/20c49603aff59743ec0b551e80438e28d9fc8153



More information about the pld-cvs-commit mailing list