Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 1998 08:41:31 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        eivind@yes.no (Eivind Eklund)
Cc:        sgk@troutmask.apl.washington.edu, hackers@FreeBSD.ORG
Subject:   Re: linux software installation and uname
Message-ID:  <199811110841.BAA06929@usr02.primenet.com>
In-Reply-To: <19981109225310.34189@follo.net> from "Eivind Eklund" at Nov 9, 98 10:53:10 pm

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.

> So if /compat/linux/bin/uname exists, that will be run in preference
> to /bin/uname for anything Linux-emulated.  We might still need a way
> of saying that a shell script is Linux-emulated, though - probably by
> running it through /compat/linux/bin/sh :-)
> 
> Besides this, vendors should be pressured to test for uname in the
> right way to make their Linux software also work on FreeBSD.

Yes.  But more to the point, the patches applied to the program
in the "make install" from the ports Makefile for the thing should
either install a /compat/linux/bin/uname as one of the dependencies
to the install target (for the probable benefit of the license
manager software) and.or modify the shell script to add "FreeBSD"
as a viable install target, using the Linux binaries.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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?199811110841.BAA06929>