From owner-freebsd-hackers Wed Nov 11 09:49:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA13037 for freebsd-hackers-outgoing; Wed, 11 Nov 1998 09:49:37 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (castles229.castles.com [208.214.165.229]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA13027 for ; Wed, 11 Nov 1998 09:49:34 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id JAA03980; Wed, 11 Nov 1998 09:47:56 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199811111747.JAA03980@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Terry Lambert cc: eivind@yes.no (Eivind Eklund), sgk@troutmask.apl.washington.edu, hackers@FreeBSD.ORG Subject: Re: linux software installation and uname In-reply-to: Your message of "Wed, 11 Nov 1998 08:41:31 GMT." <199811110841.BAA06929@usr02.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 11 Nov 1998 09:47:55 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > You'll never pick up /compat/linux/bin/uname unless you delete/rename > > > /usr/bin/uname. > > > > Eh - I'm pretty sure /compat/linux is searched _before_ /. For all > > syscalls. This is hardcoded in the linux emulator in the kernel. > > Sure. /compat/linux/bin/sh was searched for on the exec of /bin/sh > in order to run the shell script. > > Then the /bin/sh from FreeBSD was loaded. > > Then the /compat/linux directory was ignore as the FreeBSD binary > /bin/sh exec'ed the FreeBSD /bin/uname program. Actually, that's by no means correct. The linux_lib port installs the Linux 'sh' in /compat/linux/bin/{sh|bash} and the correct way to install a piece of Linux software is to start by running that shell. The real problem is that the Linux uname(1) lives in /bin, while the install script in question in this conversation checks for /usr/bin/uname first. The trivial answer is of course to put a copy there as well. 8) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message