JHALFS - BLFS /bin/sh > /bin/dash nitpic
trent.shea at gmail.com
Tue May 19 22:11:02 PDT 2009
On Tuesday 19 May 2009 21:03:49 Bruce Dubbs wrote:
> Trent Shea wrote:
> > Hello,
> > I just started to work with jhalfs and BLFS and believe that I have come
> > across a bug.
> > The first package I installed was dash, which went smooth. The second
> > package failed with the following:
> > /bin/sh: source: not found
> > It turns out that dash does not recognize 'source,' but rather '.'. I
> > tried a number of shells, the majority accept '.' or 'source'.
> > After a bit of reading (IEEE Std 1003.1, 2004 Edition) it appears that
> > you may set the makefile's shell with the variable 'SHELL' to get around
> > this. And furthermore setting 'SHELL' in the makefile leaves the
> > environment variable untouched for any scripts that the Makefile runs.
> > I've confirmed the behaviour described above on my system. If someone
> > could confirm it would a patch to set 'SHELL=/bin/bash' in
> > 'BLFS/gen-makefile.sh' be considered?
> The LFS book, iv. Host System Requirements, already says:
> "Your host system should have the following software with the minimum
> versions indicated.
> Bash-2.05a (/bin/sh should be a symbolic or hard link to bash)"
> -- Bruce
Good point. It is fair to assume that BLFS builds on LFS. Perhaps this should
be brought to blfs-dev and the dash package adjusted then? The 'ln -svf dash
/bin/sh' command could be moved to the command explanations section like in
the tcsh package's example.
More information about the alfs-discuss