Received: by mail.netbsd.org (Postfix, from userid 605) id 4F9F684D6A; Tue, 27 Dec 2022 18:49:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 80D4484D58 for ; Tue, 27 Dec 2022 18:49:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id AJ3aXMLPn8hf for ; Tue, 27 Dec 2022 18:49:56 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id F375384CFE for ; Tue, 27 Dec 2022 18:49:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id ECBFBFA90; Tue, 27 Dec 2022 18:49:55 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1672166995220070" MIME-Version: 1.0 Date: Tue, 27 Dec 2022 18:49:55 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/lang/rust To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20221227184955.ECBFBFA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1672166995220070 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1672166995220070 Content-Disposition: inline Content-Length: 1784 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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}) --_----------=_1672166995220070--