Subject: bin/2507: usr.bin/vi/build/Makefile "afterinstall:" target ignores DESTDIR
To: None <gnats-bugs@NetBSD.ORG>
From: None <earle@netbsd4me.jpl.nasa.gov>
List: netbsd-bugs
Date: 06/03/1996 10:27:29
>Number: 2507
>Category: bin
>Synopsis: afterinstall: in usr.bin/vi/build/Makefile ignores $DESTDIR
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 3 13:50:05 1996
>Last-Modified:
>Originator: Greg Earle
>Organization:
JPL
>Release: 1.2_ALPHA
>Environment:
System: NetBSD netbsd4me 1.1B NetBSD 1.1B (GENERIC_SCSI3) #10: Thu Apr 11 16:02:07 MET DST 1996 pk@neon:/usr/src/sys/arch/sparc/compile/GENERIC_SCSI3 sparc
>Description:
The Makefile in /usr/src/usr.bin/vi/build has an "afterinstall:"
target to install the message catalogs. It blindly installs them
into "${datadir)/vi/catalog", where ${datadir} is immediately
defined above it to be "/usr/share". When $DESTDIR is set (such
as when doing a "make build" in /usr/src), it should respect $DESTDIR
and install into ${DESTDIR}/usr/share/vi/catalog; i.e., "$datadir"
should (probably) be "${DESTDIR}/usr/share" and not "/usr/share".
>How-To-Repeat:
Do a "make install" in /usr/src/usr.bin/vi/build on a system that
doesn't have /usr/share/vi (and /usr/share/vi/catalog) yet, because
it's not completely up to -current. ${DESTDIR}/usr/share/vi/catalog
will exist, but /usr/share/vi/catalog won't and the install will fail.
>Fix:
*** Makefile.dist Mon May 20 05:16:37 1996
--- Makefile Mon Jun 3 10:00:32 1996
***************
*** 35,37 ****
cat= dutch english german ru_SU.KOI8-R swedish
! datadir= /usr/share
afterinstall:
--- 35,37 ----
cat= dutch english german ru_SU.KOI8-R swedish
! datadir= ${DESTDIR}/usr/share
afterinstall:
>Audit-Trail:
>Unformatted: