[packages/rust] - add some x32 specific prep stuff

baggins baggins at pld-linux.org
Sun Oct 20 23:52:44 CEST 2019


commit 72bb58443c54c7dc043ee019b8e03f5465303e86
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Oct 20 23:51:22 2019 +0200

    - add some x32 specific prep stuff

 rust.spec | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/rust.spec b/rust.spec
index 8cf322a..7bc9d73 100644
--- a/rust.spec
+++ b/rust.spec
@@ -217,12 +217,19 @@ Dopełnianie parametrów polecenia cargo w powłoce Zsh.
 %setup -q -n %{rustc_package}
 
 %if %{with bootstrap}
-%ifarch %{x8664} x32
+%ifarch %{x8664}
 tar xf %{SOURCE1}
 %endif
 %ifarch %{ix86}
 tar xf %{SOURCE2}
 %endif
+%ifarch x32
+tar xf %{SOURCE1}
+cd %{bootstrap_root}
+tar xf %{SOURCE3}
+%{__mv} rust-std-%{bootstrap_rust}-%{rust_triple} rust-std-%{rust_triple}
+cd ..
+%endif
 %{__mv} %{bootstrap_root} %{bootstrap_root}-root
 %{bootstrap_root}-root/install.sh \
 	--components=cargo,rustc,rust-std-%{rust_bootstrap_triple} \
@@ -230,6 +237,12 @@ tar xf %{SOURCE2}
 	--disable-ldconfig
 test -f %{local_rust_root}/bin/cargo
 test -f %{local_rust_root}/bin/rustc
+%ifarch x32
+%{bootstrap_root}-root/rust-std-%{rust_triple}/install.sh \
+	--components=rust-std-%{rust_triple} \
+	--prefix=%{local_rust_root} \
+	--disable-ldconfig
+%endif
 %endif
 
 # unbundle
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rust.git/commitdiff/72bb58443c54c7dc043ee019b8e03f5465303e86



More information about the pld-cvs-commit mailing list