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=-6.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 083A8C433DF for ; Mon, 29 Jun 2020 07:41:24 +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 C1E2F23159 for ; Mon, 29 Jun 2020 07:41:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KyPOB888" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1E2F23159 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 1jpoPd-0000oX-93; Mon, 29 Jun 2020 07:41:09 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jpoPc-0000oS-1F for xen-devel@lists.xenproject.org; Mon, 29 Jun 2020 07:41:08 +0000 X-Inumbo-ID: e456b20e-b9db-11ea-b7bb-bc764e2007e4 Received: from mail-wr1-x42b.google.com (unknown [2a00:1450:4864:20::42b]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e456b20e-b9db-11ea-b7bb-bc764e2007e4; Mon, 29 Jun 2020 07:41:07 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id r12so15409359wrj.13 for ; Mon, 29 Jun 2020 00:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=tphsBSB9nwEvETHetQs2071qRWmYmER5CGxR2YJlEuw=; b=KyPOB888QelFaNxi35T4PuLciP5paRHbrElKGKGolczyPAxHyo+AXE6qxtS37jOz5B KqCMN+I/vFbeYrYVTPjDBvmjxbbLtrFyUrjwgRcrLzmZ1J+NN92PQR1/gsfO18F7V1yJ 9gYwmxQMdXutj8uvDE+h82+Blk7rJTQKzCG6HibX90EvNPbRWEYIRh8velD5UVLQ7yA5 TUaViN1oRPnPuH7kOqmhzUAKIlk4g9pyww3lftnvYonAgVqfiimyz2MdO46DAypynFex vF8QU2cDLV/QG3acxP67f6ifGu5tWelK5vgM1KUn3/SRyOmGJXroyoRRHlKYUcdZTq1P NDQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:to:cc:references:in-reply-to :subject:date:message-id:mime-version:content-transfer-encoding :content-language:thread-index; bh=tphsBSB9nwEvETHetQs2071qRWmYmER5CGxR2YJlEuw=; b=gObB+9P74jvrF5ajK5jfsx74H2hWhjzdzYCbzQLa0pm2hQ0yrvRaOzZgz+gfd5FxdR ki3CFs62d42sjJdeITx6Iw9/d1kQ8vRnhMiBfgpOTZK27wOUETUkYklWW3t/VETuc2L2 1LN75h4ne8SW0wuXeT5ruD14d4J8e9iAfG3IfzocJ8OG7gjlG0emmO/x/5SGHSqDFUKX Jh7IJSEbsVUPRPjC/kmcT4ZhMxkl5AVcIIQwthsSd2q0fTg4swXcfk28sGS60A+mwfgw 9b9g2JMK2MR+1gs/yN7bPUwnYq8Mlru3a0DCy7GJmt34X0mJzE/uLeVgoDjxshvMAzNh loeA== X-Gm-Message-State: AOAM5331b95F8MvU72u8y2N5F4/9CAKZ8+KsCmN4o5Us6dD7rbP46ued DYVtCdAP1uWHv8sODJev4wI= X-Google-Smtp-Source: ABdhPJwsIWeKp3D+/hy1YeBAVDTJjdswHh06TxviF5wLJ1d/LpfWGlV5fDog720o9tlo2KvVUbUP6w== X-Received: by 2002:a5d:6045:: with SMTP id j5mr15467570wrt.209.1593416466457; Mon, 29 Jun 2020 00:41:06 -0700 (PDT) Received: from CBGR90WXYV0 (54-240-197-225.amazon.com. [54.240.197.225]) by smtp.gmail.com with ESMTPSA id w7sm28677309wmc.32.2020.06.29.00.41.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2020 00:41:06 -0700 (PDT) From: Paul Durrant X-Google-Original-From: "Paul Durrant" To: "'Andrew Cooper'" , "'Xen-devel'" References: <20200626170038.27650-1-andrew.cooper3@citrix.com> In-Reply-To: <20200626170038.27650-1-andrew.cooper3@citrix.com> Subject: RE: [PATCH] tools/configure: drop BASH configure variable Date: Mon, 29 Jun 2020 08:41:05 +0100 Message-ID: <000201d64de8$a5938bf0$f0baa3d0$@xen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQG/+PmFeHEa0PFXsi/qRsJidKaVMqkb3yeQ 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: , Reply-To: paul@xen.org Cc: 'Ian Jackson' , 'Daniel De Graaf' , 'Wei Liu' Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" > -----Original Message----- > From: Andrew Cooper > Sent: 26 June 2020 18:01 > To: Xen-devel > Cc: Andrew Cooper ; Ian Jackson ; Wei Liu > ; Daniel De Graaf ; Paul Durrant > Subject: [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. > > Make the mkflask.sh and mkaccess_vector.sh scripts executable, drop the > CONFIG_SHELL, and drop the $BASH variable to prevent further use. > > Signed-off-by: Andrew Cooper > --- > CC: Ian Jackson > CC: Wei Liu > CC: Daniel De Graaf > CC: Paul Durrant > > ./autogen.sh needs rerunning on commit. > > RFC for 4.14. This is a cleanup to the build system. > > There is a separate check for [BASH] in the configure script, which is > checking the requirement for the Linux hotplug scripts. Really, that is a > runtime requirement not a build time requirement, and it is rude to require > bash in a build environment on this basis. IMO, that check wants dropping as > well. That sounds quite reasonable. Release-acked-by: Paul Durrant > --- > config/Tools.mk.in | 1 - > tools/configure.ac | 1 - > xen/xsm/flask/Makefile | 8 ++------ > xen/xsm/flask/policy/mkaccess_vector.sh | 0 > xen/xsm/flask/policy/mkflask.sh | 0 > 5 files changed, 2 insertions(+), 8 deletions(-) > mode change 100644 => 100755 xen/xsm/flask/policy/mkaccess_vector.sh > mode change 100644 => 100755 xen/xsm/flask/policy/mkflask.sh > > diff --git a/config/Tools.mk.in b/config/Tools.mk.in > index 23df47af8d..48bd9ab731 100644 > --- a/config/Tools.mk.in > +++ b/config/Tools.mk.in > @@ -12,7 +12,6 @@ PYTHON := @PYTHON@ > PYTHON_PATH := @PYTHONPATH@ > PY_NOOPT_CFLAGS := @PY_NOOPT_CFLAGS@ > PERL := @PERL@ > -BASH := @BASH@ > XGETTTEXT := @XGETTEXT@ > AS86 := @AS86@ > LD86 := @LD86@ > diff --git a/tools/configure.ac b/tools/configure.ac > index 9d126b7a14..6614a4f130 100644 > --- a/tools/configure.ac > +++ b/tools/configure.ac > @@ -297,7 +297,6 @@ AC_ARG_VAR([PYTHON], [Path to the Python parser]) > AC_ARG_VAR([PERL], [Path to Perl parser]) > AC_ARG_VAR([BISON], [Path to Bison parser generator]) > AC_ARG_VAR([FLEX], [Path to Flex lexical analyser generator]) > -AC_ARG_VAR([BASH], [Path to bash shell]) > AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) > AC_ARG_VAR([AS86], [Path to as86 tool]) > AC_ARG_VAR([LD86], [Path to ld86 tool]) > diff --git a/xen/xsm/flask/Makefile b/xen/xsm/flask/Makefile > index 07f36d075d..ba8f31a02c 100644 > --- a/xen/xsm/flask/Makefile > +++ b/xen/xsm/flask/Makefile > @@ -8,10 +8,6 @@ CFLAGS-y += -I./include > > AWK = awk > > -CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ > - else if [ -x /bin/bash ]; then echo /bin/bash; \ > - else echo sh; fi ; fi) > - > FLASK_H_DEPEND = policy/security_classes policy/initial_sids > AV_H_DEPEND = policy/access_vectors > > @@ -24,14 +20,14 @@ extra-y += $(ALL_H_FILES) > > mkflask := policy/mkflask.sh > quiet_cmd_mkflask = MKFLASK $@ > -cmd_mkflask = $(CONFIG_SHELL) $(mkflask) $(AWK) include $(FLASK_H_DEPEND) > +cmd_mkflask = $(mkflask) $(AWK) include $(FLASK_H_DEPEND) > > $(subst include/,%/,$(FLASK_H_FILES)): $(FLASK_H_DEPEND) $(mkflask) FORCE > $(call if_changed,mkflask) > > mkaccess := policy/mkaccess_vector.sh > quiet_cmd_mkaccess = MKACCESS VECTOR $@ > -cmd_mkaccess = $(CONFIG_SHELL) $(mkaccess) $(AWK) $(AV_H_DEPEND) > +cmd_mkaccess = $(mkaccess) $(AWK) $(AV_H_DEPEND) > > $(subst include/,%/,$(AV_H_FILES)): $(AV_H_DEPEND) $(mkaccess) FORCE > $(call if_changed,mkaccess) > diff --git a/xen/xsm/flask/policy/mkaccess_vector.sh b/xen/xsm/flask/policy/mkaccess_vector.sh > old mode 100644 > new mode 100755 > diff --git a/xen/xsm/flask/policy/mkflask.sh b/xen/xsm/flask/policy/mkflask.sh > old mode 100644 > new mode 100755 > -- > 2.11.0