From owner-freebsd-stable@FreeBSD.ORG Sun Aug 3 16:09:42 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 BF9BD106567B for ; Sun, 3 Aug 2008 16:09:42 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by mx1.freebsd.org (Postfix) with ESMTP id 702D18FC08 for ; Sun, 3 Aug 2008 16:09:42 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1515577wra.27 for ; Sun, 03 Aug 2008 09:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=5QDf0NTUm3awBetausw4FAFiokcv9ZILTODDx/M7jt4=; b=H9BmP8CXCNQSnAtRvWAtXBImXA+xMZRYHO4tEnn1j0h0LVw8jGyEFhtauYTRuQpAiv SF/g6RB8b5u+DTNts341yFQkTWVcoBkK4ETDGCnSjkZj+cA3ijCmd+UwIODubI8B0Snk tvE2ct6S9U4i1G1wZMOcIQ2NNkkUjq44ZsVEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=atyhy5M59mD4HEDWIR43pSjV9RxsT2hyKz7lA6G4NoMD1S5lyBvl3QYI6HoDihwq6V AZozGbTkLFAuG2t3p6c7hX0m9ipN+/jnt5cvzOOxhu+gtgPhRTfdsNrwfDIgGOAyOz+2 2YyZ9cnik+/BpyZCKkx8RYAezCeN5Fc95rEvE= Received: by 10.90.92.14 with SMTP id p14mr15752446agb.84.1217778120917; Sun, 03 Aug 2008 08:42:00 -0700 (PDT) Received: from ?10.0.3.231? ( [70.111.2.146]) by mx.google.com with ESMTPS id g5sm7737965wra.33.2008.08.03.08.41.59 (version=SSLv3 cipher=RC4-MD5); Sun, 03 Aug 2008 08:42:00 -0700 (PDT) From: "Alexandre \"Sunny\" Kovalenko" To: Luigi Rizzo In-Reply-To: <20080802225643.GA84798@onelab2.iet.unipi.it> 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> Content-Type: text/plain; charset=utf-8 Date: Sun, 03 Aug 2008 11:41:49 -0400 Message-Id: <1217778109.953.23.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: 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 16:09:42 -0000 On Sun, 2008-08-03 at 00:56 +0200, 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. With > ... > > If we're ever to consider building images for flash parts (not 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). > > related to this thread -- does anyone have experience in trying > to build busybox on FreeBSD ? > > Also, what would you suggest as a small scripting language to be used > in this kind of platform for implementing CGI scripts (and preferably > able to use sockets/select) ? Tcl? # ls -l /usr/local/bin/tclsh8.5 -rwxr-xr-x 1 root wheel 9369 Jul 23 20:16 /usr/local/bin/tclsh8.5 # ldd /usr/local/bin/tclsh8.5 /usr/local/bin/tclsh8.5: libtcl85.so => /usr/local/lib/libtcl85.so (0x2807b000) libm.so.5 => /lib/libm.so.5 (0x28167000) libc.so.7 => /lib/libc.so.7 (0x2817c000) # ls -l /usr/local/lib/libtcl85.so lrwxr-xr-x 1 root wheel 13 Jul 23 20:16 /usr/local/lib/libtcl85.so -> libtcl85.so.1 # ls -l /usr/local/lib/libtcl85.so.1 -r-xr-xr-x 1 root wheel 4146961 Jul 23 20:16 /usr/local/lib/libtcl85.so.1 # ldd /usr/local/lib/libtcl85.so.1 /usr/local/lib/libtcl85.so.1: libm.so.5 => /lib/libm.so.5 (0x2826f000) libc.so.7 => /lib/libc.so.7 (0x2807e000) It's socket support was good enough for me to have written variety of network clients in it (POP3, LPD, NNTP), and it is fairly easy to extend further as needed. Shared library above could be built in statically for some gain in size and start-up speed, or left as-is if you are running your own things with Tcl interpreter built-in. HTH, -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)