Date: Mon, 9 Nov 1998 10:13:22 -0700 From: Nate Williams <nate@mt.sri.com> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: hackers@FreeBSD.ORG Subject: Re: linux software installation and uname Message-ID: <199811091713.KAA04612@mt.sri.com> In-Reply-To: <199811091712.JAA10172@troutmask.apl.washington.edu> References: <199811091712.JAA10172@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811091713.KAA04612>