Changeset 6b1f979 in clfs-sysroot


Ignore:
Timestamp:
Jul 22, 2006, 11:38:49 AM (18 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
de77ba6
Parents:
9d01307
Message:

Added 2 seds to man.xml; the first makes configure detect the paths of programs in $CLFS and the second strips $CLFS out of conf_script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/man.xml

    r9d01307 r6b1f979  
    2828    <para os="a">A few adjustments need to be made to the sources of Man.</para>
    2929
    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>
     30    <para os="b">First, a <command>sed</command> substitution is needed to
     31    modify <command>configure</command>'s default search path for executables.
     32    It cycles through the values in <envar>PREPATH</envar> until it finds the
     33    program it is looking for. The <option>-R</option> switch is added to the
     34    <envar>PAGER</envar> variable so that escape sequences are properly handled
     35    by Less:</para>
    3436
    3537<screen os="c"><userinput>cp configure{,.orig}
    36 sed 's@-is@&amp;R@g' configure.orig &gt; configure</userinput></screen>
     38sed -e "/PREPATH=/s@=.*@=\"$(eval echo ${CLFS}/{,usr/}{sbin,bin})\"@g" \
     39    -e 's@-is@&amp;R@g' configure.orig &gt; configure</userinput></screen>
    3740
    3841    <para os="d">Another <command>sed</command> substitution comments out the
     
    6770    </variablelist>
    6871
    69     <para os="k">Build makemsg using the hosts gcc. It is executed during the build</para>
    70 
    71 <screen os="l"><userinput>gcc src/makemsg.c -o src/makemsg</userinput></screen>
    72 
    73     <para os="m">Compile the package:</para>
    74 
    75 <screen os="n"><userinput>make</userinput></screen>
    76 
    77     <para os="o">Install the package:</para>
    78 
    79 <screen os="p"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    80 
    81     <note os="q">
     72    <para os="k">Configure was modified to look in <filename
     73    class="directory">${CLFS}</filename> for the paths of helper
     74    programs. Right now all of the programs have <filename
     75    class="directory">${CLFS}</filename> as a prefix. Remove that prefix
     76    with the following command:</para>
     77
     78<screen os="l"><userinput>cp conf_script{,.orig}
     79sed "s@${CLFS}@@" conf_script.orig &gt; conf_script</userinput></screen>
     80
     81    <para os="m">Build makemsg using the hosts gcc. It is executed during the build:</para>
     82
     83<screen os="n"><userinput>gcc src/makemsg.c -o src/makemsg</userinput></screen>
     84
     85    <para os="o">Compile the package:</para>
     86
     87<screen os="p"><userinput>make</userinput></screen>
     88
     89    <para os="q">Install the package:</para>
     90
     91<screen os="r"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
     92
     93    <note os="s">
    8294      <para>If you will be working on a terminal that does not support
    8395      text attributes such as color and bold, you can disable Select
     
    90102    </note>
    91103
    92     <para os="r">If the character set of the locale uses 8-bit characters, search
     104    <para os="t">If the character set of the locale uses 8-bit characters, search
    93105    for the line beginning with <quote>NROFF</quote> in
    94106    <filename>/etc/man.conf</filename>, and verify that it matches the
    95107    following:</para>
    96108
    97 <screen os="s">NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
    98 
    99     <para os="t">Note that <quote>latin1</quote> should be used even if it is not
     109<screen os="u">NROFF /usr/bin/nroff -Tlatin1 -mandoc</screen>
     110
     111    <para os="v">Note that <quote>latin1</quote> should be used even if it is not
    100112    the character set of the locale. The reason is that, according to the
    101113    specification, <command>groff</command> has no means of typesetting
     
    109121    it is usable as the input for a pager.</para>
    110122
    111     <para os="u">This does not solve the problem of a non-working
     123    <para os="w">This does not solve the problem of a non-working
    112124    <command>man2dvi</command> program for localized man pages in
    113125    non-ISO 8859-1 locales. Also, it does not work with multibyte
     
    116128    not support multibyte character sets.</para>
    117129
    118     <para os="v">Additional information with regards to the compression of
     130    <para os="x">Additional information with regards to the compression of
    119131    man and info pages can be found in the BLFS book at
    120132    <ulink url="&blfs-root;view/svn/postlfs/compressdoc.html"/>.</para>
Note: See TracChangeset for help on using the changeset viewer.