Subject: pkg/4937: MANCOMPRESSED breaks when PREFIX != /usr/pkg
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Jones <cjones@pmax.math.montana.edu>
List: netbsd-bugs
Date: 02/04/1998 12:23:51
>Number:         4937
>Category:       pkg
>Synopsis:       MANCOMPRESSED breaks when PREFIX != /usr/pkg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb  4 11:35:01 1998
>Last-Modified:
>Originator:     Chris Jones
>Organization:
-------------------------------------------------------------------------------
Chris Jones                                    cjones@rupert.honors.montana.edu
           Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hunt?"
>Release:        <NetBSD-current source date>1.3
>Environment:
	
System: NetBSD pmax.math.montana.edu 1.3 NetBSD 1.3 (PMAX) #0: Wed Jan 28 15:23:19 MST 1998 root@pmax.math.montana.edu:/usr/src/sys/arch/pmax/compile/PMAX pmax

/usr/share/mk/bsd.port.mk:#	$NetBSD: bsd.port.mk,v 1.13.2.8 1997/12/20 23:01:51 perry Exp $
/usr/share/mk/bsd.port.subdir.mk:#	$NetBSD: bsd.port.subdir.mk,v 1.3 1997/09/25 19:09:35 thorpej Exp $

>Description:
I've got PREFIX set to /usr/local, and I can't install team.  It breaks
when it gets to the man pages, because it tries to uncompress them in
/usr/pkg/man instead of /usr/local/man.
	
>How-To-Repeat:

Script started on Wed Feb  4 12:18:45 1998
# pwd
/usr/pkgsrc/misc/team
# cat /etc/mk.conf
PREFIX=/usr/local
# make install
>Fix:
Don't know.  I tried to find the relevant code in bsd.port.mk, but it
appeared to be doing the right thing.
	
>Audit-Trail:
>Unformatted:
>> Checksum OK for team-3.1.tar.gz.
===>  Installing for team-3.1
install -c -s -o bin -g bin  -m 555 team /usr/local/bin/team
install -c -o bin -g bin -m 444 team.1 /usr/local/man/man1/team.1
install -c -o bin -g bin -m 444 team.cat1 /usr/local/man/cat1/team.0
===>   Uncompressing manual pages for team-3.1
/usr/pkg/man//man1/team.1.gz: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
# exit
Script done on Wed Feb  4 12:19:36 1998

(There's also the problem of whether MANCOMPRESSED should even be set
for this package, but I don't have the time to investigate that.)