From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Trevor Woerner <twoerner@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/3] oe-buildenv-internal: Only add to $PATH if needed
Date: Tue, 09 Apr 2013 19:12:56 +0100 [thread overview]
Message-ID: <1900245.DLqfxs0so2@helios> (raw)
In-Reply-To: <CAHUNapTps6emz9UTtLgKer5yuLzh8haJyg3V=8yTzfxbZRd8rQ@mail.gmail.com>
On Tuesday 09 April 2013 13:34:43 Trevor Woerner wrote:
> On Tue, Apr 9, 2013 at 1:29 PM, Trevor Woerner <twoerner@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
next prev parent reply other threads:[~2013-04-09 18:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 16:59 [PATCH 0/3] Fixes for oe-init-build-env Peter Kjellerstedt
2013-04-05 16:59 ` [PATCH 1/3] oe-setup-builddir: Allow $OECORENOTESCONF to not exist Peter Kjellerstedt
2013-04-05 16:59 ` [PATCH 2/3] oe-buildenv-internal: Only add to $PATH if needed Peter Kjellerstedt
2013-04-08 17:31 ` Trevor Woerner
2013-04-08 17:48 ` Paul Eggleton
2013-04-08 22:40 ` Chris Larson
2013-04-09 10:01 ` Peter Kjellerstedt
2013-04-09 14:44 ` Chris Larson
2013-04-09 17:29 ` Trevor Woerner
2013-04-09 17:34 ` Trevor Woerner
2013-04-09 18:12 ` Paul Eggleton [this message]
2013-04-09 17:40 ` Khem Raj
2013-04-09 22:14 ` Mark Hatle
2013-04-05 16:59 ` [PATCH 3/3] oe-init-build-env: Make it use the correct $OEROOT with zsh Peter Kjellerstedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1900245.DLqfxs0so2@helios \
--to=paul.eggleton@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=twoerner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox