mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 22:17:39 +00:00
148bb04f80
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2725 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
56 lines
2.1 KiB
XML
56 lines
2.1 KiB
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of Man</title>
|
|
|
|
<para>We'l make three adjustments to the sources of Man.</para>
|
|
|
|
<para>The first patch comments out the "MANPATH /usr/man" line in the
|
|
<filename>man.conf</filename> file to prevent redundant results when using
|
|
programs such as <userinput>whatis</userinput>:</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../man-&man-manpath-patch-version;-manpath.patch</userinput></screen></para>
|
|
|
|
<para>The second patch adds the <emphasis>-R</emphasis> option to the
|
|
<emphasis>PAGER</emphasis> variable so that escape sequences are
|
|
handled properly:</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../man-&man-pager-patch-version;-pager.patch</userinput></screen></para>
|
|
|
|
<para>The third and last patch prevents a problem when man pages not formatted
|
|
with more than 80 columns are used in conjunction with recent releases of
|
|
<userinput>groff</userinput>:</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../man-&man-80cols-patch-version;-80cols.patch</userinput></screen></para>
|
|
|
|
<para>The paths to some programs are hard-wired into Man's executables.
|
|
Unfortunately, the configuration script picks the last location in PATH
|
|
rather than the first place a program is found. By appending
|
|
<emphasis>/usr/bin:/bin</emphasis> to PATH for the
|
|
<userinput>./configure</userinput> command, we ensure that Man doesn't
|
|
use the programs in the <filename class="directory">/tools</filename>
|
|
directory.</para>
|
|
|
|
<para>Now prepare Man for compilation:</para>
|
|
|
|
<para><screen><userinput>PATH=$PATH:/usr/bin:/bin ./configure -default -confdir=/etc</userinput></screen></para>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
<para>And install it:</para>
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
|
|
|
<note><para>If you wish to disable SGR escape sequences, you should
|
|
edit the man.conf file and add the <userinput>-c</userinput> argument
|
|
to nroff.</para></note>
|
|
|
|
<para>You may want to take a look at the man hint
|
|
at <ulink url="&hints-root;man.txt"/>, which deals with formatting
|
|
and compression issues for man pages.</para>
|
|
|
|
</sect2>
|
|
|