Opened 23 years ago

Closed 22 years ago

Last modified 22 years ago

#215 closed defect (fixed)

Redundant MANPATH

Reported by: gerard@… Owned by: lfs-book@…
Priority: high Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

From jsmaby@…:

I noticed that in /usr/share/misc/man.conf the MANPATH uses both /usr/man and /usr/share/man, so programs like whatis and apropos give two matches for each man page (try whatis ls for instance). Now, it appears that makewhatis adds /usr/man regardless of what is in that file, so in order to fix the problem we would have to uncomment the /usr/share/man entry, even though that's where the man pages really are.

Change History (9)

comment:1 by markh@…, 23 years ago

I suggest creating a minimal man.conf ourselves. I'll post an example of this later... (This is partly a test of my new KDE setup!)

comment:2 by gerard@…, 23 years ago

RFC posted to lfs-dev

comment:3 by gimli@…, 23 years ago

I'm unable to reproduce this problem with man 1.5j so it's probably fixed in this release. I've tested it on two different boxes with various man.confs.

comment:4 by gerard@…, 23 years ago

copy default man.conf file from man-1.5j/src/man.conf to /etc

root@lorien:/usr/src/builds# makewhatis root@lorien:/usr/src/builds# whatis ls ls (1) - list directory contents ls (1) - list directory contents

When I comment out /usr/man in man.conf I still get those two lines of output. When I comment out /usr/share/man and leave /usr/man I get the correct one line of output.

comment:5 by gerard@…, 22 years ago

Priority: normalhighest

comment:6 by gerard@…, 22 years ago

Priority: highesthigh

comment:7 by gerard@…, 22 years ago

Status: newassigned

comment:8 by gerard@…, 22 years ago

Commenting out the "MANPATH /usr/man" line fixes the problem.

comment:9 by gerard@…, 22 years ago

Resolution: fixed
Status: assignedclosed

added regex to change "MANPATH /usr/man" into "#MANPATH /usr/man"

Note: See TracTickets for help on using tickets.