From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C2161582EF for ; Wed, 19 Feb 2025 07:22:26 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 2761E3431F9 for ; Wed, 19 Feb 2025 07:22:26 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 78A48110479; Wed, 19 Feb 2025 07:21:43 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BCF7F110470 for ; Wed, 19 Feb 2025 07:21:42 +0000 (UTC) Received: from monolith.infra.footclan.ninja (119-18-36-251.771224.bne.static.aussiebb.net [119.18.36.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kangie@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B2FA834314C; Wed, 19 Feb 2025 07:21:41 +0000 (UTC) From: kangie@gentoo.org To: gentoo-dev@lists.gentoo.org Cc: Matt Jolly Subject: [gentoo-dev] [PATCH 0/2] rust-toolchain.eclass updates Date: Wed, 19 Feb 2025 17:21:22 +1000 Message-ID: <20250219072124.302580-1-kangie@gentoo.org> X-Mailer: git-send-email 2.48.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: a482e1b1-60f2-4790-b6e9-55283644ce92 X-Archives-Hash: c7f8c7307093a7476db7b6725cc7447b From: Matt Jolly These commits are part of a larger body of work which will enable us to add the `beta` and `nightly` channels to dev-lang/rust{,-bin}. Please feel free to provide feedback on the commits directly via the following PR: https://github.com/gentoo/gentoo/pull/40524 which will be merged after Rust 1.85.0 is pushed to the `stable` channel upstream. 1. tidy up `rust_all_arch_uris` - There is an obsolete `loong` conditional which is now applied unconditionally. - Logic for `mips` (which is only used by one ebuild) has been removed from the eclass. It is added to that ebuild in a separate commit. 2. add a rename param to `rust_all_arch_uris` - `rust_arch_uri` already supports renaming distfiles; this commit adds required plumbing that enables us to use that functionality via `rust_all_arch_uris` for the `beta` channel. - `rust_all_arch_uris` now uses local variables instead of "$1" and "$2" for readability. - Also updates `rust_arch_uri` to produce an appropriate `verify-sig?` conditional (including rename) when called in this way. Matt Jolly (2): rust-toolchain.eclass: simplify `rust_all_arch_uris` rust-toolchain.eclass: add rename param to `rust_all_arch_uris()` eclass/rust-toolchain.eclass | 59 ++++++++++++------------------------ 1 file changed, 20 insertions(+), 39 deletions(-) -- 2.48.0