From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 25 00:16:26 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 9FFBA106564A; Fri, 25 Feb 2011 00:16:26 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from fallbackmx06.syd.optusnet.com.au (fallbackmx06.syd.optusnet.com.au [211.29.132.8]) by mx1.freebsd.org (Postfix) with ESMTP id 1E7468FC14; Fri, 25 Feb 2011 00:16:25 +0000 (UTC) Received: from mail02.syd.optusnet.com.au (mail02.syd.optusnet.com.au [211.29.132.183]) by fallbackmx06.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p1OMZZc2015538; Fri, 25 Feb 2011 09:35:35 +1100 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 mail02.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p1OMZUv1030127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Feb 2011 09:35:31 +1100 Date: Fri, 25 Feb 2011 09:35:30 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Colin Percival In-Reply-To: <20110224112657.38420.qmail@xps.daemonology.net> Message-ID: <20110225093104.W1474@besplex.bde.org> References: <20110224112657.38420.qmail@xps.daemonology.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org 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 00:16:26 -0000 On Thu, 24 Feb 2011, Colin Percival wrote: >> Description: > > make(1) doesn't handle .POSIX: correctly. It sucks in sys.mk before it > reads the Makefile, and sys.mk has several instances of > .if defined(%POSIX) > to switch between POSIX and non-POSIX mode; because sys.mk is processed > first, there is no opportunity for a .POSIX: directive to take effect. > >> How-To-Repeat: > $ echo .POSIX: > Makefile > $ make -V CC > (prints "cc"; it should print "c89".) 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. Bruce