From owner-svn-src-head@FreeBSD.ORG Mon Jan 5 16:54:35 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE5D510656C0; Mon, 5 Jan 2009 16:54:35 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-2.dlr.de (smtp-3.dlr.de [195.37.61.187]) by mx1.freebsd.org (Postfix) with ESMTP id 3DAFB8FC19; Mon, 5 Jan 2009 16:54:35 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from exbe05.intra.dlr.de ([192.168.35.38]) by smtp-2.dlr.de with Microsoft SMTPSVC(6.0.3790.1830); Mon, 5 Jan 2009 17:41:17 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 5 Jan 2009 17:40:33 +0100 Message-ID: In-Reply-To: <20090105142929.GA70683@onelab2.iet.unipi.it> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r186502 - head/usr.bin/make Thread-Index: AclvQV7Nb+xtC05nTU6BlMQwnrhOLgAEeCew References: <200812262231.mBQMVjHC052150@svn.freebsd.org> <867i59lvbj.fsf@ds4.des.no> <20090105142929.GA70683@onelab2.iet.unipi.it> From: To: , X-OriginalArrivalTime: 05 Jan 2009 16:41:17.0906 (UTC) FILETIME=[6E873320:01C96F54] Cc: svn-src-head@FreeBSD.org, luigi@FreeBSD.org, src-committers@FreeBSD.org, svn-src-all@FreeBSD.org Subject: RE: svn commit: r186502 - head/usr.bin/make X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2009 16:54:36 -0000 > -----Original Message----- > From: owner-src-committers@FreeBSD.org=20 > [mailto:owner-src-committers@FreeBSD.org] On Behalf Of Luigi Rizzo > Sent: Monday, January 05, 2009 3:29 PM > To: Dag-Erling Sm??rgrav > Cc: Luigi Rizzo; src-committers@FreeBSD.org;=20 > svn-src-all@FreeBSD.org; svn-src-head@FreeBSD.org > Subject: Re: svn commit: r186502 - head/usr.bin/make >=20 > On Mon, Jan 05, 2009 at 02:46:24PM +0100, Dag-Erling Sm??rgrav wrote: > > Luigi Rizzo writes: > > > Log: > > > Clarify the behaviour of conditionals when dealing with=20 > comparisons. > > > In particular, point out that string comparison can=20 > only use !=3D and =3D=3D > > > (how weird, given that the underlying call to strcmp=20 > returns more > > > information), that floating point values are correctly=20 > interpreted > > > as numbers, and that the left-hand side must be a=20 > variable expansion. > >=20 > > Any chance of fixing items 1 and 3? >=20 > item 1 is easy except perhaps for Locale issues which however=20 > should not > be a big deal in this context. > item 3 should also be easy. >=20 > But the thing i wonder about is whether there is any standard that > mandates this beviour, or we are relatively free to make enhancements > to our "make" program. >From the Posix standpoint of view, we can do what we want as long as we are not syntax compatible with posix-make :-) This is the reason, why most of our make extensions are compatible with posix. As soon as you have a construct that is a syntax error according to the Posix specification you invoke implementation-defined behaviour and as such you just have to document it. There are several of these escape mechanisms in the standard: the .POSIX pseudo-target and all targets that start with a dot and consist of uppercase letters. With regard to conditionals: there is no standard. Posix decided to standard only minimal make, which is roughly compatible to V7 make. If you change things like conditional semantics you should: (1) document it, and (2) arrange a full ports build with the portcluster people. This takes some days, but is a good thing to do. harti