[maemo-developers] [maemo-developers] Re: Maemo and Ubuntu Edgy: Is it safe?

From: David Weinehall david.weinehall at nokia.com
Date: Wed Oct 18 12:14:44 EEST 2006
On ons, 2006-10-18 at 10:06 +0100, ext Ross Burton wrote:
> On Wed, 2006-10-18 at 10:47 +0300, Santtu Lakkala wrote:
> > Murray Cumming wrote:
> > > Has anyone upgraded to Ubuntu Edgy yet? Is the maemo/scratchbox
> > > environment working OK with it?
> > 
> > Edgy has changed the default shell (/bin/sh) to dash (from bash), and
> > the scratchbox pre/postinst scripts don't like it too much. After
> > changing the shell back to bash everything went smoothly, and sbox is
> > working just fine.
> 
> Has someone reported this to scratchbox so the scripts are updated to
> ask for bash instead of sh?

That's the wrong approach.  The scripts should be fixed to use standard
POSIX-features instead of bashism instead.  From a brief look, it mainly
seems to be a case of fixing the usual things:


bashism / POSIX:
== / =

[ ... -o ... ] / [ ... ] || [ ... ]

[ ... -a ... ] / [ ... ] && [ ... ]


I'll run chkevil on the scratchbox scripts when I have some time for it.


Regards: David

More information about the maemo-developers mailing list