NetBSD Problem Report #39448

From www@NetBSD.org  Tue Sep  2 02:29:53 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4A5F463BC96
	for <gnats-bugs@gnats.netbsd.org>; Tue,  2 Sep 2008 02:29:53 +0000 (UTC)
Message-Id: <20080902022952.CE55163BC80@narn.NetBSD.org>
Date: Tue,  2 Sep 2008 02:29:52 +0000 (UTC)
From: saskia@sa5kia.nl
Reply-To: saskia@sa5kia.nl
To: gnats-bugs@NetBSD.org
Subject: Bug in man.conf -> Manual page paths longer than 3 main subdirectories are ignored
X-Send-Pr-Version: www-1.0

>Number:         39448
>Category:       bin
>Synopsis:       Bug in man.conf -> Manual page paths longer than 3 main subdirectories are ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 02 02:30:00 +0000 2008
>Closed-Date:    Sun Jul 17 02:11:59 +0000 2022
>Last-Modified:  Sun Jul 17 02:11:59 +0000 2022
>Originator:     Saskia van Schagen
>Release:        4.0
>Organization:
sa5kia
>Environment:
NetBSD sa5kia 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
With lots of Sun Solaris expierience and a newbe with NetBSD, I have
struggled for 2 hours with my MANPATH.  After finding out the MANPATH
variable overwrites existing manpaths completely (because apperently,
for some strange reason, the variable is not set by default), I found
the /etc/man.conf file.  But in this file there is a bug: Only paths
with 2 subdirectories before the "man" subdirectory may be specified,
otherwise they (longer directories) will be completely ignored. For
example, a directory like /usr/apache2/man is ok, but having the
manpages in in /usr/local/apache2/man, then its impossible to put them
in the man.conf and have them working.  This is very irritating, cause
I might not want to install software AND their manpages directly in a
root directory, but now, I just HAVE to...

Furthermore, I have NetBSD since yesterday and I'm already a big fan,
I love your OS, so much better then the messy Solaris ... No bullshit,
no trash, just straith to the point and secure, I love it!!

>How-To-Repeat:
Put /usr/apache2/man in the /etc/man.conf and "man httpd" will
work. BUT: Having the manpages in /usr/apache2/man and then put
/usr/local/apache2/man in /etc/man.conf and "man httpd" won't work...

>Fix:
I couldn't find any fix or anybody else on the internet having the
same problem, very strange...

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: standards-manager->bin-bug-people
Responsible-Changed-By: ginsbach@NetBSD.org
Responsible-Changed-When: Sat, 12 Aug 2017 23:25:07 +0000
Responsible-Changed-Why:
This isn't a standards issue.  More likely to get traction with the
bin-bug-people.


From: "David H. Gutteridge" <gutteridge@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/39448: Bug in man.conf -> Manual page paths longer than 3
 main subdirectories are ignored
Date: Wed, 13 Jul 2022 21:45:49 -0400

 I'm not able to reproduce this issue (granted it's been about 14 years,
 but I don't see anything significant that's changed in the code in this
 respect). For example, if I modify the default path in man.conf like so

 --- man.conf.orig
 +++ man.conf
 @@ -38,12 +38,13 @@
  # directory with all of the subdirectories listed for the keyword
 _subdir.
 =20
  # default
 -_default	/usr/{share,X11R7,pkg,local}/man/
 +_default	/usr/{share,X11R7,pkg,local/apache2}/man/

 and place a test man page in /usr/local/apache2/man/man1, it is found
 and displayed just fine. (My limiting of local/apache2 is deliberate.)

 There wasn't enough information provided in the report (no example
 man.conf entry) to determine anything further here. But I think
 whatever was going on, it isn't related to path lengths.

 Regards,

 Dave

State-Changed-From-To: open->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sun, 17 Jul 2022 02:11:59 +0000
State-Changed-Why:
Unable to reproduce, and insufficent information. We can re-open if need be.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.