From owner-freebsd-hackers Tue Nov 10 16:29:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA12843 for freebsd-hackers-outgoing; Tue, 10 Nov 1998 16:29:30 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from detlev.UUCP (tex-30.camalott.com [208.229.74.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA12832 for ; Tue, 10 Nov 1998 16:29:18 -0800 (PST) (envelope-from joelh@gnu.org) Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id SAA10173; Tue, 10 Nov 1998 18:28:10 -0600 (CST) (envelope-from joelh) To: Doug Rabson Cc: Sren Schmidt , Jacques Vidrine , sgk@troutmask.apl.washington.edu, nate@mt.sri.com, kkennawa@physics.adelaide.edu.au, dnelson@emsphone.com, rivers@dignus.com, hackers@FreeBSD.ORG Subject: Re: linux software installation and uname References: From: Joel Ray Holveck Date: 10 Nov 1998 18:28:09 -0600 In-Reply-To: Doug Rabson's message of "Tue, 10 Nov 1998 21:50:36 +0000 (GMT)" Message-ID: <86k913hy3q.fsf@detlev.UUCP> Lines: 24 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>> Why would we not put a real linux uname(1) in /compat/linux/usr/bin? >>> This is an emulation issue. Why impact the BSD userland sources? >> Hear hear!! > I imagine that the install script is run by /bin/sh, not > /compat/linux/bin/sh so it will get the regular /usr/bin/uname > whatever is present in /compat/linux/usr/bin. I have yet to hear of any solutions that don't require a hack to the install procedure (eg, setting an environment variable). Unless somebody comes up with an idea that would magically detect what environment a given script wants, I would recommend putting a Linux uname in /copmat/linux where it belongs, and the install procedure's PATH can have /compat/linux ahead of /. This is easy to implement, keeps the core of FreeBSD pure, and paves the way for future similarities. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message