bin/155000: make(1) doesn't handle .POSIX: correctly

Bruce Evans brde at optusnet.com.au
Fri Feb 25 02:13:13 UTC 2011


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


More information about the freebsd-bugs mailing list