Subject: install/14506: make build (-current) doesn't mkdir ${DESTDIR}/usr/share/misc before installing there (new toolchain)
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Weber <Ephaeton@gmx.net>
List: netbsd-bugs
Date: 11/08/2001 23:03:04
>Number:         14506
>Category:       install
>Synopsis:       New toolchain install fails due to lacking mkdir beneath DESTDIR
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 08 14:04:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Martin Weber
>Release:        Thu Nov 8 2001
>Organization:
	Entropie Erlangen
>Environment:
System: NetBSD phaeton.entropie.net 1.5.2 NetBSD 1.5.2 (PHAETON) #0: Tue Sep 25 03:13:27 CEST 2001 root@phaeton.entropie.net:/usr/syssrc/sys/arch/i386/compile/PHAETON i386
Architecture: i386
Machine: i386
>Description:
	When making build in /usr/src with new toolchain enabled, and DESTDIR
	points to an empty directory, it does not create
	${DESTDIR}/usr/share/misc before trying to 'binstall' msg_sys.def
	there. msg_sys.def is part of 'msgc' tool from toolchain.
	The build process fails: (tail:)
----------------------------------------------------------------------------------
/usr/tools/bin/binstall -c -p -r   -o root  -g wheel  -m 444  /usr/src/tools/msgc/../../usr.bin/msgc/msg_sys.def /usr/newroot/usr/share/misc/msg_sys.def
binstall: /usr/newroot/usr/share/misc: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/src/tools/msgc
*** Error code 1

Stop.
make: stopped in /usr/src/tools/msgc
*** Error code 1

Stop.
make: stopped in /usr/src/tools
*** Error code 1

Stop.
make: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
	This happens with -current sources from today.

>How-To-Repeat:
	set DESTDIR to some empty directory, and do make build. 
	use the new toolchain, and set MKTOOLS to always.
>Fix:
	Sorry, don't know Makefile magic. The problem is located in
	the 'msgc' Makefile of the toolchain source distribution
	(/usr/src/tools/msgsc/Makefile) - I'm sure it's trivial
>Release-Note:
>Audit-Trail:
>Unformatted: