From root@abelson.turing.terc.edu Wed Aug 11 08:24:56 1999
Return-Path: <root@abelson.turing.terc.edu>
Received: from abelson.turing.terc.edu (abelson.turing.terc.edu [140.245.254.10])
	by hub.freebsd.org (Postfix) with ESMTP id 9A4CD15530
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Aug 1999 08:24:29 -0700 (PDT)
	(envelope-from root@abelson.turing.terc.edu)
Received: (from root@localhost)
	by abelson.turing.terc.edu (8.9.3/8.9.3) id LAA25975;
	Wed, 11 Aug 1999 11:28:37 -0400 (EDT)
	(envelope-from root)
Message-Id: <199908111528.LAA25975@abelson.turing.terc.edu>
Date: Wed, 11 Aug 1999 11:28:37 -0400 (EDT)
From: Charlie Root <root@abelson.turing.terc.edu>
Reply-To: xela@mit.edu
To: FreeBSD-gnats-submit@freebsd.org
Cc: xela@mit.edu
Subject: 3.2-release /etc/manpath.config misconfigured
X-Send-Pr-Version: 3.2

>Number:         13078
>Category:       conf
>Synopsis:       3.2-release /etc/manpath.config misconfigured
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    markm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 11 08:30:01 PDT 1999
>Closed-Date:    Wed Aug 11 10:37:32 PDT 1999
>Last-Modified:  Wed Aug 11 10:38:38 PDT 1999
>Originator:     Charlie &
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
MIT
>Environment:

Straightforward, fresh 3.2 installation; very few ports, no custom
local software installed.
	

>Description:

/usr/bin/manpath consistently gives the error

Warning: couldn't stat file /usr/local/lib/perl5/5.00502/man!

if $MANPATH is not set.  (This was discovered because running
whereis would produce the error message.  In trying to chase it
down, I found that whereis calls manpath with $MANPATH unset, and
was able to reproduce the behaviour from the command line by
unsetting it.)

The reason for the error is that that the stock /etc/manpath.conf
contains the line

MANDATORY_MANPATH	/usr/local/lib/perl5/5.00502/man

but there is no such directory.  Since there is in fact no man
subdirectory under /usr/local/lib/perl5/ at all, I solved it by
simply commenting out the line in /etc/manpath.config
	

>How-To-Repeat:

in csh:

# unset $MANPATH    
# /usr/bin/manpath
Warning: couldn't stat file /usr/local/lib/perl5/5.00502/man!
/usr/share/man:/usr/local/man:/usr/X11R6/man:/usr/share/perl/man
	

>Fix:

Delete the line

MANDATORY_MANPATH	/usr/local/lib/perl5/5.00502/man

in /etc/manpath.config (or point it at the right path, but I have
no idea where that might be).

Also, the sample file (/etc/manpath.config.sample) is identical with
/etc/manpath.config, and should doubtless get the same fix.
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->markm 
Responsible-Changed-By: des 
Responsible-Changed-When: Wed Aug 11 09:36:32 PDT 1999 
Responsible-Changed-Why:  
Perl is Mark's baby. 

From: Dag-Erling Smorgrav <des@flood.ping.uio.no>
To: xela@mit.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/13078: 3.2-release /etc/manpath.config misconfigured
Date: 11 Aug 1999 18:44:46 +0200

 Charlie Root <root@abelson.turing.terc.edu> writes:
 > Delete the line
 > 
 > MANDATORY_MANPATH	/usr/local/lib/perl5/5.00502/man
 > 
 > in /etc/manpath.config (or point it at the right path, but I have
 > no idea where that might be).
 
 The correct fix is to introduce a new manpath.config keyword that
 means "check if this directory exists, and use it if it does, but shut
 up if it doesn't", *or* to make manpath *always* shut up about
 inexistent directories.
 
 There's another problem: if you upgrade to -STABLE, 'make world' will
 install Perl 5.00503, and new ports will install their man pages in
 /usr/local/lib/perl5/5.00503/man, but manpath.config will still point
 to the old directory - unless you update it, in which case it'll only
 point at the new directory, and you won't have access to the man pages
 for the older ports.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@flood.ping.uio.no
 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Wed Aug 11 10:37:32 PDT 1999 
State-Changed-Why:  
Fixed in manpath.config,v 1.8.2.4. 
>Unformatted:
