Re: busybox bloat

2001-09-04 Thread Clint Adams
> True. But -v is specified by SuS and is in the Austin Draft. Incidentally, > the command type is also specified by the two documents. `type' is X/Open, no? Perhaps Debian policy should be revised to require support for SuS instead of POSIX. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] wi

Re: busybox bloat

2001-09-04 Thread Herbert Xu
Clint Adams <[EMAIL PROTECTED]> wrote: > command is mandated. > command -v is optional. > Therefore the above snippet might echo > 'your system is broken' on a POSIX-compliant > system. True. But -v is specified by SuS and is in the Austin Draft. Incidentally, the command type is also specifi

Re: busybox bloat

2001-09-04 Thread Clint Adams
> `command' > > if (command -v chmod > /dev/null 2>&1) ; then > chmod go-w /foobar > else > echo 'your system is broken' 2>&1 > exit 1 > fi > > its a shell builtin mandated by posix. > > version of busybox is 0.61-1 command is mandated. command -v is optional. Therefore the

Re: busybox bloat

2001-09-03 Thread Ethan Benson
On Mon, Sep 03, 2001 at 11:16:17AM -0600, Erik Andersen wrote: > On Mon Sep 03, 2001 at 04:48:03AM -0800, Ethan Benson wrote: > > On Sun, Sep 02, 2001 at 11:48:13PM -0600, Erik Andersen wrote: > > > > > > I consider it a full replacement, and with have now had several releases > > > with the busy

Re: busybox bloat

2001-09-03 Thread Ethan Benson
On Mon, Sep 03, 2001 at 11:13:28AM -0600, Erik Andersen wrote: > > I just did a quick check -- disabling both dirname and basename will > save exactly 256 bytes on x86. Worth it? yes, we need every byte we can get. powerpc binaries are always larger then i386 anyway, and we are really hurting.

Re: busybox bloat

2001-09-03 Thread Erik Andersen
On Mon Sep 03, 2001 at 01:47:47AM -0800, Ethan Benson wrote: > On Sun, Sep 02, 2001 at 11:48:13PM -0600, Erik Andersen wrote: > > > removing ar along i imagine would not gain very much, but then again > > > we need every byte we can get. > > > > For the current set of busybox applets, I've made a

Re: busybox bloat

2001-09-03 Thread Erik Andersen
On Mon Sep 03, 2001 at 04:48:03AM -0800, Ethan Benson wrote: > On Sun, Sep 02, 2001 at 11:48:13PM -0600, Erik Andersen wrote: > > > > I consider it a full replacement, and with have now had several releases > > with the busybox ash shell. There are no known bugs... > > heres one, command is not

Re: busybox bloat

2001-09-03 Thread Ethan Benson
On Sun, Sep 02, 2001 at 11:48:13PM -0600, Erik Andersen wrote: > > I consider it a full replacement, and with have now had several releases > with the busybox ash shell. There are no known bugs... heres one, command is not implemented (its posix last i checked). this breaks yabootconfig, ybin,

Re: busybox bloat

2001-09-03 Thread Ethan Benson
On Sun, Sep 02, 2001 at 11:48:13PM -0600, Erik Andersen wrote: > > removing ar along i imagine would not gain very much, but then again > > we need every byte we can get. > > For the current set of busybox applets, I've made a best guess as > to what is likely to be needed. If somone can find s

Re: busybox bloat

2001-09-02 Thread Erik Andersen
On Sun Sep 02, 2001 at 04:53:08AM -0800, Ethan Benson wrote: > On Mon, Sep 03, 2001 at 06:37:20AM +1000, Glenn McGrath wrote: > > > > If we use busybox dpkg-deb instead of ar and tar it will reduce busybox by > > about 6.5kB (by my calculations), one of the reasons being that most of > > the busy

Re: busybox bloat

2001-09-02 Thread Ethan Benson
On Mon, Sep 03, 2001 at 07:30:07AM +1000, Herbert Xu wrote: > Ethan Benson <[EMAIL PROTECTED]> wrote: > > > we can also save about 10 or 12k using the ash udeb as its compiled > > -Os instead of -O2. > > Actually, most of the saving only applies to i386 as it comes from my figures are from a

Re: busybox bloat

2001-09-02 Thread Ethan Benson
On Sun, Sep 02, 2001 at 05:52:26PM +0200, Goswin Brederlow wrote: > Ethan Benson <[EMAIL PROTECTED]> writes: > > > The root disk is currently too bloated, on pmac and chrp its already > > too large to fit on a 1.44MB floppy. > > Did you use mklibs.sh or mklibs.py? If the former try the later.

Re: busybox bloat

2001-09-02 Thread Herbert Xu
Ethan Benson <[EMAIL PROTECTED]> wrote: > we can also save about 10 or 12k using the ash udeb as its compiled > -Os instead of -O2. Actually, most of the saving only applies to i386 as it comes from ifeq ($(DEB_BUILD_ARCH),i386) OPTSM += \ -malign-loops=0 -malign-jumps=0 -malign-funct

Re: busybox bloat

2001-09-02 Thread Goswin Brederlow
Ethan Benson <[EMAIL PROTECTED]> writes: > The root disk is currently too bloated, on pmac and chrp its already > too large to fit on a 1.44MB floppy. Did you use mklibs.sh or mklibs.py? If the former try the later. And please, if mklibs.py doesn't work send me a logfile with verry verbose ou

Re: busybox bloat

2001-09-02 Thread Ethan Benson
On Mon, Sep 03, 2001 at 06:45:41AM +1000, Glenn McGrath wrote: > On Mon, 3 Sep 2001 06:37:20 +1000 > "Glenn McGrath" <[EMAIL PROTECTED]> wrote: > > > > If we use busybox dpkg-deb instead of ar and tar it will reduce busybox > by > > about 6.5kB (by my calculations), > > My caclulations were wron

Re: busybox bloat

2001-09-02 Thread Ethan Benson
On Mon, Sep 03, 2001 at 06:37:20AM +1000, Glenn McGrath wrote: > > If we use busybox dpkg-deb instead of ar and tar it will reduce busybox by > about 6.5kB (by my calculations), one of the reasons being that most of > the busybox unarchiving applets have been reorganised, however tar hasnt > been

Re: busybox bloat

2001-09-02 Thread Glenn McGrath
On Mon, 3 Sep 2001 06:37:20 +1000 "Glenn McGrath" <[EMAIL PROTECTED]> wrote: > > If we use busybox dpkg-deb instead of ar and tar it will reduce busybox by > about 6.5kB (by my calculations), My caclulations were wrong, it will only save 3.5kB, still i think its better to use dpkg-deb as it shou

Re: busybox bloat

2001-09-02 Thread Glenn McGrath
On Sun, 2 Sep 2001 00:04:22 -0800 "Ethan Benson" <[EMAIL PROTECTED]> wrote: > > The root disk is currently too bloated, on pmac and chrp its already > too large to fit on a 1.44MB floppy. > > looking at busybox there is plenty of bloat that can be removed, i was > able to bring /bin/busybox (

busybox bloat

2001-09-02 Thread Ethan Benson
The root disk is currently too bloated, on pmac and chrp its already too large to fit on a 1.44MB floppy. looking at busybox there is plenty of bloat that can be removed, i was able to bring /bin/busybox (current 0.61-1) down from 200792 bytes to 153088, a nearly 47k decrease. i have attach