Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E85A0C433DF for ; Mon, 29 Jun 2020 13:51:43 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C1AB82333F for ; Mon, 29 Jun 2020 13:51:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1AB82333F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jpuBk-0008Nm-Nx; Mon, 29 Jun 2020 13:51:12 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jpuBj-0008Nh-BY for xen-devel@lists.xenproject.org; Mon, 29 Jun 2020 13:51:11 +0000 X-Inumbo-ID: 9688f922-ba0f-11ea-bca7-bc764e2007e4 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9688f922-ba0f-11ea-bca7-bc764e2007e4; Mon, 29 Jun 2020 13:51:10 +0000 (UTC) Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: olhtQNkxxzVsjqWXNDwG1Ru67t2OnFClDj56q+owXhZbScbVBvbsZLEodpZLrL8h/JZS7OmJyd Gdlr8AQVvv06A9a79YJNhjmn3Ko5MWWsEAD2TEyN99VSpdAr0sQUQp0YDBqKxS0cZzq1JBEwo0 YfbYWhYr6yy0FrbdTUkFjxeT/lc2KslCeKcn8S71mYNM8546819yeaApsrDvizAPReOpPSQC+7 ALcZ6U+JFiTJJn+GKTYqXKTlayTIhVXKwfVMyXBu0ooVSRtuP/UWI7FT7grcQ+YfC7FMI9TmLi dWo= X-SBRS: 2.7 X-MesageID: 21518647 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.75,294,1589256000"; d="scan'208";a="21518647" Subject: Re: [PATCH] tools/configure: drop BASH configure variable To: Ian Jackson References: <20200626170038.27650-1-andrew.cooper3@citrix.com> <24313.60895.220354.223207@mariner.uk.xensource.com> From: Andrew Cooper Message-ID: <9838e494-6372-a456-9ff6-95b2b8f7381f@citrix.com> Date: Mon, 29 Jun 2020 14:51:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <24313.60895.220354.223207@mariner.uk.xensource.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-GB X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL02.citrite.net (10.69.22.126) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Xen-devel , Daniel De Graaf , Wei Liu , Paul Durrant Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 29/06/2020 14:34, Ian Jackson wrote: > Andrew Cooper writes ("[PATCH] tools/configure: drop BASH configure variable"): >> This is a weird variable to have in the first place. The only user of it is >> XSM's CONFIG_SHELL, which opencodes a fallback to sh, and the only two scripts >> run with this are shebang sh anyway, so don't need bash in the first place. > Thanks for this cleanup. I agree with the basic idea. > > However, did you run these scripts with dash, or review them, to check > for bashisms ? Yes, to all of the above. They are both very thin wrappers (doing some argument shuffling) around large AWK scripts. >> Make the mkflask.sh and mkaccess_vector.sh scripts executable, drop the >> CONFIG_SHELL, and drop the $BASH variable to prevent further use. > Since the build currently uses bash for these, a more neutral change > would be to change to #!/bin/bash at the same time. That will break FreeBSD, which has no `bash` in sight. >> RFC for 4.14. This is a cleanup to the build system. > I see this already has a release-ack. However, I would not have > recommended granting one at least on the basis of the description > above. > > I agree that this is cleanup. But the current situation is not buggy. > I'm not sure exactly what the release criteria are but ISTM that this > patch adds risk to the release rather than removing it. I agree that the current state of play isn't a major issue, but having ./configure check for bash is buggy for both uses. ~Andrew