Subject: bin/3485: install fails to create subdirectories
To: None <>
From: John Franklin <>
List: netbsd-bugs
Date: 04/13/1997 19:30:18
>Number:         3485
>Category:       bin
>Synopsis:       install fails to create subdirectories
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 13 16:35:01 1997
>Originator:     John Franklin
>Release:        NetBSD-current sup'd 13 April 1997 6pm EDT
System: NetBSD 1.2D NetBSD 1.2D (YOSSARIAN) #0: Thu Apr 10 05:32:53 EDT 1997 alpha

	install will fail to make a subdirectory for the file if 
	it requires one.

	elfie# mv /usr/include /usr/include.old
	elfie# cd /usr/src/include
	elfie# make includes
	install -c -o bin -g bin -m 444  a.out.h /usr/include/a.out.h
	install: /usr/include/a.out.h: No such file or directory
	*** Error code 1

	The solution to this lies in a couple of places.  The file
	should test for INCDIRS existance and create it if neccessary. 
	(Two lines of code, test -e/mkdir.)

	However, this would still fail with some makefiles (such as in
	/usr/src/include) that specify INCS += subdir/include.h.  This 
	would require a change in install, and possibly a -d option added
	to the install calls in