Bug 13078

Summary: 3.2-release /etc/manpath.config misconfigured
Product: Base System Reporter: Charlie Root <root>
Component: confAssignee: Mark Murray <markm>
Status: Closed FIXED    
Severity: Affects Only Me CC: xela
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   

Description Charlie Root 1999-08-11 16:30:01 UTC
/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

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.
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
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 1999-08-11 17:36:32 UTC
Responsible Changed
From-To: freebsd-bugs->markm

Perl is Mark's baby. 

Comment 2 des 1999-08-11 17:44:46 UTC
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
Comment 3 ru freebsd_committer freebsd_triage 1999-08-11 18:37:32 UTC
State Changed
From-To: open->closed

Fixed in manpath.config,v 1.8.2.4.