NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39802: make(1) :? modifier does not work



>Number:         39802
>Category:       bin
>Synopsis:       make(1) :? modifier does not work
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 25 21:45:00 +0000 2008
>Originator:     jklowden%schemamania.org@localhost
>Release:        NetBSD 2.0
>Environment:
System: NetBSD oak.schemamania.org 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec 1 
10:58:25 UTC 2004 
builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
Architecture: i386
Machine: i386
>Description:
        The make modfier :? seems to return TRUE no matter what the 
        evaluated string is.  

        The use of the empty() function in the evaluated expression results
        in a line that make can't parse.  

>How-To-Repeat:
        For the following Makefile:
== snip ==
$ cat Makefile.colonq 
FOO = foo
all:
        echo $("0 == 1":?'0 == 1':'0 != 1')
        echo $(FOO:Mbar:?"$(FOO) has bar":"no bar in $(FOO)") with ':M'
        echo $(empty(BAR):?'BAR is empty':"BAR is not empty?")
== pins ==

        I get these results:
== snip ==
$ make -f Makefile.colonq -s
0 == 1
foo has bar with :M
Syntax error: ")" unexpected
*** Error code 2

Stop.
make: stopped in .../projects/tests
== pins ==

>Fix:
        Unknown.  

>Unformatted:
 


Home | Main Index | Thread Index | Old Index