Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] shell issues when /bin/sh is 'dash' instead of 'bash'
@ 2008-12-31 23:04 Wade Berrier
  2009-01-01  2:36 ` Hamish Moffatt
  0 siblings, 1 reply; 6+ messages in thread
From: Wade Berrier @ 2008-12-31 23:04 UTC (permalink / raw)
  To: buildroot

Hi,

There are a few Makefiles that rely on some bash specific code:

findutils
sed
tar
tftpd

(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?
distros)

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
http://sources.uclibc.org/index.py/trunk/buildroot/package/grep/grep.mk?r1=22930&r2=22931
)

Feedback?

Wade
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot-CONFIG_SHELL.patch
Type: text/x-diff
Size: 4161 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20081231/8cefe290/attachment.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-05  8:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-31 23:04 [Buildroot] shell issues when /bin/sh is 'dash' instead of 'bash' Wade Berrier
2009-01-01  2:36 ` Hamish Moffatt
2009-01-01 14:40   ` Wade Berrier
2009-01-01 20:43   ` Peter Korsgaard
2009-01-04 21:53   ` Nicolas Pitre
2009-01-05  8:53     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox