From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0AA2515800A for ; Thu, 20 Jul 2023 09:50:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07EE0E0887; Thu, 20 Jul 2023 09:50:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB3A3E0887 for ; Thu, 20 Jul 2023 09:49:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 14DBA34092D for ; Thu, 20 Jul 2023 09:49:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97694BDC for ; Thu, 20 Jul 2023 09:49:57 +0000 (UTC) From: "WANG Xuerui" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "WANG Xuerui" Message-ID: <1689846506.32a7e626490101308c19b10a2a3f70ca4276c493.xen0n@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/rust-toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: xen0n X-VCS-Committer-Name: WANG Xuerui X-VCS-Revision: 32a7e626490101308c19b10a2a3f70ca4276c493 X-VCS-Branch: master Date: Thu, 20 Jul 2023 09:49:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 445111a8-fb77-48b0-83a2-d5bb84402eed X-Archives-Hash: 42e02f5c3ed4f20f55958581ea18525e commit: 32a7e626490101308c19b10a2a3f70ca4276c493 Author: WANG Xuerui gentoo org> AuthorDate: Sat Jun 3 06:32:53 2023 +0000 Commit: WANG Xuerui gentoo org> CommitDate: Thu Jul 20 09:48:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32a7e626 rust-toolchain.eclass: add preparatory loong support Rust 1.71.0 was already beta at time of the commit, meaning the target tuple of loong can be considered stable. See: https://github.com/gentoo/gentoo/pull/31241 Signed-off-by: WANG Xuerui gentoo.org> eclass/rust-toolchain.eclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass index 0dcafdf9b335..f4451f743596 100644 --- a/eclass/rust-toolchain.eclass +++ b/eclass/rust-toolchain.eclass @@ -40,6 +40,7 @@ rust_abi() { armv6j*s*) echo arm-unknown-linux-gnueabi;; armv7a*h*) echo armv7-unknown-linux-gnueabihf;; i?86*) echo i686-unknown-linux-gnu;; + loongarch64*) echo loongarch64-unknown-linux-gnu;; mips64el*) echo mips64el-unknown-linux-gnuabi64;; mips64*) echo mips64-unknown-linux-gnuabi64;; mipsel*) echo mipsel-unknown-linux-gnu;; @@ -139,4 +140,12 @@ rust_all_arch_uris() riscv? ( $(rust_arch_uri riscv64gc-unknown-linux-gnu "$@") ) s390? ( $(rust_arch_uri s390x-unknown-linux-gnu "$@") ) " + + # Upstream did not gain support for loong until v1.71.0. + # NOTE: Merge this into the block above after every <1.71.0 version is + # gone from tree. + local arg_version="${1##*-}" + if ver_test "${arg_version:-$PV}" -ge 1.71.0; then + echo "loong? ( $(rust_arch_uri loongarch64-unknown-linux-gnu "$@") )" + fi }