Busybox build problem

Natanael Copa natanael.copa at gmail.com
Sat Feb 17 19:28:13 PST 2007


On Sat, 17 Feb 2007 16:54:40 +0100
Denis Vlasenko <vda.linux at googlemail.com> wrote:

> On Saturday 17 February 2007 03:49, Ravi Chemudugunta wrote:
> > # make allnoconfig; make
> > 
> >   LINK    busybox_unstripped
> > /home/brion/busybox-1.4.1/scripts/trylink: 5: function: not found

Without looking at the code, this could probably be walked around by
s/sh/bash/ on first line.

> > /home/brion/busybox-1.4.1/scripts/trylink: 11: Syntax error: "}" unexpected
> > make: *** [busybox_unstripped] Error 2
> > 
> > This error occurs on *ubuntu due to the use of dash as the default
> > shell (sh->dash).  the scripts included were designed with bash which
... 
> Unfortunately it means that fixing just busybox's stripts
> is not a solution - there are tons of other shell scripts
> lying aroung.
> 
> dash should support "function". It shouldn't be too hard - 

Since busybox ash is based on dash, this applies to busybox ash too.

I am using gentoo's bash centric init scripts, patching them to work
with busybox's ash. Its amazing how much really works in dash/ash and
most things that don't work are this kind of "meaningless" bash
features that just add bloat to your shell and can easy be avoided by
doing simple changes in the script. (like removing the "function"
keyword from function declarations)

I'd prefer people stop using bash specific things, rather than trying
to patch all shells to support all bash wierdness.

Natanael


More information about the busybox mailing list