busybox and small scripting languages on FreeBSD ? (was Re: 80 Mb / enough for 7.x? OK to delete /stand/ and /modules/ ?)

Alexandre "Sunny" Kovalenko gaijin.k at gmail.com
Sun Aug 3 16:09:42 UTC 2008

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) ?

# 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
	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 ->
# 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
	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.

Alexandre "Sunny" Kovalenko (Олександр Коваленко)

More information about the freebsd-stable mailing list