[Buildroot] shell issues when /bin/sh is 'dash' instead of 'bash'
wberrier at gmail.com
Wed Dec 31 23:04:37 UTC 2008
There are a few Makefiles that rely on some bash specific code:
(grep used to, but was fixed by Jacmet circa 6 months ago)
The culprit is the "-ot" operator. From the advanced bash scripting guide:
[ FILE1 -ot FILE2 ] True if FILE1 is older than FILE2, or is FILE2
exists and FILE1 does not.
'dash' doesn't follow the "or is FILE2 exists and FILE1 does not." portion.
The result is that some files don't get installed into the target
system when /bin/sh points to dash (like on recent ubuntu and debian?
Attached is a patch to use CONFIG_SHELL.
Question: is this the best way to fix this? Or maybe these packages
should be fixed more in the style of how Jacmet fixed grep? (see
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4161 bytes
Desc: not available
More information about the buildroot