Subject: bin/2416: Missing 'install -d' line for 'make includes' in usr.bin/lex/Makefile
To: None <gnats-bugs@NetBSD.ORG, bernd@arresum.inka.de>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 05/15/1996 21:27:00
>Number:         2416
>Category:       bin
>Synopsis:       Missing 'install -d' line for 'make includes' in usr.bin/lex/Makefile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 15 16:05:01 1996
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current of 15.05.96
>Environment:
	
System: NetBSD arresum 1.1B NetBSD 1.1B (VEEGO) #140: Mon May 13 08:13:55 MET DST 1996 bernd@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
	Remove all files in /usr/include and do a 'make includes' in
	/usr/src to install all includes and notice this:

===> usr.bin/lex
install -c -o bin -g bin -m 444 /src/usr.bin/lex/FlexLexer.h  /usr/include/g++

	but there was no /usr/include/g++ directory, so you get this:

ls -la /usr/include/g++

-r--r--r--   1 bin   bin     5669 May 15 20:57 g++

>How-To-Repeat:
	cd /usr/include
	rm -rf *
	cd /usr/src
	make includes
>Fix:
Apply this diff:

*** src/usr.bin/lex/Makefile-orig	Thu Apr 25 13:36:15 1996
--- src/usr.bin/lex/Makefile	Wed May 15 21:07:39 1996
***************
*** 41,46 ****
--- 41,47 ----
  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: