Subject: misc/2430: /usr/includes/g++ directory not created early enough
To: None <gnats-bugs@NetBSD.ORG>
From: Andrew Gillham <gillhaa@ghost.whirlpool.com>
List: netbsd-bugs
Date: 05/18/1996 00:12:56
>Number:         2430
>Category:       misc
>Synopsis:       /usr/includes/g++ directory not created early enough
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 18 00:35:01 1996
>Last-Modified:
>Originator:     Andrew Gillham
>Organization:
Whirlpool Corporation
>Release:        May 18, 1996
>Environment:
System: NetBSD ghost 1.1B NetBSD 1.1B (GHOST) #0: Tue May 14 19:18:56 EDT 1996 gillhaa@ghost:/usr/src/sys/arch/i386/compile/GHOST i386


>Description:
	Doing 'make includes' after wiping /usr/include fails because
	/usr/include/g++ isn't created until /usr/src/gnu/lib/libg++
	even though usr.bin/lex attempts to copy a file there.
	An excerpt:
	...
	===> usr.bin/lex
	install -c -o bin -g bin -m 444 /usr/src/usr.bin/lex/FlexLexer.h \
		/usr/include/g++
	...
	===> gnu/lib/libg++
	install -d -o bin -g bin -m 755  /usr/include/g++
	install -d -o bin -g bin -m 755  /usr/include/g++/gen
	install: /usr/include/g++/gen: Not a directory
	*** Error code 1

	Stop.

	This is because 'FlexLexer.h' has been copied to /usr/include/g++
	as a file.

>How-To-Repeat:
	# rm -fr /usr/include/*
	# cd /usr/src
	# make includes 

>Fix:

*** Makefile.orig	Sat May 18 00:11:36 1996
--- Makefile	Sat May 18 00:12:06 1996
***************
*** 41,46 ****
--- 41,48 ----
  scan.o: parse.c
  
  includes:
+ 	install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
+ 		${DESTDIR}/usr/include/g++
  	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/FlexLexer.h \
  		${DESTDIR}/usr/include/g++
  
>Audit-Trail:
>Unformatted: