NetBSD-Bugs archive

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

bin/43364: mkdep(1) wrong target names when suffix list miss .o



>Number:         43364
>Category:       bin
>Synopsis:       mkdep(1) wrong target names when suffix list miss .o
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 26 13:20:00 +0000 2010
>Originator:     Nicolas Joly
>Release:        NetBSD 5.99.29
>Organization:
Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 5.99.29 NetBSD 5.99.29 (LANFEUST) #1: 
Wed May 26 11:48:35 CEST 2010 
njoly%lanfeust.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST
 amd64
Architecture: x86_64
Machine: amd64
>Description:
When suffix list miss .o, mkdep(1) fails to generate expected target names.

njoly@lanfeust [~]> echo "int main() { return 0; }" >main.c
njoly@lanfeust [~]> mkdep -f main.dep main.c 
njoly@lanfeust [~]> cat main.dep 
main.o: main.c
njoly@lanfeust [~]> mkdep -p -f main.dep main.c
njoly@lanfeust [~]> cat main.dep               
main.o: main.c
njoly@lanfeust [~]> mkdep -s '' -f main.dep main.c 
njoly@lanfeust [~]> cat main.dep                  
main.o: main.c
njoly@lanfeust [~]> mkdep -s '.a .b' -f main.dep main.c
njoly@lanfeust [~]> cat main.dep                       
main.o: main.c
njoly@lanfeust [~]> mkdep -s '.a .b .o' -f main.dep main.c
njoly@lanfeust [~]> cat main.dep                          
main.a main.b main.o: main.c
>How-To-Repeat:
>Fix:



Home | Main Index | Thread Index | Old Index