Skip to content

Commit 72bb584

Browse files
committed
- add some x32 specific prep stuff
1 parent be28e1f commit 72bb584

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

rust.spec

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,32 @@ Dopełnianie parametrów polecenia cargo w powłoce Zsh.
217217
%setup -q -n %{rustc_package}
218218

219219
%if %{with bootstrap}
220-
%ifarch %{x8664} x32
220+
%ifarch %{x8664}
221221
tar xf %{SOURCE1}
222222
%endif
223223
%ifarch %{ix86}
224224
tar xf %{SOURCE2}
225225
%endif
226+
%ifarch x32
227+
tar xf %{SOURCE1}
228+
cd %{bootstrap_root}
229+
tar xf %{SOURCE3}
230+
%{__mv} rust-std-%{bootstrap_rust}-%{rust_triple} rust-std-%{rust_triple}
231+
cd ..
232+
%endif
226233
%{__mv} %{bootstrap_root} %{bootstrap_root}-root
227234
%{bootstrap_root}-root/install.sh \
228235
--components=cargo,rustc,rust-std-%{rust_bootstrap_triple} \
229236
--prefix=%{local_rust_root} \
230237
--disable-ldconfig
231238
test -f %{local_rust_root}/bin/cargo
232239
test -f %{local_rust_root}/bin/rustc
240+
%ifarch x32
241+
%{bootstrap_root}-root/rust-std-%{rust_triple}/install.sh \
242+
--components=rust-std-%{rust_triple} \
243+
--prefix=%{local_rust_root} \
244+
--disable-ldconfig
245+
%endif
233246
%endif
234247

235248
# unbundle

0 commit comments

Comments
 (0)