From owner-freebsd-current Wed Jan 29 10:55: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B99F37B40A for ; Wed, 29 Jan 2003 10:54:55 -0800 (PST) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57BD143F93 for ; Wed, 29 Jan 2003 10:54:54 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 11295 invoked from network); 29 Jan 2003 18:54:59 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 29 Jan 2003 18:54:59 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h0TIsqUT065071; Wed, 29 Jan 2003 13:54:52 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <1043828377.648.67.camel@localhost> Date: Wed, 29 Jan 2003 13:54:57 -0500 (EST) From: John Baldwin To: Benno Rice Subject: Re: Patch to teach config(8) about "platforms". Cc: current@FreeBSD.org, Juli Mallett , Marcel Moolenaar Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 29-Jan-2003 Benno Rice wrote: > On Wed, 2003-01-29 at 18:46, Marcel Moolenaar wrote: >> On Wed, Jan 29, 2003 at 05:32:51PM +1100, Benno Rice wrote: >> > > >> > > Agreed. There's an advantage there, but see also my reply to >> > > Juli about the use of "machine" to mean MACHINE_ARCH and the >> > > use of "platform" to mean MACHINE. This I don't find appealing. >> > >> > I can see your point here, but if needed I'd rather see them renamed to >> > MACHINE (which maps to the current MACHINE_ARCH) and PLATFORM as MACHINE >> > and MACHINE_ARCH are confusingly similar. >> >> I'm not sure I understand you. I don't mind the capitalization, >> just that we have MACHINE_ARCH and MACHINE defined on the hand >> and "machine" and "platform" on the other. If you would ask a >> person how they should be related, I can imagine that the >> logical should would be to relate "machine" to MACHINE and >> "platform" to MACHINE_ARCH. Which is opposite to what Juli >> proposed. That's the unappealing part. Not a biggy, but >> something that's better avoided now than fixed later. > > In that case I'm mostly in agreement. Avoiding confusion is a Good > Thing(tm). Just be consistent please. Ignore the implementation and choose one of these two paths: 1) Use MACHINE and MACHINE_ARCH with MACHINE_ARCH being the architecture and MACHINE being the platform and use the 'machine' keyword for MACHINE with MACHINE_ARCH either explicit (in which case 'machine' defaults to 'arch' just like MACHINE defaults to MACHINE_ARCH) or implicit from the config file location. 2) Use PLATFORM and MACHINE with matching config keywords and if platform is not specified it defaults to MACHINE. I don't really care which, but please just pick one and be fully consistent. If you go with 1), I suggest an alternative header file layout where you have an /usr/include/arch and the machine/ headers (which are platform-specific) include the arch/ headers for common things. I think both ways can work, but please do not change the meaning of one set w/o changing the other. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message