Subject: bin/2497: make install in src/usr.bin/vi fails if DESTDIR is set.
To: None <gnats-bugs@NetBSD.ORG>
From: None <roskens@cs.umn.edu>
List: netbsd-bugs
Date: 05/31/1996 22:02:49
>Number:         2497
>Category:       bin
>Synopsis:       make install problem in src/usr.bin/vi
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 31 23:35:01 1996
>Last-Modified:
>Originator:     Mr. Ronald Roskens
>Organization:
U of MN - CS, ACM SysAdmin 	| Life is a simulation of reality.	
email:roskens@cs.umn.edu	| http://www.cs.umn.edu/~roskens/	
>Release:        Fri May 31 CDT 1996
>Environment:
System: NetBSD reality.roskens.net 1.1B NetBSD 1.1B (REALITY) #15: Sun May 26 00:49:43 CDT 1996 root@reality.roskens.net:/usr/src/sys/arch/i386/compile/REALITY i386

>Description:
On a 1.1-current machine using binaries from April 2, I was upgrading to
-current sources. I was installing using the DESTDIR environment variable.
When the make install started in src/usr.bin/vi/build, it install the program
but failed when attempting to install the catalogs.
>How-To-Repeat:
% setenv DESTDIR /some/dest/dir
% cd /usr/src/usr.bin/vi
% make install
>Fix:
Apply this patch:


*** Makefile	Fri May 31 21:58:39 1996
--- /tmp/Makefile	Fri May 31 21:58:29 1996
***************
*** 33,38 ****
  .include "../../Makefile.inc"
  
  cat=	dutch english german ru_SU.KOI8-R swedish
! datadir=	/usr/share
  afterinstall:
  	(cd ${.CURDIR}/../catalog && install -m $(NONBINMODE) -c $(cat) $(datadir)/vi/catalog )
--- 33,38 ----
  .include "../../Makefile.inc"
  
  cat=	dutch english german ru_SU.KOI8-R swedish
! datadir=	${DESTDIR}/usr/share
  afterinstall:
  	(cd ${.CURDIR}/../catalog && install -m $(NONBINMODE) -c $(cat) $(datadir)/vi/catalog )
>Audit-Trail:
>Unformatted: