[packages/rust] add support for aarch64

atler atler at pld-linux.org
Fri May 1 18:28:47 CEST 2020


commit c160f211f6a33dcfc6d37f8717b868514b167e43
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri May 1 16:28:01 2020 +0000

    add support for aarch64

 rust.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/rust.spec b/rust.spec
index 0b39917..14db77d 100644
--- a/rust.spec
+++ b/rust.spec
@@ -47,6 +47,8 @@ Source2:	https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_ru
 # Source2-md5:	be3f4d5143483c754a3c272eb213cd07
 Source3:	https://static.rust-lang.org/dist/%{bootstrap_date}/rust-std-%{bootstrap_rust}-x86_64-unknown-linux-gnux32.tar.xz
 # Source3-md5:	38da0bf057e0801669f18f74555830bf
+Source4:	https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz
+# Source4-md5:	3408e035e4257846e9417148e1f50412
 URL:		https://www.rust-lang.org/
 # for src/compiler-rt
 BuildRequires:	cmake >= 3.4.3
@@ -70,7 +72,7 @@ Requires:	gcc
 # Only x86_64 and i686 are Tier 1 platforms at this time.
 # x32 is Tier 2, only rust-std is available (no rustc or cargo).
 # https://doc.rust-lang.org/stable/book/getting-started.html#tier-1
-ExclusiveArch:	%{x8664} %{ix86} x32
+ExclusiveArch:	%{x8664} %{ix86} x32 aarch64
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %ifarch x32
@@ -238,6 +240,9 @@ tar xf %{SOURCE3}
 %{__mv} rust-std-%{bootstrap_rust}-%{rust_triple} rust-std-%{rust_triple}
 cd ..
 %endif
+%ifarch aarch64
+tar xf %{SOURCE4}
+%endif
 %{__mv} %{bootstrap_root} %{bootstrap_root}-root
 %{bootstrap_root}-root/install.sh \
 	--components=cargo,rustc,rust-std-%{rust_bootstrap_triple} \
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list