#1786: Adapt compressdoc script to Man-DB
--------------------------------------------+-------------------------------
Reporter: [EMAIL PROTECTED] | Owner: [EMAIL PROTECTED]
Type: defect | Status: assigned
Priority: high | Milestone: 6.2
Component: BOOK | Version: a-SVN
Severity: normal | Resolution:
Keywords: |
--------------------------------------------+-------------------------------
Comment (by [EMAIL PROTECTED]):
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 '[EMAIL PROTECTED]/]*\(/.*\)[EMAIL PROTECTED]@ 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
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page