From nobody Sun Apr 12 12:53:13 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7900C6FD1D for ; Wed, 15 Mar 2023 20:45:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232062AbjCOUpf (ORCPT ); Wed, 15 Mar 2023 16:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbjCOUpd (ORCPT ); Wed, 15 Mar 2023 16:45:33 -0400 Received: from trent.utfs.org (trent.utfs.org [94.185.90.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A9245FA7D for ; Wed, 15 Mar 2023 13:45:32 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) (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 trent.utfs.org (Postfix) with ESMTPS id 6072C5F94F; Wed, 15 Mar 2023 21:45:29 +0100 (CET) Date: Wed, 15 Mar 2023 21:45:29 +0100 (CET) From: Christian Kujau To: linux-kernel@vger.kernel.org, Miguel Ojeda Subject: rust: Minor formatting fix on available Rust version. Message-ID: <2d8ace62-c087-884b-3d4a-d29291697d9c@nerdbynature.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In Fedora (and possibly other distributions too) rustc is versioned as: =20 $ rustc --version rustc 1.67.1 (d5a82bbd2 2023-02-07) (Fedora 1.67.1-1.fc37) =20 This makes "make rustavailable" report the version twice: =20 *** Rust compiler 'rustc' is too new. This may or may not work. *** Your version: 1.67.1 1.67.1 *** Expected version: 1.62.0 =20 Fix that by only reporting the first version number. =20 Signed-off-by: Christian Kujau --- diff --git a/scripts/rust_is_available.sh b/scripts/rust_is_available.sh index aebbf1913970..6b5d25e36538 100755 --- a/scripts/rust_is_available.sh +++ b/scripts/rust_is_available.sh @@ -46,8 +46,8 @@ fi # Non-stable and distributions' versions may have a version suffix, e.g. `= -dev`. rust_compiler_version=3D$( \ LC_ALL=3DC "$RUSTC" --version 2>/dev/null \ - | head -n 1 \ | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \ + | head -n 1 ) rust_compiler_min_version=3D$($min_tool_version rustc) rust_compiler_cversion=3D$(get_canonical_version $rust_compiler_version) --=20 BOFH excuse #398: Data for intranet got routed through the extranet and landed on the interne= t.