From nobody@FreeBSD.org  Tue Dec 20 13:14:20 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C86C616A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2005 13:14:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9395843D49
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2005 13:14:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBKDEKi2034997
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Dec 2005 13:14:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBKDEKKb034996;
	Tue, 20 Dec 2005 13:14:20 GMT
	(envelope-from nobody)
Message-Id: <200512201314.jBKDEKKb034996@www.freebsd.org>
Date: Tue, 20 Dec 2005 13:14:20 GMT
From: Andreas Haakh <bugReporter@ib-haakh.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make thinks "^.for.o:" is a directive (".for something in ...")
X-Send-Pr-Version: www-2.3

>Number:         90680
>Category:       bin
>Synopsis:       [patch] make(1) thinks "^.for.o:" is a directive (".for something in ...")
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 20 13:20:02 GMT 2005
>Closed-Date:    
>Last-Modified:  Wed Jun 21 06:20:20 GMT 2006
>Originator:     Andreas Haakh
>Release:        6.0-CURRENT
>Organization:
Ingenieurbro Haakh
>Environment:
FreeBSD Crabberio.Haakh.de 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Dec 12 14:23:15 CET 2005     root@Crabberio.Haakh.de:/usr/obj/usr/src/sys/CRABBERIO  amd64

>Description:
              Make interprets a rule like ".for.o:" as a ".for"-directive.
>How-To-Repeat:
Create a Makefile containing
.SUFFIXES: .for
.for.o:

and run make.
>Fix:
Following patch solves the problem for me but if a suffix equals any other directive, the same error will probably show up.
--- make/for.c  Tue May 10 14:02:15 2005
+++ makeX/for.c Tue Dec 20 13:37:23 2005
@@ -101,6 +101,12 @@
        ptr = line;

        /*
+        * for is only valid if a space-character comes next
+        */
+       if (!isspace((u_char)*ptr))
+           return (FALSE);
+
+       /*
         * Skip space between for and the variable.
         */
        for (ptr++; *ptr && isspace((u_char)*ptr); ptr++)

>Release-Note:
>Audit-Trail:

From: "Dr. A. Haakh" <bugReporter@Haakh.de>
To: bug-followup@FreeBSD.org, bugReporter@ib-haakh.de
Cc:  
Subject: Re: bin/90680: [patch] make(1) thinks "^.for.o:" is a directive (".for
 something in ...")
Date: Wed, 21 Jun 2006 08:15:58 +0200

 Hello,
 
 is it possible to implement the patch I have submitted? It would take 
 five minutes and the pr could be closed...
 
 Andreas
>Unformatted:
