Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 1998 09:47:55 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        eivind@yes.no (Eivind Eklund), sgk@troutmask.apl.washington.edu, hackers@FreeBSD.ORG
Subject:   Re: linux software installation and uname 
Message-ID:  <199811111747.JAA03980@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 11 Nov 1998 08:41:31 GMT." <199811110841.BAA06929@usr02.primenet.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811111747.JAA03980>