From owner-freebsd-hackers Mon Nov 9 09:57:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA29785 for freebsd-hackers-outgoing; Mon, 9 Nov 1998 09:57:01 -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 JAA29772 for ; Mon, 9 Nov 1998 09:56:57 -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 KAA06185; Mon, 9 Nov 1998 10:56:42 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA04904; Mon, 9 Nov 1998 10:56:41 -0700 Date: Mon, 9 Nov 1998 10:56:41 -0700 Message-Id: <199811091756.KAA04904@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: nate@mt.sri.com (Nate Williams), hackers@FreeBSD.ORG Subject: Re: linux software installation and uname In-Reply-To: <199811091746.JAA10366@troutmask.apl.washington.edu> References: <199811091713.KAA04612@mt.sri.com> <199811091746.JAA10366@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. > > > > First, I generally agree with your anti-bloat sentiments. > > Sure, I have the capability to write the script or C program, and stuff > it into /usr/compat/linux/usr/bin, but this isn't a general solution > for Jane Doe user. She wants/needs to run linux software, and she > may not have the know-how to work around this problem. Neither > ports/emulator/linux_lib nor ports/devel/linux_devel supply a uname(1). Ok, then provide one as part of linux_devel. It's a simple as adding a patch to the port that adds a simple script that returns linux. > I am not claiming that my suggested solution is the best solution. > But, we can't ignore the problem exists. At this point time, the > Portland Group has no intention of supporting a native FreeBSD version > of their software. I suspect other commerical vendors will have a > similar attitude (particularly if they know about FreeBSD's linux > emulation). Then they need to be informed. The easiest solution is almost always the wrong solution. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message