[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build system failure (first try)

Thanks to all.

The problem is solved by adding SHELL=/bin/bash in Makefile.

For your information, the distro used is Debian Squeeze. The default
shell is bash but the "/bin/sh" symlink used dash.

Bests regards, Olivier Goudron

On 3 mai, 06:45, Douglas Jerome <[email protected]> wrote:
> Jeff Pohlmeyer wrote:
> > On Mon, May 2, 2011 at 11:13 PM, Douglas Jerome wrote:
> >> Yes, the problem is that bash is not the shell interpreting
> >> the ttylinux build scripts, but it needs to be.
> >> Install bash.
> > If i'm not mistaken, bash is already installed on Ubuntu, the difference
> > is that /bin/sh is a symlink to dash, not bash as it is on most other
> > distros. It's possible that re-installing bash might change that symlink
> > but that really isn't the proper fix. Ubuntu depends on dash being the
> > default /bin/sh to help speed up its ultra-bloated boot process.
> > Changing the symlink to bash will slow down the boot up but is probably
> > harmless otherwise. But scripts that depend on bash-specific functions
> > should really specify #!/bin/bash and not #!/bin/sh.
> > - Jeff
> Oops, if that's the case then it is a problem with Makefile
> because all the ttylinux build scripts have #!/bin/bash
> The Makefile has ". ./ttylinux-config.sh" and that probably
> depends upon the SHELL variable in the make environment, which
> is not set and therefore must be /bin/sh
> Make the ttylinux-src-mp8/Makefile file be writeable with
> "chmod 644 Makefile", and at line 72 in ttylinux-src-mp8/Makefile
> add another new line "SHELL=/bin/bash" so Makefile looks like:
>      SHELL=/bin/bash
>      # -- Single-Package Target
>      #
>      PACKAGE=""