Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3437135rwo; Fri, 4 Aug 2023 05:06:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXwp+dyLX4AS/lVdK1X5Uf1URwTG8wKFC66CDZ2HNZtSYlCVacTkOoPPOknR2wxNHLNF0G X-Received: by 2002:a17:90a:c7cd:b0:268:5c3b:6f37 with SMTP id gf13-20020a17090ac7cd00b002685c3b6f37mr1508682pjb.0.1691150784573; Fri, 04 Aug 2023 05:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691150784; cv=none; d=google.com; s=arc-20160816; b=z0G9mSUsH52XSzhfd7Azpxjt2EMwJe5R2pMJW+XNX7OWM1LYhWab+q7zv2EZo5ec+l BPwlP+RCuw9MLbzWFp8xua0FV7Pag616dwokomjYrCeOmpD5ScW6SlytoxXfx9LSnzaz PHFgAVhJPpIZWxG1ZwHdyl/Cxgg6GxQ9SFufpzRmK1TIYTPSzFAhViMsYAtzGZvWYvkq 2kkzCpTIfgdNUdg/thc0V5XUZlpPgLyxfpd4tIgdhB04qp2zaclbNNVypCFXHZKi0IZx lUl3w3H9hSN61jsImxRdobsRat20nzLWrm5qVHveLmYVFcYZsJz/qVaEI4h4Pjp2Vlii sDLQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XAgFXNzCDxQwq9VlZcMWl4/9YzSTy5JB87AaZ5tecb8=; fh=YHYqd1YRddfRf7AMrThz8GJq3/Q5Tm3YBKEKvpK+FdY=; b=EIcaqG6TPXuOY4zPuFWI9vyyM9MMi/ywCvGWp4cBVgUno8TNcZlYExzdSjZDvq5I2C LA3JfbwtGB8myxZH8UuOHZJ2fWxUpW5cL9F4rUEuu+AL07uzWFIuhlpAKkwi9nsE66j8 yWl8QnNMebMPXHVlsDhWfGbseDkzKlZDtCEo1zZ6XTHTDGKpz1udBiCiZpJckH259v2r YSTLSpdJgx+r/iv0Kie2kBpicVroCBOdG3p8e+nm8G3/RNFNCLObjSb3dOS5vCCrhPZk ai6cdCZEiOZlHL0iQqmjwl56f/MrVue8Gd3VkQc3aNXpMWk0ea4u/VrUqRBMVAEsVDxl IIUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hGjPvl06; 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 r1-20020a17090a438100b00258ee17486bsi1787731pjg.160.2023.08.04.05.06.03; Fri, 04 Aug 2023 05:06:24 -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=hGjPvl06; 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 S229752AbjHDKRx (ORCPT + 99 others); Fri, 4 Aug 2023 06:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjHDKRb (ORCPT ); Fri, 4 Aug 2023 06:17:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99F0649E6; Fri, 4 Aug 2023 03:17: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 3787F61F8B; Fri, 4 Aug 2023 10:17:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10E4FC433C7; Fri, 4 Aug 2023 10:17:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691144233; bh=zNBDN7gMxcdP3rzmzlXceNr1RBqj0mH0rrNSb8z1r4Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hGjPvl06N5vqehlQBtNtTo1rEv1/w06C3pAbv/j7SfpWsoygQHEDMp1XYkebaQ52V Y76yp0awGlqFUowiW4xa8hzxAX+3mxlJrgp4GwlJ0P/a4SCrziog7TJ4Z7UaXy4472 8hxWpFLEKdJLKerZ32ZrOKBPg50pJkFm8uQ2B/rg= Date: Fri, 4 Aug 2023 12:17:10 +0200 From: Greg KH To: Masahiro Yamada Cc: Rasmus Villemoes , Jonathan Corbet , 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: <2023080447-ahead-tannery-c77a@gregkh> References: <20230803090711.2261876-1-linux@rasmusvillemoes.dk> <2023080302-theology-custody-670b@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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,URIBL_BLOCKED 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, Aug 04, 2023 at 06:41:54PM +0900, Masahiro Yamada wrote: > On Thu, Aug 3, 2023 at 7:19 PM Greg KH wrote: > > > > 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. > > Right. > Without git, the suffix "-00128-gd78b7f406397" is not > appended, but you can build the kernel. > > > > > > 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? > > > > CentOS 7 (plans to retire in 2024) unfortunately > uses a ten-year-old git version. > > In CentOS 7, > > $ git --version > git version 1.8.3.1 I doubt CentOS 7 can build a modern-day kernel anyway, so why is this a requirement? We shouldn't be beholden to the necro-distros just because they have not moved into this decade :) > If we are allowed to abandon conservative distros, > I prefer git >= 2.14.0 > > That supports 'git status --no-optional-locks' That makes sense, and is a valid reason to require this. thanks, greg k-h