[BLFS Trac] #1786: Adapt compressdoc script to Man-DB

BLFS Trac trac at linuxfromscratch.org
Sat Mar 11 06:53:53 PST 2006

#1786: Adapt compressdoc script to Man-DB
 Reporter:  alexander at linuxfromscratch.org  |        Owner:  dnicholson at linuxfromscratch.org
     Type:  defect                          |       Status:  assigned                       
 Priority:  high                            |    Milestone:  6.2                            
Component:  BOOK                            |      Version:  a-SVN                          
 Severity:  normal                          |   Resolution:                                 
 Keywords:                                  |  
Comment (by archaic at linuxfromscratch.org):

 This patch can break in certain environments because it reads man_db.conf
 unconditionally and tries to change into dirs that don't exist. Use of the
 man-db utility "manpath" is a very easy drop-in replacement for man --path
 -C. I recommend the patch be regenerated so that the following is removed:

 -  MAN_DIR=`man --path -C "$MAN_CONF"/man.conf \
 -            | sed 's/:/\\n/g' \
 +  MAN_DIR=`sed -n 's@^MANDATORY_MANPATH[^/]*\(/.*\)$@\1@ p' \
 +              "$MAN_CONF"/man_db.conf \

 and becomes:

 -  MAN_DIR=`man --path -C "$MAN_CONF"/man.conf \
 +  MAN_DIR=`manpath -C "$MAN_CONF"/man_db.conf \

 The line with the sed from the original patch can stay unchanged because
 manpath outputs the same format as man --path does.

Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/1786>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch

More information about the blfs-book mailing list