From 81fd230419b0cfd052b08fc1ed352bb7d49975df Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Sat, 19 Feb 2005 22:16:42 +0000 Subject: Trunk is now identical to Testing git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/man.xml | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 128 insertions(+), 7 deletions(-) (limited to 'chapter06/man.xml') diff --git a/chapter06/man.xml b/chapter06/man.xml index 042cb5fee..1a0bce0ff 100644 --- a/chapter06/man.xml +++ b/chapter06/man.xml @@ -3,13 +3,14 @@ %general-entities; ]> - + Man-&man-version; Man +<para>The Man package contains programs for finding and viewing manual pages.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -17,40 +18,160 @@ <seglistitem><seg>0.1 SBU</seg><seg>1.9MB</seg></seglistitem> </segmentedlist> +<segmentedlist> +<segtitle>Man installation depends on</segtitle> +<seglistitem><seg>Bash, Binutils, Coreutils, Gawk, GCC, +Glibc, Grep, Make, and Sed</seg></seglistitem> +</segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Man -Issue a sed substitution: +Two adjustments need to be made to the sources of Man. + +The first is a sed substitution to add the +-R switch to the PAGER +variable so that escape sequences are properly handled by Less: sed -i 's@-is@&R@g' configure -Issue another sed substitution: +The second is also a sed substitution to comment out the +MANPATH /usr/man line in the +man.conf file to prevent redundant results when +using programs such as whatis: sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in -Now prepare Man for compilation: +Prepare Man for compilation: ./configure -confdir=/etc +The meaning of the configure options: + + + +-confdir=/etc +This tells the man program to look for the +man.conf configuration file in the /etc directory. + + + Compile the package: make -Lastly, install it: +Install the package: make install -For some internazionalitation issues, see testing. +To disable Select Graphic Rendition (SGR) escape +sequences, edit the man.conf file and +add the -c switch to +the NROFF variable. + +If the character set uses 8-bit characters, search for the line +beginning with NROFF in +/etc/man.conf, and verify that it looks as +follows: + +NROFF /usr/bin/nroff -Tlatin1 -mandoc + +Note that latin1 should be used even if it is not +the character set of the locale. The reason is that, according to the +specification, groff has no means of typesetting +characters outside International Organization for Standards +(ISO) 8859-1 without some strange escape codes. When formatting manual +pages, groff thinks that they are in the ISO 8859-1 +encoding and this -Tlatin1 switch tells +groff to use the same encoding for output. Since +groff does no recoding of input characters, the +formatted result is really in the same encoding as input, and therefore +it is usable as the input for a pager. + +This does not solve the problem of a non-working +man2dvi program for localized manual pages in +non-ISO 8859-1 locales. Also, it does not work with multibyte +character sets. The first problem does not currently have a solution. +The second issue is not of concern because the LFS installation does +not support multibyte character sets. + +Additional information with regards to the compression of +man and info pages can be found in the BLFS book at +http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/ +compressdoc.html. Contents of Man -See testing + +Installed programs +apropos, makewhatis, man, +man2dvi, man2html, and whatis + + +Short Descriptions + + + +apropos + +Searches the whatis database and displays the short descriptions +of system commands that contain a given string +apropos + + + + +makewhatis + +Builds the whatis database; it reads all the manual pages in the +manpath and writes the name and a short description in the whatis +database for each page +makewhatis + + + + +man + +Formats and displays the requested on-line manual page +man + + + + +man2dvi + +Converts a manual page into dvi format +man2dvi + + + + +man2html + +Converts a manual page into HTML +man2html + + + + +whatis + +Searches the whatis database and displays the short descriptions +of system commands that contain the given keyword as a separate +word +whatis + + + + -- cgit v1.2.3-54-g00ecf