NetBSD Problem Report #4937

Received: (qmail 1735 invoked from network); 4 Feb 1998 19:23:52 -0000
Message-Id: <199802041923.MAA08228@pmax.math.montana.edu>
Date: Wed, 4 Feb 1998 12:23:51 -0700 (MST)
From: Chris Jones <cjones@pmax.math.montana.edu>
Reply-To: cjones@pmax.math.montana.edu
To: gnats-bugs@gnats.netbsd.org
Subject: MANCOMPRESSED breaks when PREFIX != /usr/pkg
X-Send-Pr-Version: 3.95

>Number:         4937
>Category:       pkg
>Synopsis:       MANCOMPRESSED breaks when PREFIX != /usr/pkg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 04 11:35:01 +0000 1998
>Closed-Date:    Wed Feb 04 22:47:25 +0000 1998
>Last-Modified:  Wed Feb 04 22:54:17 +0000 1998
>Originator:     Chris Jones
>Release:        <NetBSD-current source date>1.3
>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?"
>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.

>Release-Note:
>Audit-Trail:

From: s_frueau@ira.uka.de (Thorsten Frueauf)
To: cjones@pmax.math.montana.edu
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/4937: MANCOMPRESSED breaks when PREFIX != /usr/pkg
Date: Wed, 4 Feb 1998 21:57:36 +0100 (GMT)

 Hello!

 > >How-To-Repeat:

 [...]

 > # cat /etc/mk.conf
 > PREFIX=/usr/local

 Ok, AFAIK the version of bsd.port* shipped with 1.3 does not read
 /etc/mk.conf early enough. So can you try setting PREFIX in your
 shell envirement (e.g. `setenv PREFIX /usr/local` if you use tcsh) and
 try again?

 I think there will be a patch release (1.3.1) soon, which comes with new
 bsd.port* files.

 Maybe you can download
 src/share/mk/{bsd.port.mk,bsd.port.subdir.mk,bsd.own.mk} from the
 current source tree and try again?

 Greets
       Thorsten

 PS: With current src from 3.2.1998 the versions are:
 	$NetBSD: bsd.port.mk,v 1.43 1998/02/02 08:11:49 hubertf Exp $
 	$NetBSD: bsd.port.subdir.mk,v 1.7 1998/01/30 14:33:48 agc Exp $
 	$NetBSD: bsd.own.mk,v 1.58 1998/01/15 09:37:25 agc Exp $
State-Changed-From-To: open->closed 
State-Changed-By: hubertf 
State-Changed-When: Wed Feb 4 14:47:25 PST 1998 
State-Changed-Why:  
Thorsten's dignose was right, your bsd.port.mk doesn't understand 
/etc/mk.conf, please set variables in your environment instead. 
But be sure to set LOCALBASE instead of PREFIX, as nasty things may  
happen with X-programms else. 


- Hubert 

P.S.: the misc/team pkg was of course broken wrt MANCOMPRESSED, 
I've fixed that. 
>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.)

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.