Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1067237rwi; Fri, 14 Oct 2022 12:21:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Npk7L31GGVlajv6B3Olh2xFacN04Zc+MSe/jFHMTTuVWOfhnLV5lMn32vGuHCG8rFTd7x X-Received: by 2002:aa7:9147:0:b0:562:6036:18f3 with SMTP id 7-20020aa79147000000b00562603618f3mr6617884pfi.84.1665775309867; Fri, 14 Oct 2022 12:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665775309; cv=none; d=google.com; s=arc-20160816; b=Pj1SFFYsenCWI3JJazhejMnqtofvZyYv7ADHBIbuxBjeIGxFBsHcfoA6TBDB/rornY Ls8dKgWR9aOIgUtnaeGtDDc5gcKmt6JZ/KaPoqmHc8wxzNdaRDDUWyU1uXoPigu9R3k2 qNLtQcRQytRlIjFbBO8yZJZtUHEBk17fEAOfY/hjRiU4K8UfPe4Tkii1QLPv7hkgj07x m00plrL87w3W5Rx7NNoNMW61dsEjp7T0Sqy9R4zHCyK9L3z9EV13wIZqiksJIoEp7r4y hwtEVWRvkq4c2lG/rc1xe8X3OisUbjDcFHghvkdGmkoFOstPHcF2VJFQUOKBjEu1An9j 3I2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qHPx3FIICBJ97+4m/tNrnrrE7c7V77it4zG5MOEekP8=; b=dPvVJA+MpfvbonJsA0PO7fsB4NCzkSGv55lzPeMJaR2SS1Z/inSdZvlqlqpDBoJFvC qiab/xb8kTc2BGRtZxmtfFgdmCNzedoGGNqJro1BUPAP+H+ChDVW2lDrCPLkcrMKMk4W q31nRZcjYAUjM2L0L6lKp+f6FGs+ssybplFn2Ha47oUlOQ5N1aQCV/zZeiXATDeTQYQ9 2O8FlAzyOXS4TU2rtfxYlxoZfFfYxCghdb+DktVG9nEaazE1daFsCRPfVXvBwM6KJcg3 kKafWaXfe4NGCNDU1tvCVqIs01EGeHI3FQ9qxhbvkfhELRADDA+kRq8TfxtDD3w3GOfz 9HEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20210112.gappssmtp.com header.s=20210112 header.b=uRB9bMp8; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020aa78dca000000b00562bd090afcsi3358721pfr.305.2022.10.14.12.21.35; Fri, 14 Oct 2022 12:21:49 -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=@lixom-net.20210112.gappssmtp.com header.s=20210112 header.b=uRB9bMp8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbiJNSos (ORCPT + 99 others); Fri, 14 Oct 2022 14:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbiJNSoo (ORCPT ); Fri, 14 Oct 2022 14:44:44 -0400 Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1315CE2E for ; Fri, 14 Oct 2022 11:44:41 -0700 (PDT) Received: by mail-vk1-xa2e.google.com with SMTP id a66so2696072vkc.3 for ; Fri, 14 Oct 2022 11:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qHPx3FIICBJ97+4m/tNrnrrE7c7V77it4zG5MOEekP8=; b=uRB9bMp8g92Q1/kj2CCMj1RnY456AXrKWO1G6V1TtDob3IS9h+kGLhuo7DxuE/3/VR mclpNViNnitDQKXEhe6xad8L+Xy6HfUWQJWP7LA4EuSYNHg5BpeBSpaVnAazHVW+EPtN Zwg+tbgIbik1grCVluV1PqKZbftqR+FQYT7s2Xq4nNrs3erhO8uwK0OOm28CpBZZZOdP JXkd78OGKeNktU8kmzFEt42ykgYDiVTF4w1qE6Amw6GtJRAf/GMnfbzaKJgmvFMTjGPe miuf2ZnYjBf/vH+77VeBBV+2MnZ6rGtBmnXDjV1ivrCMFFv9BHIECzP2XQli5INU4V9R 3sSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qHPx3FIICBJ97+4m/tNrnrrE7c7V77it4zG5MOEekP8=; b=Slzo4iKMsZiB9nGtCIIWkxsm1OQ2YmcJWYZA7yhZcBZXOAbFImrijJ+5QFsYFzsUAw h6HzXfFyh/2Xvl7Vz9kWfDdsFWwij9Gn+LjJGUiBNhwoUmtiYsopwxCoTCZ9SbJTtXAC tVUgaBVpsnLYHq79RG+KiAbASprkt+CJDhhYyhX3QITu/c3JFRSbZcBLHJ9jj4n+XYZS RzwmQPtVoFymMHWfgmZUtwi3oanZF+emcb9cBw0kJ2r9Zv+zTbV2euIQ0t2WJNiaNbyz Feg3U3Js9O7vXjVn1Gkz2fmui9Wb5r9+n9u7VCIgozsjHHztS46U6n+e+mYH6kY7UI0M WRTg== X-Gm-Message-State: ACrzQf3o8Qi4j2hKPtUZ72jokLb47cn+eaTvBMPzkJyhop6nJoru7GbJ Re+y1E+IpFV7DUvdviHlKx4gYJDYfvqSVaE1f3csVoN7Mn1ZSQ== X-Received: by 2002:a1f:a0d8:0:b0:3a3:e1a1:3682 with SMTP id j207-20020a1fa0d8000000b003a3e1a13682mr3547342vke.20.1665773080912; Fri, 14 Oct 2022 11:44:40 -0700 (PDT) MIME-Version: 1.0 References: <20221004184625.10076-1-olof@lixom.net> In-Reply-To: From: Olof Johansson Date: Fri, 14 Oct 2022 11:44:30 -0700 Message-ID: Subject: Re: [PATCH] scripts: rust_is_available.sh: Provide hints on how to fix missing pieces To: Miguel Ojeda Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 Fri, Oct 14, 2022 at 9:21 AM Miguel Ojeda wrote: > > On Tue, Oct 4, 2022 at 8:47 PM Olof Johansson wrote: > > > > This might be a bit bikesheddy, but it saves a few roundtrips to the > > documentation when getting the `make LLVM=1 rustavailable` run to pass. > > It is faster for someone that already knows how things work, but it > may make newcomers skip the docs and it duplicates the information > there. In addition, for the non-error case, it makes it more verbose > which may not be appreciated. So maybe we should point to the docs > instead? What do you think? I don't really have a preference. This patch would have helped me, so I figured I would post it. My interest isn't really high enough to spend more effort on it at this time -- I got my setup working by now. Refactoring the script to have a shared message on non-successful exit with a reference to the doc would achieve what you're suggesting though. > Also, the patch doesn't add instructions for all the cases, so > somebody that may have hit one of the documented ones + not have read > the docs may wonder where to find them the solution or why they are > missing. Sure. -Olof