Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2169362rwo; Thu, 3 Aug 2023 05:54:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlExdsKO3z7Et4H3GFq3FyLJrl+cijAKOnfldzTZ69PWo1JHqFiu+7TW9+C0w33nKhnrZ9QH X-Received: by 2002:a05:6a00:b4e:b0:67f:48a2:5d9f with SMTP id p14-20020a056a000b4e00b0067f48a25d9fmr24141534pfo.11.1691067243368; Thu, 03 Aug 2023 05:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691067243; cv=none; d=google.com; s=arc-20160816; b=x6JYqzdOGbblgjqF4H3MhS9wX7HgOIkaaiBSodJ66Q192W+QgujYxsChdC9ulloUQk D15xP2YPocLaemzocAec92zUws5gYh/98N/FgnE4A0TxaO71T7PGKL1Zo9eaKGjmucaN vavsfBgT30b9emhbLeQkdnS6kHmexVhIn2I3bWdU/CJAIMmG1/ZZMDnGszdE5klaiT3i UOG0YNdudleapxVJA8y/ItDHxQ4s4WS5gFU7lPkTZFzDcU/MKUh+Q1V7mWFc/Ruj51VS LlzwhQUZ48OHE67TchtkUiDthk1Xnc5LSGz6fSuOnO8B2nQ4VaOIo1esrzAYlFUWEJmC /7yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YygGSaI7ptzetoAj52vG/o86JnMlqMWLK61uqSGVpRM=; fh=bNDrMoPLrTe8PaKYqEctdkaEEdPiW698lSngjvwKSwE=; b=brnDTAI4tP4HRUjsN2adPrxcNrc5mp0uCeLvV83BZISIhXf8E7jWK51pqStpu1IGp0 tFBrzc1xBys2uhMf/X1gAAqNzOV3/34FWZ1QK933ReqUfSGz/dZReUu/XeukkApenj0y 941m5PMf9qtz0C/ZH+HxxzBJCrWgDuJA0NtPSrXvEfqsKb25B0EvuVf9L3t6wIxm0tva HWdnjTm0FTSAyLic3XZCJfm183Uo5UBYda01wn2p5DuBWN/meDAASZESPyPP1dRXweYn icOB8TbwV9mMRkwRUCuDbd66Dd4o52sA+HtViInO1UH7HcwbSAEsxIGJZi8yaxKJAdPv UnrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HKuiqHH0; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a654145000000b00553867efc1bsi12424556pgp.636.2023.08.03.05.53.51; Thu, 03 Aug 2023 05:54:03 -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=@linuxfoundation.org header.s=korg header.b=HKuiqHH0; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234870AbjHCKTv (ORCPT + 99 others); Thu, 3 Aug 2023 06:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbjHCKTR (ORCPT ); Thu, 3 Aug 2023 06:19:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC1FB272E; Thu, 3 Aug 2023 03:19:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9D65B61D2B; Thu, 3 Aug 2023 10:19:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7932EC433C8; Thu, 3 Aug 2023 10:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691057953; bh=fk288gRc1SQZmQ4UNdYdVEWyx6SEt1/IBnzF1eLVfv0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HKuiqHH0SaPukuizU7zrBiXFfJNkKfPiEWUdYta41dLkxHAwjps/TKBfe+DSyB6MU I0dX2deqQSnGQhzajqGvCKUeQRRexwh/R2GsJzIMsefTeY9qNXSIvVHUxVQbtMqhiu jkkrGoS2mJhjzbXT+YJS5ffVldA4sqHR42K8ftFk= Date: Thu, 3 Aug 2023 12:19:09 +0200 From: Greg KH To: Rasmus Villemoes Cc: Jonathan Corbet , Masahiro Yamada , Linus Torvalds , workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Documentation: changes.rst: add entry for git Message-ID: <2023080302-theology-custody-670b@gregkh> References: <20230803090711.2261876-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803090711.2261876-1-linux@rasmusvillemoes.dk> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, Aug 03, 2023 at 11:07:10AM +0200, Rasmus Villemoes wrote: > git is obviously used for development, directly and also > indirectly (via checkpatch, get_maintainer and other helper > scripts). But it is also invoked during the build to produce the > `uname -r` string. > > It's useful to have some minimal git version one can expect people to > use. For now, set a somewhat conservative minimum of 1.8.0, which is > already more then ten years old. > > Signed-off-by: Rasmus Villemoes > --- > Documentation/process/changes.rst | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst > index 5561dae94f85..a82c619f4bb2 100644 > --- a/Documentation/process/changes.rst > +++ b/Documentation/process/changes.rst > @@ -62,6 +62,7 @@ Sphinx\ [#f1]_ 1.7 sphinx-build --version > cpio any cpio --version > GNU tar 1.28 tar --version > gtags (optional) 6.6.5 gtags --version > +git 1.8.0 git --version > ====================== =============== ======================================== > > .. [#f1] Sphinx is needed only to build the Kernel documentation > @@ -189,6 +190,13 @@ The kernel build requires GNU GLOBAL version 6.6.5 or later to generate > tag files through ``make gtags``. This is due to its use of the gtags > ``-C (--directory)`` flag. > > +git > +--- > + > +When building with CONFIG_LOCALVERSION_AUTO=y, the build system uses > +git to produce a version string of the form > +6.4.6-00128-gd78b7f406397, which will be shown e.g. by running `uname -r`. Isn't this optional? If git is not installed it just will not use git to determine the local version. So you should put "(optional)" above on the list of tools. And also, don't pick a specific version like this unless it is that way for a reason. Why not pick a newer one? Or the last one that the local version script can handle properly? thanks, greg k-h