[yocto] [meta-raspberrypi][PATCH 1/2] sdcard_image-rpi.bbclass: Fix error in conditional test

Andrei Gherzan andrei at gherzan.ro
Wed May 1 12:10:25 PDT 2013


On Thu, Apr 25, 2013 at 2:59 PM, Paul Barker <paul at paulbarker.me.uk> wrote:

> On 25 April 2013 13:51, Seth Bollinger <seth.boll at gmail.com> wrote:
> > On Thu, Apr 25, 2013 at 7:38 AM, Paul Barker <paul at paulbarker.me.uk>
> wrote:
> >>
> >> '[[' should be a bash builtin. What host OS are you using for the build?
> >
> > I'm using debian.  I'll check what the default shell is.  You're right,
> it's
> > probably dash.
> >
>
> Try 'sudo dpkg-reconfigure dash'.
>
> > However, should this fail silently then?  In this instance I only saw the
> > error with debug enabled.  Otherwise it silently tried to dd a compressed
> > image to the sd card.  Of course this didn't run.  :)
> >
>
> I assume that 'if' tries to run the command, gets a non-zero return
> value as the command doesn't run and just interprets this as the
> command running but returning non-zero.
>
>
I think I asked Seth a while ago and he confirmed that bash was his shell. I
thought about dash as well. But as a matter of fact we should remove
bashisms and make things as usable as possible. So maybe his patch makes
sense after all.


-- 
*Andrei Gherzan*
m: +40.744.478.414 |  f: +40.31.816.28.12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130501/e5a6d31b/attachment.html>


More information about the yocto mailing list