source: clfs-sysroot/BOOK/final-system/common/man.xml@ 7126617

Last change on this file since 7126617 was 02095ae, checked in by Jim Gifford <clfs@…>, 19 years ago

r3633@server (orig r1649): jciccone | 2006-05-25 16:48:42 -0700
Added the Initial clfs-2.0 branch using sysroot builds.

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-man" role="wrap">
9 <?dbhtml filename="man.html"?>
10
11 <title>Man-&man-version;</title>
12
13 <indexterm zone="ch-system-man">
14 <primary sortas="a-Man">Man</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Man package contains programs for finding and viewing man
21 pages.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Man</title>
27
28 <para os="a">A few adjustments need to be made to the sources of Man.</para>
29
30 <para os="b">First, a <command>sed</command> substitution is
31 needed to add the <option>-R</option> switch to the
32 <envar>PAGER</envar> variable so that escape sequences are
33 properly handled by Less:</para>
34
35<screen os="c"><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
36
37 <para os="d">Another <command>sed</command> substitution comments out the
38 <quote>MANPATH /usr/man</quote> line in the <filename>man.conf</filename>
39 file to prevent redundant results when using programs such as
40 <command>whatis</command>:</para>
41
42<screen os="e"><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
43
44 <para os="f">Finally, correct a syntax error in the
45 <command>makewhatis</command> script:</para>
46
47<screen os="g"><userinput>sed -i 's@)) |@) |@' src/makewhatis.sh</userinput></screen>
48
49 <para os="h">Prepare Man for compilation:</para>
50
51<screen os="i"><userinput>./configure -confdir=/etc</userinput></screen>
52
53 <variablelist os="j">
54 <title>The meaning of the configure options:</title>
55
56 <varlistentry>
57 <term><parameter>-confdir=/etc</parameter></term>
58 <listitem>
59 <para>This tells the <command>man</command> program to look for the
60 <filename>man.conf</filename> configuration file in the <filename
61 class="directory">/etc</filename> directory.</para>
62 </listitem>
63 </varlistentry>
64 </variablelist>
65
66 <para os="k">Build makemsg using the hosts gcc. It is executed during the build</para>
67
68<screen os="l"><userinput>gcc src/makemsg.c -o src/makemsg</userinput></screen>
69
70 <para os="m">Compile the package:</para>
71
72<screen os="n"><userinput>make</userinput></screen>
73
74 <para os="o">Install the package:</para>
75
76<screen os="p"><userinput>make DESTDIR=${LFS} install</userinput></screen>
77
78 <note os="q">
79 <para>If you will be working on a terminal that does not support
80 text attributes such as color and bold, you can disable Select
81 Graphic Rendition (SGR) escape sequences by editing the
82 <filename>man.conf</filename> file and adding the <option>-c</option>
83 option to the <envar>NROFF</envar> variable. If you use multiple
84 terminal types for one computer it may be better to selectively add
85 the <envar>GROFF_NO_SGR</envar> environment variable for the terminals
86 that do not support SGR.</para>
87 </note>
88
89 <para os="r">If the character set of the locale uses 8-bit characters, search
90 for the line beginning with <quote>NROFF</quote> in
91 <filename>/etc/man.conf</filename>, and verify that it matches the
92 following:</para>
93
94<screen os="s">NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
95
96 <para os="t">Note that <quote>latin1</quote> should be used even if it is not
97 the character set of the locale. The reason is that, according to the
98 specification, <command>groff</command> has no means of typesetting
99 characters outside International Organization for Standards (ISO) 8859-1
100 without some strange escape codes. When formatting man pages,
101 <command>groff</command> thinks that they are in the ISO 8859-1 encoding
102 and this <parameter>-Tlatin1</parameter> switch tells
103 <command>groff</command> to use the same encoding for output. Since
104 <command>groff</command> does no recoding of input characters, the f
105 ormatted result is really in the same encoding as input, and therefore
106 it is usable as the input for a pager.</para>
107
108 <para os="u">This does not solve the problem of a non-working
109 <command>man2dvi</command> program for localized man pages in
110 non-ISO 8859-1 locales. Also, it does not work with multibyte
111 character sets. The first problem does not currently have a solution.
112 The second issue is not of concern because the LFS installation does
113 not support multibyte character sets.</para>
114
115 <para os="v">Additional information with regards to the compression of
116 man and info pages can be found in the BLFS book at
117 <ulink url="&blfs-root;view/cvs/postlfs/compressdoc.html"/>.</para>
118
119 </sect2>
120
121 <sect2 id="contents-man" role="content">
122 <title>Contents of Man</title>
123
124 <segmentedlist>
125 <segtitle>Installed programs</segtitle>
126
127 <seglistitem>
128 <seg>apropos, makewhatis, man, man2dvi, man2html, and whatis</seg>
129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
136
137 <varlistentry id="apropos">
138 <term><command>apropos</command></term>
139 <listitem>
140 <para>Searches the <command>whatis</command> database and
141 displays the short descriptions of system commands that contain
142 a given string</para>
143 <indexterm zone="ch-system-man apropos">
144 <primary sortas="b-apropos">apropos</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="makewhatis">
150 <term><command>makewhatis</command></term>
151 <listitem>
152 <para>Builds the <command>whatis</command> database; it reads all
153 the man pages in the <envar>MANPATH</envar> and writes the name
154 and a short description in the <command>whatis</command> database
155 for each page</para>
156 <indexterm zone="ch-system-man makewhatis">
157 <primary sortas="b-makewhatis">makewhatis</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="man">
163 <term><command>man</command></term>
164 <listitem>
165 <para>Formats and displays the requested on-line man page</para>
166 <indexterm zone="ch-system-man man">
167 <primary sortas="b-man">man</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="man2dvi">
173 <term><command>man2dvi</command></term>
174 <listitem>
175 <para>Converts a man page into dvi format</para>
176 <indexterm zone="ch-system-man man2dvi">
177 <primary sortas="b-man2dvi">man2dvi</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="man2html">
183 <term><command>man2html</command></term>
184 <listitem>
185 <para>Converts a man page into HTML</para>
186 <indexterm zone="ch-system-man man2html">
187 <primary sortas="b-man2html">man2html</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="whatis">
193 <term><command>whatis</command></term>
194 <listitem>
195 <para>Searches the <command>whatis</command> database and
196 displays the short descriptions of system commands that
197 contain the given keyword as a separate word</para>
198 <indexterm zone="ch-system-man whatis">
199 <primary sortas="b-whatis">whatis</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 </variablelist>
205
206 </sect2>
207
208</sect1>
Note: See TracBrowser for help on using the repository browser.