From owner-cvs-all Wed Jun 7 15:59:24 2000 Delivered-To: cvs-all@freebsd.org Received: from overcee.netplex.com.au (peter1.corp.yahoo.com [208.48.107.4]) by hub.freebsd.org (Postfix) with ESMTP id C635837B854; Wed, 7 Jun 2000 15:59:08 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 59FCE1CE1; Wed, 7 Jun 2000 15:58:58 -0700 (PDT) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Doug Rabson Cc: Josef Karthauser , "Matthew N. Dodd" , "Jordan K. Hubbard" , Mike Smith , "Andrey A. Chernov" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: static binaries (was Re: cvs commit: src/bin/ls extern.h ls.1 ls.c ls.h print.c ) In-Reply-To: Message from Doug Rabson of "Mon, 05 Jun 2000 09:20:06 BST." Date: Wed, 07 Jun 2000 15:58:58 -0700 From: Peter Wemm Message-Id: <20000607225858.59FCE1CE1@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Rabson wrote: > On Sun, 4 Jun 2000, Josef Karthauser wrote: > > > On Sat, Jun 03, 2000 at 11:59:24PM -0400, Matthew N. Dodd wrote: > > > On Sat, 3 Jun 2000, Jordan K. Hubbard wrote: > > > > That's 100K difference and certainly a significant increase, though > > > > one could also perhaps argue that at 189K, ls(1) is no longer the > > > > thin, svelte utility we remember from her youth and another chocolate > > > > eclair or two isn't going to make that big a difference at this point. > > > > > > I think having a /bin/ls and a /usr/bin/ls would be the way to go then. > > > > > > /bin/ls can be the "thin, svelte utility" > > > /usr/bin/ls can have all the eclairs it wants. > > > > If we're going to do that we may as well keep colour support as a > > separate port. There's no point having two ls's in the tree IMHO. > > Or we could develop a "Plug In" model for ls... Note that we would pretty much need to have a dynamic linked ls(1) in order to support something like dlopen() for nsswitch.conf or ls_colour.so style plugins for ls. I still believe we should have /lib/libc.so.4, /lib/ld-elf.so.1 and all of / dynamically linked. Note that even /bin/sh needs to be dynamic in order to have ~user to work in a nsswitch.conf style scheme. Yes, I know that there are other ways to do this, but I wonder if we are getting to the point where we're approaching the point that having / static is more trouble than it's worth. There is nothing stopping us having a couple of key /static/sh style binaries on the offchance that somebody needs to move /lib/libc.so.4.old back to lib/libc.so.4 and cannot boot a fixit floppy or CD or PXE boot. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message