Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp1426034qtf; Fri, 16 Jun 2023 08:19:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5oS/pKqSXm6ASHPNOovw6Iiw4pcVDDPwAITvxDP2sGWn02PaxWZ6ZMEGxoB16iVvv4fyRj X-Received: by 2002:a17:902:daca:b0:1b0:4a2:5928 with SMTP id q10-20020a170902daca00b001b004a25928mr11709749plx.8.1686928768058; Fri, 16 Jun 2023 08:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686928768; cv=none; d=google.com; s=arc-20160816; b=xm62rfSSp1nrZ06uYwASefE/EH/YwoldJ72RhSrclwi/jDoeMlyAXIAOQaoDkq4C5S OyCZZxPK9Ckeo7GxxcUTT3tbtEoAVc8aP7m3j/+nKG3rEsITEwL+T8RSs+TfWb3f+deA vcGqXQOofT1j8jklrZtbPJBaLRWoPL+tNentiyISaHs7DoGL1Tj0Ltb20VGhr+MikChT lC20DhwhaG0dns/8WYdgDN3Yun5i4Qot/P/M3GrXyTOpwRdn54JOoVuPFLkTnMVKMH6U Av5fnAuAglZL0l/AJmdcK/zXUX4F9OPzA6yGooNFUHJl0E8Yxd7WIaXeoLd+uW+uccZD U2Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vnS17URyKoXX82bjyvptn2/y/no/LqSPUxwsdFAi0+o=; b=GjlHl1OU1UzGkzgobo6H30BQFL+KZqmNIPgghkrhkUtyy67Ca4gIxwIyWnfEDqosAF IJIvOvxTeEwYcoTTE/FOUtPAtpiTVTIQHb2xT+ijqvg8ug0thb/tsyyoJOzLi0cTfeye xw3V93BdfgTwQ4K1nKycUy2aBS7Yp90GXFrVtV4fz+cBxEzt631q9iE9MLwHo8dRG4uw BOMmPEVf2T2FLBUCMi+8Pc9P7whlpqPO8G8RpZttUVeH/5W+YAq6/ausTpY1mWDVj8J/ cWpku34YcmuxBwDLqhye3YFBoMHD0PPG+a6f16x/Z1LGf7h2XMSfOaqeiltCxZCsFgMR Mc8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UNgcpZ4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a17090301c500b001a67a19331dsi15147135plh.202.2023.06.16.08.19.15; Fri, 16 Jun 2023 08:19:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UNgcpZ4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345810AbjFPPCJ (ORCPT + 99 others); Fri, 16 Jun 2023 11:02:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345806AbjFPPBy (ORCPT ); Fri, 16 Jun 2023 11:01:54 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4591FDD; Fri, 16 Jun 2023 08:01:44 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-39e86b3da52so643277b6e.0; Fri, 16 Jun 2023 08:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686927703; x=1689519703; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vnS17URyKoXX82bjyvptn2/y/no/LqSPUxwsdFAi0+o=; b=UNgcpZ4I2DbFEtaOiJW5oc++TWDq0TFw4eTp2I1NlBs8kbKAjvinMsrW6s41n2edia NT9dn7D6bqZ2YGOKk9hGxRsrbJtX6TX0/uV1ZdsBIqvN0EHuDsjy243CfNwQpuWL3gYS 90onoMzuWss0ta6AEjXmryFyiL14KpE4CgC/cVc6nz72IPZh3Ewo+Lqs9GCK+YuU1Efb BqpkiZMAVOw/QFSsvgGnJYNOlZ5IJkezHpJRGxu4SwMEm93v9RlEFubQmidjx878f2mU nyhL0TjZU8L9Kqq/ONM1eQniEBLAqURMkJ9+gJi0TGLc9XfxSJsKHWHfqY/xFHlpsIww Uz2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686927703; x=1689519703; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vnS17URyKoXX82bjyvptn2/y/no/LqSPUxwsdFAi0+o=; b=D544W4qBY56srxF3ff9dXtcsY0UZN+XvNq71LFe+95BMAjbZj7VtircU2ichVMDKIv RlS0eJZm4dF9yNzmQk26pLV9PFhJnmJFiyPhVUZ6F1Tot6vUlLLSi/yqCZT0JiGph4e5 leUsxUBoWDf9QHGU3152b+HYzbEx7fEg6SItiJwpo3qdAw/9qaUehh4oKKbIdf4sl24I 2knnDwLrvP2W39Qd1yOUwZ08R5BhymJkayz9XgssyCJroap1mzzQJ1q5Xig+sC9Yo86g hmKHXjZw7Qep8AYI3+HXOTGY7poeQ30IxTw0jHi8ViNul3EwBKvarYi0Bn3vTWY3MPR1 XWLw== X-Gm-Message-State: AC+VfDxpiE5OiwXbxzCHfY8CCVTIVEJZnbWGIiM8L3NBux+5hG2JrRUl DL5xaPrOMBc60DLm7Z1NlfO6WMblFNQ= X-Received: by 2002:aca:f102:0:b0:39e:af33:2d with SMTP id p2-20020acaf102000000b0039eaf33002dmr766947oih.0.1686927703287; Fri, 16 Jun 2023 08:01:43 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id q8-20020a0568080a8800b0039c7c757dc1sm7818826oij.24.2023.06.16.08.01.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 08:01:42 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2023 11:12:10 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 08/11] kbuild: rust_is_available: normalize version matching Content-Language: en-US To: Miguel Ojeda , Masahiro Yamada , Wedson Almeida Filho , Alex Gaynor Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Andreas Hindborg , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20230616001631.463536-1-ojeda@kernel.org> <20230616001631.463536-9-ojeda@kernel.org> From: Martin Rodriguez Reboredo In-Reply-To: <20230616001631.463536-9-ojeda@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/23 21:16, Miguel Ojeda wrote: > In order to match the version string, `sed` is used in a couple > cases, and `grep` and `head` in a couple others. > > Make the script more consistent and easier to understand by > using the same method, `sed`, for all of them. > > This makes the version matching also a bit more strict for > the changed cases, since the strings `rustc ` and `bindgen ` > will now be required, which should be fine since `rustc` > complains if one attempts to call it with another program > name, and `bindgen` uses a hardcoded string. > > In addition, clarify why one of the existing `sed` commands > does not provide an address like the others. > > Signed-off-by: Miguel Ojeda > --- > [...] Reviewed-by: Martin Rodriguez Reboredo