Changeset bb189b0 for chapter06


Ignore:
Timestamp:
04/24/2015 03:19:38 AM (9 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, 12.2, 12.2-rc1, 7.8, 7.9, 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, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
320fdc6
Parents:
41727289
Message:

Added a fix for security issue in Glibc (CVE-2015-1781).
Thanks to Ken Moffat for identifying the proplem and the fix.

Fixed Ncurses and Perl build with GCC 5. Thanks to Ken Moffat and
Douglas R. Reno for providing the patches.

Updated to GCC-5.1.0. Imported changes from systemd version.

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

Location:
chapter06
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter06/glibc.xml

    r41727289 rbb189b0  
    7575    -i  sysdeps/i386/i686/multiarch/mempcpy_chk.S</userinput></screen>
    7676
     77    <para>Fix a potential security issue identified upstream:</para>
     78
     79<screen><userinput remap="pre">sed -i '/glibc.*pad/{i\  buflen = buflen > pad ? buflen - pad : 0;
     80                     s/ + pad//}' resolv/nss_dns/dns-host.c</userinput></screen>
     81
     82    <para>Fix a test case that fails when built using GCC 5:</para>
     83
     84<screen><userinput remap="pre">sed -e '/tst-audit2-ENV/i CFLAGS-tst-audit2.c += -fno-builtin' \
     85    -i elf/Makefile</userinput></screen>
     86
    7787    <para>The Glibc documentation recommends building Glibc outside of the source
    7888    directory in a dedicated build directory:</para>
     
    8898    --enable-kernel=&min-kernel; \
    8999    --enable-obsolete-rpc</userinput></screen>
    90 
    91     <variablelist>
    92       <title>The meaning of the new configure options:</title>
    93 
    94       <varlistentry>
    95         <term><parameter>--enable-obsolete-rpc</parameter></term>
    96         <listitem>
    97           <para>Installs NIS and RPC related headers that are not installed by
    98           default; these are required to rebuild Glibc and by several BLFS
    99           packages.</para>
    100         </listitem>
    101       </varlistentry>
    102 
    103     </variablelist>
    104100
    105101    <para>Compile the package:</para>
  • chapter06/ncurses.xml

    r41727289 rbb189b0  
    4141  <sect2 role="installation">
    4242    <title>Installation of Ncurses</title>
     43
     44    <para>First, apply a patch to prevent a build failure
     45    when building with GCC 5:</para>
     46
     47<screen><userinput remap="pre">patch -Np1 -i ../&ncurses-gcc5-buildfixes-patch;</userinput></screen>
    4348
    4449    <para>Don't install a static library that is not handled by configure:</para>
  • chapter06/perl.xml

    r41727289 rbb189b0  
    5656<screen><userinput remap="pre">export BUILD_ZLIB=False
    5757export BUILD_BZIP2=0</userinput></screen>
    58 <!--
    59     <para>Fix a potential security problem:</para>
    60 
    61 <screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen>
    62 -->
     58
     59    <para>Apply a patch to allow the Errno.pm module and the h2ph
     60    program to build correctly when building with GCC 5:</para>
     61
     62<screen><userinput remap="pre">patch -Np1 -i ../&perl-gcc5-fixes-patch;</userinput></screen>
     63
    6364    <para>To have full control over the way Perl is set up, you can remove the
    6465    <quote>-des</quote> options from the following command and hand-pick the way
Note: See TracChangeset for help on using the changeset viewer.