Changeset 37dcf2a for chapter06


Ignore:
Timestamp:
11/21/2003 03:39:20 AM (21 years ago)
Author:
Greg Schafer <greg@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
d081b3e
Parents:
bcd0ce7
Message:

Rolled back 4 patches to seds: GCC Suppress-Libiberty, Grub Gcc33, Man Manpath, Man Pager. Closes Bug 461.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3117 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter06
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc.xml

    rbcd0ce7 r37dcf2a  
    2424or modifying them when building GCC.</para>
    2525
    26 <para>This time we will build both the C and the C++ compiler, so you'll have
    27 to unpack the GCC-core <emphasis>and</emphasis> the GCC-g++ tarball -- they
     26<para>Unpack the GCC-core <emphasis>and</emphasis> the GCC-g++ tarball -- they
    2827will unfold into the same directory. You should likewise extract the
    2928GCC-testsuite package. The full GCC package contains even more
     
    3130<ulink url="&blfs-root;view/stable/general/gcc.html"/>.</para>
    3231
    33 <screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch;
    34 patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen>
     32<note><para>Be careful <emphasis role="strong">not</emphasis> to apply the GCC
     33Specs patch from Chapter 5 here.</para></note>
    3534
    36 <para>The second patch here suppresses the installation of libiberty from GCC,
    37 as we will use the one provided by binutils instead. Be careful
    38 <emphasis>not</emphasis> to apply the GCC specs patch from Chapter 5
    39 here.</para>
     35<para>First apply the No-Fixincludes patch that we also used in the previous
     36chapter:</para>
     37
     38<screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch;</userinput></screen>
     39
     40<para>Now apply a sed substitution that will suppress the installation of
     41<filename>libiberty.a</filename>. We want to use the version of
     42<filename>libiberty.a</filename> provided by Binutils:</para>
     43
     44<screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
    4045
    4146<para>The GCC documentation recommends building GCC outside of the source
  • chapter06/grub.xml

    rbcd0ce7 r37dcf2a  
    2222<para>First fix a compilation problem with GCC-&gcc-version;:</para>
    2323
    24 <screen><userinput>patch -Np1 -i ../&grub-patch;</userinput></screen>
     24<screen><userinput>sed -i 's/2 long/2/' stage2/fsys_reiserfs.c</userinput></screen>
    2525
    2626<para>Now prepare Grub for compilation:</para>
  • chapter06/man.xml

    rbcd0ce7 r37dcf2a  
    1515
    1616<para>We'll make three adjustments to the sources of Man.</para>
    17  
    18 <para>The first patch comments out the "MANPATH /usr/man" line in the
    19 <filename>man.conf</filename> file to prevent redundant results when using
    20  programs such as <userinput>whatis</userinput>:</para>
    2117
    22 <screen><userinput>patch -Np1 -i ../&man-manpath-patch;</userinput></screen>
    23 
    24 <para>The second patch adds the <emphasis>-R</emphasis> option to the
    25 <emphasis>PAGER</emphasis> variable so that escape sequences are
    26 handled properly:</para>
    27 
    28 <screen><userinput>patch -Np1 -i ../&man-pager-patch;</userinput></screen>
    29 
    30 <para>The third and last patch prevents a problem when man pages not formatted
    31 with more than 80 columns are used in conjunction with recent releases of
    32 <userinput>groff</userinput>:</para>
     18<para>The first is a patch which allows Man to work better with recent releases
     19of Groff. In particular, man pages will now display using the full terminal
     20width instead of being limited to 80 characters:</para>
    3321
    3422<screen><userinput>patch -Np1 -i ../&man-80cols-patch;</userinput></screen>
    3523
     24<para>The second is a sed substitution to add the <emphasis>-R</emphasis>
     25switch to the <emphasis>PAGER</emphasis> variable so that escape sequences are
     26properly handled by Less:</para>
     27
     28<screen><userinput>sed -i 's/-is/&amp;R/' configure</userinput></screen>
     29
     30<para>The third is also a sed substitution to comment out the "MANPATH
     31/usr/man" line in the <filename>man.conf</filename> file to prevent redundant
     32results when using programs such as <userinput>whatis</userinput>:</para>
     33
     34<screen><userinput>sed -i 's%MANPATH./usr/man%#&%' src/man.conf.in</userinput></screen>
     35 
    3636<para>Now prepare Man for compilation:</para>
    3737
Note: See TracChangeset for help on using the changeset viewer.