Subject: port-i386/3401: /src/sys/arch/i386/isa/pcvt/Util/Makefile.inc defines a false MANDIR
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 03/28/1997 13:29:28
>Number:         3401
>Category:       port-i386
>Synopsis:       /src/sys/arch/i386/isa/pcvt/Util/Makefile.inc defines a false MANDIR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 28 04:50:01 1997
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        <NetBSD-current source date> NetBSD current 27.3.1997
>Environment:
	
System: NetBSD cyberlap 1.2D NetBSD 1.2D (CYBERLAP) #0: Tue Mar 25 12:14:56 CET 1997 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386


>Description:
	
/src/sys/arch/i386/isa/pcvt/Util/Makefile.inc defines "/usr/local/man/cat" as
MANDIR, which should be "/usr/local/man".

>How-To-Repeat:
	
cd /src/sys/arch/i386/isa/pcvt/Util/keycap && make && make install

and watch:
[frueauf@cyberlap]/src/sys/arch/i386/isa/pcvt/Util/keycap# make install
Saving old keycap database
mv -f /usr/share/misc/keycap.pcvt /usr/share/misc/keycap.pcvt.BAK
install -c -m 644 -o bin -g bin  /src/sys/arch/i386/isa/pcvt/Util/keycap/keycap.src /usr/share/misc/keycap.pcvt
install -c -o bin -g bin -m 444 keycap.cat3 /usr/local/man/cat/cat3/keycap.0
install: /usr/local/man/cat/cat3/keycap.0: No such file or directory
*** Error code 1

>Fix:
	
Apply the follwoing patch to /src/sys/arch/i386/isa/pcvt/Util/Makefile.inc:


*** Makefile.inc-orig	Fri Mar 28 13:27:49 1997
--- Makefile.inc	Fri Mar 28 13:22:09 1997
***************
*** 24,30 ****
  MAN4EXT	=	4
  MAN5EXT	=	5
  MAN8EXT	=	8
! MANDIR	=	/usr/local/man/cat
  
  MAN = ${MAN1} ${MAN3} ${MAN4} ${MAN5} ${MAN8}
  
--- 24,30 ----
  MAN4EXT	=	4
  MAN5EXT	=	5
  MAN8EXT	=	8
! MANDIR	=	/usr/local/man
  
  MAN = ${MAN1} ${MAN3} ${MAN4} ${MAN5} ${MAN8}
  
>Audit-Trail:
>Unformatted:
/src/sys/arch/i386/isa/pcvt/Util/Makefile.inc defines a false MANDIR