[OE-core] [PATCH 2/3] oe-buildenv-internal: Only add to $PATH if needed
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Apr 9 18:12:56 UTC 2013
On Tuesday 09 April 2013 13:34:43 Trevor Woerner wrote:
> On Tue, Apr 9, 2013 at 1:29 PM, Trevor Woerner <twoerner at gmail.com> wrote:
> > Under which shells do we expect a Yocto build to succeed?
>
> Whoops! My bad.
>
> sh -> yes
> bash -> not so much
>
> Let me rephrase: are bash-specific features to be so feared?
If we can avoid them, yes. The stuff we absolutely must not have is:
* bashisms in scripts that start with #!/bin/sh as opposed to #!/bin/bash (and
for scripts that are installed on the target we try to avoid the latter as it
just means bash has to be installed on the target as well, which is often not
desirable)
* bashisms in shell functions within recipes since these are executed under
/bin/sh
Even if we were to ignore alternative shells such as zsh and tcsh, bashisms in
the above cases will cause breakages on Ubuntu (where /bin/sh is dash by
default). From the denzil (Yocto Project 1.2) release onwards we have been
stamping out bashisms and trying to avoid introducing any new ones.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list