Subject: bin/3485: install fails to create subdirectories
To: None <gnats-bugs@gnats.netbsd.org>
From: John Franklin <franklin@elfie.bevc.blacksburg.va.us>
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
>Last-Modified:
>Originator:     John Franklin
>Organization:
>Release:        NetBSD-current sup'd 13 April 1997 6pm EDT
>Environment:
System: NetBSD elfie.bevc.blacksburg.va.us 1.2D NetBSD 1.2D (YOSSARIAN) #0: Thu Apr 10 05:32:53 EDT 1997 root@elfie.bevc.blacksburg.va.us:/home/src/sys/arch/alpha/compile/YOSSARIAN alpha


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

>How-To-Repeat:
	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

	
>Fix:
	
	The solution to this lies in a couple of places.  The bsd.inc.mk 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 bsd.inc.mk.
>Audit-Trail:
>Unformatted: