Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] helper tool handling in build system (sed/install/...)
@ 2010-12-08  8:50 Mike Frysinger
  2010-12-08 19:26 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-12-08  8:50 UTC (permalink / raw)
  To: buildroot

i cant seem to figure out why we bother looking up the full path:
	SED:=$(shell which sed || type -p sed) -i -e

we dont build up host versions, nor do we have to worry about them being found 
in the cross-compiled PATH since we arent adding that to the host PATH.  the 
only things this which/type logic is doing is shortcutting the shell's 
implicit PATH lookup -- which is pretty much useless since it isnt saving us 
any forks.  if anything, it just adds shell overhead whenever someone does 
`make` because of the usage of ":=".

further, it isnt like we're trying to be portable.  the sed's -i usage is 
purely GNU and not POSIX compliant at all.  which makes me wonder why the -e 
is even there since the default behavior of `sed` is to treat the first 
argument as a script.  and then makes me wonder why we have $(SED) at all -- 
there are plenty of places in the dist where people just go through `sed`.

so am i missing something or is this all purely vestigial ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101208/25fae0b3/attachment.pgp>

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

end of thread, other threads:[~2010-12-08 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08  8:50 [Buildroot] helper tool handling in build system (sed/install/...) Mike Frysinger
2010-12-08 19:26 ` Thomas Petazzoni

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