From owner-freebsd-hackers Mon Nov 9 09:13:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA25308 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 09:13:39 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA25303 for ; Mon, 9 Nov 1998 09:13:38 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id KAA05803; Mon, 9 Nov 1998 10:13:22 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA04612; Mon, 9 Nov 1998 10:13:22 -0700 Date: Mon, 9 Nov 1998 10:13:22 -0700 Message-Id: <199811091713.KAA04612@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Steve Kargl Cc: hackers@FreeBSD.ORG Subject: Re: linux software installation and uname In-Reply-To: <199811091712.JAA10172@troutmask.apl.washington.edu> References: <199811091712.JAA10172@troutmask.apl.washington.edu> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I've recently installed the Portland Groups's Fortran 90 > for Linux on my system (it works!). However, during the > installation from the cdrom, a install script is executed > that contains a test involving "uname -s" to ensure the > installation is on a system running Linux. Of course, > "uname -s" on a FreeBSD system returns "FreeBSD" instead > of the expected "Linux". Thus, I had to alter uname(1) > to report "Linux" to install the software. Actually, you didn't. Stick a uname in the appropriate /compat/linux directory and it will be called (and return Linux) which doesn't bloat FreeBSD's code with Linux-centric bits. This can be done as a simple shell script or as complex as you'd like. Otherwise, modifying every OS-specific piece of code in FreeBSD with other OS's specific features (It's linux today, Solaris tomorrow, Xenix in the future... :) is fraught with bloat and peril. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message