Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mJGP0-0002cQ-CR for mharc-grub-devel@gnu.org; Thu, 26 Aug 2021 10:30:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJGOy-0002bg-6r for grub-devel@gnu.org; Thu, 26 Aug 2021 10:30:44 -0400 Received: from dibed.net-space.pl ([84.10.22.86]:36721) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:192) (Exim 4.90_1) (envelope-from ) id 1mJGOv-00055g-Bd for grub-devel@gnu.org; Thu, 26 Aug 2021 10:30:43 -0400 Received: from router-fw.i.net-space.pl ([192.168.52.1]:37780 "EHLO tomti.i.net-space.pl") by router-fw-old.i.net-space.pl with ESMTP id S2106144AbhHZOaf (ORCPT ); Thu, 26 Aug 2021 16:30:35 +0200 X-Comment: RFC 2476 MSA function at dibed.net-space.pl logged sender identity as: dkiper Date: Thu, 26 Aug 2021 16:30:28 +0200 From: Daniel Kiper To: Petr Vorel Cc: grub-devel@gnu.org Subject: Re: [PATCH 2/2] autogen.sh: Detect python Message-ID: <20210826143028.ridofxcpljgfbeee@tomti.i.net-space.pl> References: <20210806064508.4489-1-pvorel@suse.cz> <20210806064508.4489-2-pvorel@suse.cz> <20210809115229.toe34etovoul62ss@tomti.i.net-space.pl> <20210809163605.bwmvx3cfn5zaiv4p@tomti.i.net-space.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Received-SPF: pass client-ip=84.10.22.86; envelope-from=dkiper@net-space.pl; helo=dibed.net-space.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2021 14:30:44 -0000 On Wed, Aug 18, 2021 at 09:19:23AM +0200, Petr Vorel wrote: > > On Mon, Aug 09, 2021 at 01:52:29PM +0200, Daniel Kiper wrote: > > > On Fri, Aug 06, 2021 at 08:45:08AM +0200, Petr Vorel wrote: > > > > It help to avoid error on distros which has only python3 binary: > > > > ./autogen.sh: line 20: python: command not found > > > > > Using bash builtin 'command -v' to avoid requiring which as extra > > > > dependency (usable on containers). > > > > It looks the bash dependency is not specified in the INSTALL file in > > > "The Requirements" section. May I ask you to add it? > > > ...and python requirement is missing from the list too. Additionally, > > please update autogen.sh python usage in the INSTALL file. > There is Python 2.6 or later, not sure if it still works on 2.6 (which is EOL) > or it requires now 2.7). I think we should update this requirement to "Python 3.0.0 or later". > Also "If you use a development snapshot or want to hack on GRUB you may > need the following." is obsolete (from 2009), I'll move python, autoconf and > automake to the list on the top. OK... There is also: 3. Type `./bootstrap'. * autogen.sh (called by bootstrap) uses python. By default the invocation is "python", but it can be overridden by setting the variable $PYTHON. I think this should be updated too. > > Last but not least, patch tool requirement is missing from INSTALL file too. > > Of course this requires update to patch #1 in this series. > I first thought "Other standard GNU/Unix tools" would cover it, but it does not > harm to mention it (for those who compile on containers which have minimal > dependencies). Yep! Daniel