[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] configure: disable bash check for FreeBSD



On 13/02/17 15:59, Wei Liu wrote:
> On Mon, Feb 13, 2017 at 03:49:14PM +0000, Roger Pau Monne wrote:
>> Sorry, I've forgot to re-generate the patch after adding the maintainers...
>>
>> On Mon, Feb 13, 2017 at 03:47:38PM +0000, Roger Pau Monne wrote:
>>> Bash it's not used on FreeBSD.
>>>
>>> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
>>> ---
>>> Please re-run autoconf after applying
>>> ---
>>>  tools/configure.ac | 6 +++++-
>>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/tools/configure.ac b/tools/configure.ac
>>> index 873e18d..28a539c 100644
>>> --- a/tools/configure.ac
>>> +++ b/tools/configure.ac
>>> @@ -320,7 +320,11 @@ AS_IF([test "x$xsmpolicy" = "xy"], [
>>>          xsmpolicy="n"
>>>      ])
>>>  ])
>>> -AX_PATH_PROG_OR_FAIL([BASH], [bash])
>>> +dnl FreeBSD doesn't require bash (hotplug scripts are in plain sh)
> I am not sure I follow this comment.  It implies hotplug scripts are the
> only shell scripts that we ship or care and this check here is
> specifically for that purpose.
>
> If this comment is correct, isn't it better to just  remove this check?
> AFAICT sh is standard.  If this comment is not correct, should we check
> for the desired shell in FreeBSD?

As an upstream, everything we publish should be sh-compatible.  Even on
some Linux distros, it is common for the default shell to be dash rather
than bash.

If our scripts aren't sh-compatible, we should make them so.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.