From owner-freebsd-hackers Wed Nov 11 00:41:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA21421 for freebsd-hackers-outgoing; Wed, 11 Nov 1998 00:41:58 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA21416 for ; Wed, 11 Nov 1998 00:41:57 -0800 (PST) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id BAA00453; Wed, 11 Nov 1998 01:41:34 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp03.primenet.com, id smtpd000426; Wed Nov 11 01:41:32 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id BAA06929; Wed, 11 Nov 1998 01:41:31 -0700 (MST) From: Terry Lambert Message-Id: <199811110841.BAA06929@usr02.primenet.com> Subject: Re: linux software installation and uname To: eivind@yes.no (Eivind Eklund) Date: Wed, 11 Nov 1998 08:41:31 +0000 (GMT) Cc: sgk@troutmask.apl.washington.edu, hackers@FreeBSD.ORG In-Reply-To: <19981109225310.34189@follo.net> from "Eivind Eklund" at Nov 9, 98 10:53:10 pm X-Mailer: ELM [version 2.4 PL25] 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 > > 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