[Buildroot] [PATCH] support: properly check for bash as a dependency
Peter Korsgaard
jacmet at uclibc.org
Mon Mar 17 22:01:21 UTC 2014
>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
> Peter, All,
>> Is that really still an issue? I just checked a few of the machines I
>> often do buildroot builds on and they all have /bin/sh == dash.
> Some configure-y scripts will run with /bin/sh, but have bashisms in them.
> It was reported on IRC by Andrew that switching the system shell from
> dash to bash fixed an issue (Andrew, was that with libxml2?).
I don't think it is libxml2 as the stuff I'm currently doing at $WORK
uses libxml2 and I haven't seen any issues with /bin/sh = dash.
>> > -# Check bash
>> > -if ! $SHELL --version 2>&1 | grep -q '^GNU bash'; then
>> > +# Check bash is the system shell
>> > +if ! /bin/sh --version 2>&1 | grep -q '^GNU bash'; then
>>
>> FYI, dash doesn't even understand a --version argument:
> Yes, but it surely does not return something matching "^GNU bash" which
> is all we care about.
True.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list