From owner-freebsd-bugs Sat Feb 23 8:10: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0E06B37B404 for ; Sat, 23 Feb 2002 08:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1NGA2Z36602; Sat, 23 Feb 2002 08:10:02 -0800 (PST) (envelope-from gnats) Date: Sat, 23 Feb 2002 08:10:02 -0800 (PST) Message-Id: <200202231610.g1NGA2Z36602@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jens Schweikhardt Subject: Re: bin/11114: make(1) does not work as documented with .POSIX: target Reply-To: Jens Schweikhardt Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/11114; it has been noted by GNATS. From: Jens Schweikhardt To: cjclark@alum.mit.edu Cc: bug-followup@freebsd.org Subject: Re: bin/11114: make(1) does not work as documented with .POSIX: target Date: Sat, 23 Feb 2002 15:29:56 +0100 On Sat, Feb 23, 2002 at 12:04:44AM -0800, Crist J. Clark wrote: # On Fri, Feb 22, 2002 at 08:28:50PM +0100, Jens Schweikhardt wrote: # > Crist, # > # > On Wed, Feb 20, 2002 at 08:23:16AM -0800, Crist J. Clark wrote: # > # The issue here is that the .POSIX target will not have its effect # > # until the makefile containing it is read. /usr/share/mk/sys.mk is the # > # first file read. make(1) doesn't know about anything that you have set # > # in your makefile yet. # > # # > # I have no idea if that is a bug or feature. What do the standards say # > # (if anything)? # > # > The POSIX 2001 Standard defines the behavior of make and mandates that # > the macros have the following values, when .POSIX: is specified as the # > first noncomment line and without prerequisites and commands: # # Right, but what is the exact wording? ".POSIX The application shall ensure that this special target is specified without prerequisites or commands. If it appears as the first non-comment line in the makefile, make shall process the makefile as specified by this section; otherwise, the behavior of make is unspecified." Later on it mentions the list of variables and their values. # All of this does work when the # ".POSIX" target is set in sys.mk. In exactly which makefile is the # ".POSIX" target supposed to work? The application programmer's. See the example in the PR. # If it is in the local one, this is a # real problem. Goes against the whole way makefiles are processed. I'm not sure what you mean with "local makefile". Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message