From owner-freebsd-hackers Mon Nov 9 11:53:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA13651 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 11:53:00 -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 LAA13646 for ; Mon, 9 Nov 1998 11:52:56 -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 LAA11186; Mon, 9 Nov 1998 11:56:51 -0800 (PST) (envelope-from sgk) From: Steve Kargl Message-Id: <199811091956.LAA11186@troutmask.apl.washington.edu> Subject: Re: linux software installation and uname In-Reply-To: <199811091933.MAA05814@mt.sri.com> from Nate Williams at "Nov 9, 1998 12:33:58 pm" To: nate@mt.sri.com (Nate Williams) Date: Mon, 9 Nov 1998 11:56:51 -0800 (PST) Cc: jkh@time.cdrom.com, crossd@cs.rpi.edu, 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 Nate Williams: > > I think the correct thing to do here is simply give uname(1) some > > truly switchable behavior, as Steve's second patch did. > > The user then has to be aware of the 'LINUX_EMULATION' environment > variable, which is non-intuitive. The /compat/linux script is a much > better solution since it doesn't require any magic environment > knowledge that must be modified if you run binaries from multiple > 'emulated' OS's. > You're assuming the vendor supplied script will pick up the script in /compat/linux. That, is not the case for the Portland Group script: 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 -- 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