Subject: bin/24020: install in src/x11/bin/ssh-askpass fails if using -j N
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jmmv@menta.net>
List: netbsd-bugs
Date: 01/08/2004 16:33:03
>Number:         24020
>Category:       bin
>Synopsis:       install in src/x11/bin/ssh-askpass fails if using -j N
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 08 15:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Julio M. Merino Vidal
>Release:        NetBSD 1.6ZG
>Organization:
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/
>Environment:
	
	
System: NetBSD dawn.local 1.6ZG NetBSD 1.6ZG (DAWN) #1: Fri Jan 2 14:25:29 CET 2004 jmmv@dawn.local:/home/NetBSD/obj/home/NetBSD/src/sys/arch/i386/compile/DAWN i386
Architecture: i386
Machine: i386
>Description:
	The build of the src/x11 tree breaks in the src/x11/bin/ssh-askpass
	directory when running make with the -j flag (like -j 2, or even 1,
	which also makes it fail).  The failure is caused during the 'install'
	stage.

>How-To-Repeat:
	( replace 'make' with /path/to/make/wrapper )

	$ cd src/x11/bin/ssh-askpass
	$ rm -f /path/to/destdir/usr/X11R6/share/examples/*
	$ make cleandir
	$ make dependall
	$ make -j 2 install

	The following happens:

dawn$ /home/NetBSD/tools/bin/nbmake-i386 -j 2 install
--- /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-1337.ad ---
    install  /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-1337.ad
--- /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-NeXTish.ad ---
    install  /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-NeXTish.ad
--- /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-green.ad ---
    install  /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-green.ad
--- /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-motif.ad ---
    install  /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-motif.ad
--- /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-default.ad ---
    install  /home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-default.ad
nbinstall: SshAskpass-default.ad: stat: No such file or directory
*** [/home/NetBSD/obj/home/NetBSD/src/destdir.i386/usr/X11R6/share/examples/ssh-askpass/SshAskpass-default.ad] Error code 1
1 error

nbmake: stopped in /home/NetBSD/src/x11/bin/ssh-askpass

	Now run the same steps without "-j 2" and the error disappears.

	Note that "-j 1" also fails.

>Fix:
	I added "install: .WAIT SshAskpass.ad" in the Makefile, and solved the
	problem.  But this is a hack, instead of fixing the real problem here
	(which I haven't found)...
>Release-Note:
>Audit-Trail:
>Unformatted: