Date: Mon, 9 Nov 1998 11:56:51 -0800 (PST) From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: nate@mt.sri.com (Nate Williams) Cc: jkh@time.cdrom.com, crossd@cs.rpi.edu, nate@mt.sri.com, hackers@FreeBSD.ORG Subject: Re: linux software installation and uname Message-ID: <199811091956.LAA11186@troutmask.apl.washington.edu> In-Reply-To: <199811091933.MAA05814@mt.sri.com> from Nate Williams at "Nov 9, 1998 12:33:58 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811091956.LAA11186>