pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/rust
Module Name: pkgsrc
Committed By: nia
Date: Tue Dec 27 18:49:55 UTC 2022
Modified Files:
pkgsrc/lang/rust: platform.mk
Log Message:
rust: Clarify platform.mk mess once again. Notably, there is no
bootstrap available for Solaris SPARC64, which is something noticed
by K. Schreiner on pkgsrc-users.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/lang/rust/platform.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/rust/platform.mk
diff -u pkgsrc/lang/rust/platform.mk:1.16 pkgsrc/lang/rust/platform.mk:1.17
--- pkgsrc/lang/rust/platform.mk:1.16 Tue Aug 30 19:22:17 2022
+++ pkgsrc/lang/rust/platform.mk Tue Dec 27 18:49:55 2022
@@ -1,4 +1,4 @@
-# $NetBSD: platform.mk,v 1.16 2022/08/30 19:22:17 he Exp $
+# $NetBSD: platform.mk,v 1.17 2022/12/27 18:49:55 nia Exp $
# This file encodes whether a given platform has support for rust.
@@ -7,14 +7,38 @@
.if !defined(PLATFORM_SUPPORTS_RUST)
-# Rust needs NetBSD>7
-. for rust_arch in aarch64 earmv7hf i386 powerpc sparc64 x86_64
-. for rust_os in Darwin FreeBSD Linux NetBSD SunOS
-. if ${OPSYS} != "NetBSD" || empty(OS_VERSION:M[0-7].*)
-RUST_PLATFORMS+= ${rust_os}-*-${rust_arch}
-. endif
-. endfor
-. endfor
+. include "../../mk/bsd.fast.prefs.mk"
+
+. if ${OPSYS} == "NetBSD"
+. if ${OPSYS_VERSION} > 090000
+RUST_PLATFORMS+= NetBSD-*-aarch64
+RUST_PLATFORMS+= NetBSD-*-aarch64eb
+RUST_PLATFORMS+= NetBSD-*-earmv6hf
+RUST_PLATFORMS+= NetBSD-*-earmv7hf
+RUST_PLATFORMS+= NetBSD-*-sparc64
+. endif
+. if ${OPSYS_VERSION} > 080000
+RUST_PLATFORMS+= NetBSD-*-i386
+RUST_PLATFORMS+= NetBSD-*-x86_64
+RUST_PLATFORMS+= NetBSD-*-powerpc
+. endif
+. endif
+
+RUST_PLATFORMS+= Darwin-*-aarch64
+RUST_PLATFORMS+= Darwin-*-x86_64
+
+RUST_PLATFORMS+= FreeBSD-*-x86_64
+
+RUST_PLATFORMS+= Linux-*-aarch64
+RUST_PLATFORMS+= Linux-*-earmv6hf
+RUST_PLATFORMS+= Linux-*-earmv7hf
+RUST_PLATFORMS+= Linux-*-i386
+RUST_PLATFORMS+= Linux-*-x86_64
+
+# XXX: how to specifically detect illumos?
+. if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} >= 051000
+RUST_PLATFORMS+= SunOS-*-x86_64
+. endif
. for rust_platform in ${RUST_PLATFORMS}
. if !empty(MACHINE_PLATFORM:M${rust_platform})
Home |
Main Index |
Thread Index |
Old Index