NetBSD Problem Report #47
From gnats Thu Dec 16 16:38:30 1993
Received: from alice.wonderland.org (wonderland.org [158.152.14.129]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with SMTP id QAA09384 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 16 Dec 1993 16:38:28 -0800
Message-Id: <199312170038.QAA09384@sun-lamp.cs.berkeley.edu>
Date: Fri, 17 Dec 1993 00:38:03 +0000
From: P.Galbavy@alice.wonderland.org
Sender: P.Galbavy@wonderland.org
Reply-To: P.Galbavy@alice.wonderland.org
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Another make problem. -DPOSIX breaks imake generated files.
X-Send-Pr-Version: 3.01.6
>Number: 47
>Category: bin
>Synopsis: Adding -DPOSIX to make build breaks some makefiles (X ones)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 16 16:50:04 +0000 1993
>Closed-Date: Fri Dec 31 12:16:50 +0000 1993
>Last-Modified: Thu Jan 02 18:13:52 +0000 2014
>Originator: Peter Galbavy
>Release: NetBSD-current > 931213
>Organization:
Wonderland
>Environment:
System: NetBSD alice.wonderland.org 0.9a GENERICAHBBT#9 i386
>Description:
Since -DPOSIX was added to the make build, makefiles generated by imake
have broken. This is due to line with white-space (spaces mainly) that
set variables. This is very common in X makefiles; eg.
TOP = ../../.
>How-To-Repeat:
Find an Imakefile based source tree, and try xmkmf -a...
>Fix:
The quick hack is to comment out -DPOSIX in src/usr.bin/make/Makefile,
and rebuild/install make. I do not know is POSIX explicitly excludes
these types of line from makefiles, but then someone would have noticed
by now ?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: jtc
State-Changed-When: Fri Dec 17 15:56:32 1993
State-Changed-Why:
Checked in a fix. It seems that pmake's POSIX behavior was based on an
early draft. The final draft says that only tabs, not whitespace, indicate
a shell command.
State-Changed-From-To: feedback->closed
State-Changed-By: jtc
State-Changed-When: Fri Dec 31 12:16:50 1993
State-Changed-Why:
Although I have not received any feedback from the submitter, my tests
with Imake'd makefiles seem to indicate that this bug has been fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.