pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust rust: Clarify platform.mk mess once again. N...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58a47a243630
branches:  trunk
changeset: 390711:58a47a243630
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Dec 27 18:49:55 2022 +0000

description:
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.

diffstat:

 lang/rust/platform.mk |  42 +++++++++++++++++++++++++++++++++---------
 1 files changed, 33 insertions(+), 9 deletions(-)

diffs (56 lines):

diff -r 2738ac3a2b85 -r 58a47a243630 lang/rust/platform.mk
--- a/lang/rust/platform.mk     Tue Dec 27 18:28:34 2022 +0000
+++ b/lang/rust/platform.mk     Tue Dec 27 18:49:55 2022 +0000
@@ -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