[Aboriginal] dev-environment.sh depends on gnu coreutils

John Spencer maillist-aboriginal at barfooze.de
Sun Mar 2 11:57:27 PST 2014

Rob Landley wrote:
> On 02/28/14 09:02, John Spencer wrote:
>> on my busybox install (sabotage linux):
>> ~/qemu/system-image-sh4 $ HDBMEGS=2048 ./dev-environment.sh
>> ./dev-environment.sh: line 44: truncate: command not found
> It's been in toybox since 2011:

so what ? it's by no measure a *standard* command at all.
just that you implemented it for toybox doesnt make it any more portable.
this is the first script i've encountered in my whole life that uses 
this exotic command.

> http://landley.net/hg/toybox/rev/396
> I've been losing track of what busybox does or doesn't have, I pretty
> much only use the busybox-baseconfig non-toybox subset these days.
>> i suspect there's a portable command that could be used instead, for
>> example
>> dd if=/dev/zero of="$imagefile" bs=1 count=0 seek="$imagesize"
>> creates a spare file of the required size in 0.0 seconds.
> It used to be using that:
> http://landley.net/hg/aboriginal/rev/1630

reasoning for replacing a standard command with a non-standard one:
"It's been long enough since "truncate" was introduced"

huh ? you're meaning introduced to toybox ? so do you want to force 
anyone that wants to use aboriginal to install toybox just to be able to 
use some shell scripts ? come on, this is silly.

my interest to compile alpha toybox is *zero*, and i dont plan to 
replace busybox with it until it's seen at least a decade of thorough 
testing in embedded products all over the world.
so at the current development speed this is 20 years in the future.

it's bad enough that you still stick with GNU bash scripts despite your 
GNU hate.

> Feel free to locally revert that patch, but the proper fix is either for
> busybox to implement truncate or for me to finish toybox. :)

no, the proper fix is to use a portable command, i.e. revert the patch 
"globally" in aboriginal.


More information about the Aboriginal mailing list