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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDC9B1382C5 for ; Fri, 12 Jun 2020 17:42:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD8B6E09F2; Fri, 12 Jun 2020 17:42:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C38C0E09F2 for ; Fri, 12 Jun 2020 17:42:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8108934EE1D for ; Fri, 12 Jun 2020 17:42:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E0ACB278 for ; Fri, 12 Jun 2020 17:42:26 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1591983722.8e0668379b81eaaa034547c554b0e5ab59672e89.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rust/rust-1.44.0.ebuild X-VCS-Directories: dev-lang/rust/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 8e0668379b81eaaa034547c554b0e5ab59672e89 X-VCS-Branch: master Date: Fri, 12 Jun 2020 17:42:26 +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: 58ed0c8e-b3da-47a9-aa62-b26b3a0ce74d X-Archives-Hash: d7e909ef2ddb9d1e2e9fd539a5cbbc96 commit: 8e0668379b81eaaa034547c554b0e5ab59672e89 Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Jun 12 17:40:03 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Jun 12 17:42:02 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e066837 dev-lang/rust: more cross triple fixes Bug: https://bugs.gentoo.org/679878 Signed-off-by: Georgy Yakovlev gentoo.org> dev-lang/rust/rust-1.44.0.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dev-lang/rust/rust-1.44.0.ebuild b/dev-lang/rust/rust-1.44.0.ebuild index dba7e9ab61e..ad573f79cdc 100644 --- a/dev-lang/rust/rust-1.44.0.ebuild +++ b/dev-lang/rust/rust-1.44.0.ebuild @@ -324,10 +324,14 @@ src_configure() { local cross_target_spec for cross_target_spec in "${RUST_CROSS_TARGETS[@]}";do + # extracts first element form :: local cross_llvm_target="${cross_target_spec%%:*}" + # extracts toolchain triples, : local cross_triples="${cross_target_spec#*:}" - local cross_rust_target="${cross_triples#*:}" - local cross_toolchain="${cross_triples#:*}" + # extracts first element after before : separator + local cross_rust_target="${cross_triples%%:*}" + # extracts last element after : separator + local cross_toolchain="${cross_triples##*:}" use llvm_targets_${cross_llvm_target} || die "need llvm_targets_${cross_llvm_target} target enabled" command -v ${cross_toolchain}-gcc > /dev/null 2>&1 || die "need ${cross_toolchain} cross toolchain"