Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2001 11:47:39 -0400 (EDT)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/31339: make's .if processing buggy
Message-ID:  <200110171547.f9HFldP03628@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help

>Number:         31339
>Category:       bin
>Synopsis:       make's .if processing buggy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 17 09:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD aldan.algebra.com 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sun Oct 14 18:09:07 EDT 2001 mi@aldan.algebra.com:/ccd/obj/ccd/src/sys/DEBUG i386


>Description:

	The following makefile breaks make for unknown reason:
	.if o != a
	all:
		@echo "not equal"
	.else
		@echo "equal"
	.endif

	Modifying it to instead start with
	o=o
	.if $o != a
	...
	works around the problem. It will work even if o is explicitly
	set to "", but will not if it is not set at all (which is supposed
	to imply an empty string "" too).

>How-To-Repeat:
	See description.
>Fix:
	See description.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110171547.f9HFldP03628>