From 47d4ffad9bab231b0aca5f66e694247e1f9d6c8c Mon Sep 17 00:00:00 2001 From: Dan Nichilson Date: Sat, 24 Feb 2007 05:30:22 +0000 Subject: [PATCH] Removed /usr/local/man lines from man_db.conf git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7936 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 4 ++++ chapter06/man-db.xml | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index a1c61ccfd..82e05857a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,10 @@ 2007-02-23 + + [dnicholson] - Removed /usr/local/man lines from man_db.conf + to prevent redundant results. Reported by Chris Staub. + [dnicholson] - Applied a patch from Chris Staub to fix some commands and text on the kernel file systems, E2fsprogs and diff --git a/chapter06/man-db.xml b/chapter06/man-db.xml index 82b374447..7ff5e068c 100644 --- a/chapter06/man-db.xml +++ b/chapter06/man-db.xml @@ -48,11 +48,11 @@ mv man/ja{_JP.eucJP,} && sed -i 's,\*_\*,??,' man/Makefile.in The second change is a sed substitution to delete - the /usr/man lines in the man_db.conf - file to prevent redundant results when using programs such as - whatis: + the /usr/man and /usr/local/man lines in + the man_db.conf file to prevent redundant results + when using programs such as whatis: -sed -i '/\t\/usr\/man/d' src/man_db.conf.in +sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' src/man_db.conf.in The third change accounts for programs that Man-DB should be able to find at runtime, but that haven't been installed yet: