From owner-freebsd-hackers Mon Nov 9 11:44:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12844 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 11:44:18 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12838 for ; Mon, 9 Nov 1998 11:44:12 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.9.1/8.8.8) id LAA11148; Mon, 9 Nov 1998 11:47:56 -0800 (PST) (envelope-from sgk) From: Steve Kargl Message-Id: <199811091947.LAA11148@troutmask.apl.washington.edu> Subject: Re: linux software installation and uname In-Reply-To: from "David E. Cross" at "Nov 9, 1998 1:58:48 pm" To: crossd@cs.rpi.edu (David E. Cross) Date: Mon, 9 Nov 1998 11:47:56 -0800 (PST) Cc: jkh@time.cdrom.com, nate@mt.sri.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to David E. Cross: > > > On Mon, 9 Nov 1998, Steve Kargl wrote: > > ... > > The install script on the cdrom had hardcoded tests for > > /usr/bin/uname and /bin/uname. > They should not do that; they are making the assumption that they know > better than you how your machine ought to be setup. > > > > > If we every get to the emulation of Digital Unix and Solaris > > where we have /compat/linux, /compat/digital, /compat/solaris, > > etc., then we need several versions of uname. Now, we're talking > > about bloat. > Bloat for some, or bloat for all. If you merge it into the main tree > *everyone* gets that bloat, and then who is responsible for maintaining > 'uname'? If you break it out into the individual directories then only > those who require the mentioned functionality will suffer the bloat; and > it would be easy to setup a clear maintainer for the code. Bloat is more > than just code bloat, it is administrative bloat as well. > Here is the nice little uname test from the vendor's install script: # what type of target? if test -x /usr/bin/uname ; then uname=/usr/bin/uname elif test -x /bin/uname ; then uname=/bin/uname else # Never seen it anywhere but /bin or /usr/bin, so hopefully it's # in $PATH already. type uname > /dev/null 2>&1 if test $? -ne 0 ; then echo "install: uname not found in \$PATH environment variable" quit else uname=uname fi fi You'll never pick up /compat/linux/bin/uname unless you delete/rename /usr/bin/uname. I'm willing to bet that other vendors make similar assumptions. As far as the bloat argument goes: troutmask:root[228] ll uname /usr/bin/uname -r-xr-xr-x 1 root wheel - 3880 Oct 22 10:04 /usr/bin/uname* -rwxr-xr-x 1 root wheel - 3996 Nov 9 11:39 uname* Can you really write a 116 bytes /compat/linux/bin/uname? It must handle "uname", "uname -s", "uname -n", etc. -- Steve finger kargl@troutmask.apl.washington.edu http://troutmask.apl.washington.edu/~clesceri/kargl.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message