From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 25 02:13:13 2011 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69A2E1065675; Fri, 25 Feb 2011 02:13:13 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.freebsd.org (Postfix) with ESMTP id E203E8FC16; Fri, 25 Feb 2011 02:13:12 +0000 (UTC) Received: from c122-107-114-89.carlnfd1.nsw.optusnet.com.au (c122-107-114-89.carlnfd1.nsw.optusnet.com.au [122.107.114.89]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p1P2D9mo012018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Feb 2011 13:13:10 +1100 Date: Fri, 25 Feb 2011 13:13:09 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Colin Percival In-Reply-To: <4D66ECBF.7080900@freebsd.org> Message-ID: <20110225130750.L892@besplex.bde.org> References: <20110224112657.38420.qmail@xps.daemonology.net> <20110225093104.W1474@besplex.bde.org> <4D66ECBF.7080900@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org, Bruce Evans Subject: Re: bin/155000: make(1) doesn't handle .POSIX: correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 02:13:13 -0000 On Thu, 24 Feb 2011, Colin Percival wrote: > On 02/24/11 14:35, Bruce Evans wrote: >> Except that there is the opportunity to set %POSIX using make -D. This >> might be enough in practice. The namespace pollution avoidance is >> too perfect -- there seems to be no way to set %POSIX or .POSIX in the >> environment. > > Is this relevant? POSIX says that the Right Way to demand POSIX mode is > to put .POSIX on the first non-comment line of the Makefile; our %POSIX > variable is a red herring as far as POSIX is concerned. It allows A Way. Of course you should fix make(1) to support the POSIX way if this is not too hard. If make can see .POSIX before including sys.mk, then it could alternatively include a POSIX-sys.mk instead. This would be cleaner than the ifdefs in sys.mk, and would inhibit breakage of the POSIX case by putting things like CTF in its rules. Bruce