Subject: bin/12903: `catman -w' doesn't work
To: None <gnats-bugs@gnats.netbsd.org>
From: Brian de Alwis <bsd@fifty.cs.ubc.ca>
List: netbsd-bugs
Date: 05/10/2001 15:09:45
>Number:         12903
>Category:       bin
>Synopsis:       `catman -w' doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 10 15:09:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brian de Alwis
>Release:        NetBSD 1.5
>Organization:
"Maybe this world is another planet's Hell." - Aldous Huxley
>Environment:
System: NetBSD fifty 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000 fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386


>Description:

`catman -w' (rebuild whatis databases) behaves strangely with an
explicitly specified MANPATH.

# echo $MANPATH
/usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/pkg/man:/data/software/man
# catman -w
catman: can't open /usr/local/man/man1{/i386,}: No such file or directory
catman: can't open /usr/local/man/man8{/i386,}: No such file or directory
catman: can't open /usr/local/man/man6{/i386,}: No such file or directory
catman: can't open /usr/local/man/man2{/i386,}: No such file or directory
catman: can't open /usr/local/man/man3{/i386,}: No such file or directory
catman: can't open /usr/local/man/man4{/i386,}: No such file or directory
catman: can't open /usr/local/man/man5{/i386,}: No such file or directory
catman: can't open /usr/local/man/man7{/i386,}: No such file or directory
catman: can't open /usr/local/man/man3f{/i386,}: No such file or directory
catman: can't open /usr/local/man/man9{/i386,}: No such file or directory
catman: can't open /usr/local/man/mann{/i386,}: No such file or directory
catman: can't open /usr/local/man/manl{/i386,}: No such file or directory
catman: can't open /usr/share/man/man1{/i386,}: No such file or directory
catman: can't open /usr/share/man/man8{/i386,}: No such file or directory
catman: can't open /usr/share/man/man6{/i386,}: No such file or directory
catman: can't open /usr/share/man/man2{/i386,}: No such file or directory
catman: can't open /usr/share/man/man3{/i386,}: No such file or directory
catman: can't open /usr/share/man/man4{/i386,}: No such file or directory
catman: can't open /usr/share/man/man5{/i386,}: No such file or directory
catman: can't open /usr/share/man/man7{/i386,}: No such file or directory
catman: can't open /usr/share/man/man3f{/i386,}: No such file or directory
catman: can't open /usr/share/man/man9{/i386,}: No such file or directory
catman: can't open /usr/share/man/mann{/i386,}: No such file or directory
catman: can't open /usr/share/man/manl{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man1{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man8{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man6{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man2{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man3{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man4{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man5{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man7{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man3f{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/man9{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/mann{/i386,}: No such file or directory
catman: can't open /usr/X11R6/man/manl{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man1{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man8{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man6{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man2{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man3{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man4{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man5{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man7{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man3f{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/man9{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/mann{/i386,}: No such file or directory
catman: can't open /usr/pkg/man/manl{/i386,}: No such file or directory
catman: can't open /data/software/man/man1{/i386,}: No such file or directory
catman: can't open /data/software/man/man8{/i386,}: No such file or directory
catman: can't open /data/software/man/man6{/i386,}: No such file or directory
catman: can't open /data/software/man/man2{/i386,}: No such file or directory
catman: can't open /data/software/man/man3{/i386,}: No such file or directory
catman: can't open /data/software/man/man4{/i386,}: No such file or directory
catman: can't open /data/software/man/man5{/i386,}: No such file or directory
catman: can't open /data/software/man/man7{/i386,}: No such file or directory
catman: can't open /data/software/man/man3f{/i386,}: No such file or directory
catman: can't open /data/software/man/man9{/i386,}: No such file or directory
catman: can't open /data/software/man/mann{/i386,}: No such file or directory
catman: can't open /data/software/man/manl{/i386,}: No such file or directory
#

Unsetting the MANPATH produces correct behaviour; or at least it
doesn't complain (though nothing seems to get built).

>How-To-Repeat:
	Set an explicit MANPATH. Run `catman -w'.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: