From owner-freebsd-stable@FreeBSD.ORG Sun Aug 3 03:16:20 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 176A31065678 for ; Sun, 3 Aug 2008 03:16:20 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (diana.db.net [204.228.224.242]) by mx1.freebsd.org (Postfix) with ESMTP id E71918FC19 for ; Sun, 3 Aug 2008 03:16:19 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net ([204.228.224.242] helo=localhost ident=mailnull) by diana.db.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1KPU4v-0003IL-KG; Sat, 02 Aug 2008 21:16:17 -0600 Received: from diana.db.net ([127.0.0.1] helo=localhost) (envelope-from ) id 1KPU4t-000C6H-SE; Sat, 02 Aug 2008 23:16:15 -0400 Date: Sat, 2 Aug 2008 23:16:15 -0400 From: Diane Bruce To: Jeremy Chadwick Message-ID: <20080803031615.GA46483@night.db.net> References: <372128.56919.qm@web51502.mail.re2.yahoo.com> <20080802.002039.58462077.imp@bsdimp.com> <4894A9D8.2090606@freebsd.org> <20080802225643.GA84798@onelab2.iet.unipi.it> <4894E8C3.5060004@freebsd.org> <20080802233814.GA25565@eos.sc1.parodius.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080802233814.GA25565@eos.sc1.parodius.com> User-Agent: Mutt/1.4.2.3i Cc: Luigi Rizzo , fbsd2@yahoo.com, Sam Leffler , freebsd-stable@freebsd.org Subject: Re: busybox and small scripting languages on FreeBSD ? (was Re: 80 Mb / enough for 7.x? OK to delete /stand/ and /modules/ ?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 03:16:20 -0000 On Sat, Aug 02, 2008 at 04:38:14PM -0700, Jeremy Chadwick wrote: > On Sat, Aug 02, 2008 at 04:07:47PM -0700, Sam Leffler wrote: > > Luigi Rizzo wrote: > >> On Sat, Aug 02, 2008 at 11:39:20AM -0700, Sam Leffler wrote: > >> ... > >>> I've been looking at nanobsd for a couple of applications and working > >>> to reduce the footprint of the images without hacking special rules. ... > >>> compact flash) then we'll need to do a lot of work to pare down the > >>> bloat--or replace current apps w/ special purpose replacements a la > >>> busybox (not something I find appealing). What's wrong with /rescue being used for this? ls -ltai /rescue 70662 -r-xr-xr-x 121 root wheel 3728352 Jul 22 14:56 [ 70662 -r-xr-xr-x 121 root wheel 3728352 Jul 22 14:56 atacontrol 70662 -r-xr-xr-x 121 root wheel 3728352 Jul 22 14:56 atmconfig Still a little too large? gzipped it's a little less -r-xr-xr-x 1 db wheel 1772385 Aug 2 23:11 /tmp/vi.gz I bet it would be easier to trim down the number of utilities in /rescue to make a smaller image than to make busybox go. > >> related to this thread -- does anyone have experience in trying > >> to build busybox on FreeBSD ? > > > > My last experience w/ busybox was >1 year ago and I'm not sure I was > > using anything close to up to date, but...it was utterly linux-specific. > > Given what it does and what I saw in the code I'd be more inclined to > > write one from scratch. busybox is the worst pile of doggie doo doo I have ever had the misfortune to see. It should be put into a brown paper bag and set on fire after putting it on RMS's doorstep and ringing the doorbell. - Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db