Changeset 47f42fa


Ignore:
Timestamp:
04/24/2015 12:00:34 AM (9 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.8-systemd, 7.9-systemd
Children:
c960015
Parents:
50bb87d
Message:

Updated to GCC-5.1.0.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10901 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
12 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r50bb87d r47f42fa  
    3838
    3939    <listitem>
     40      <para>2015-04-24</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[krejzi] - Added a fix for security issue
     44          in Glibc (CVE-2015-1781). Thanks to Ken Moffat
     45          for bringing it up and Bruce Dubbs for providing
     46          the fix in form of a sed.</para>
     47        </listitem>
     48        <listitem>
     49          <para>[krejzi] - Fixed Ncurses and Perl build
     50          with GCC 5. Thanks to Ken Moffat and Douglas
     51          R. Reno for providing the patches.</para>
     52        </listitem>
     53        <listitem>
     54          <para>[krejzi] - Updated to GCC-5.1.0. Fixes
     55          <ulink url="&lfs-ticket-root;3779">#3779</ulink>.</para>
     56        </listitem>
     57      </itemizedlist>
     58    </listitem>
     59
     60
     61    <listitem>
    4062      <para>2015-04-21</para>
    4163      <itemizedlist>
  • chapter01/whatsnew.xml

    r50bb87d r47f42fa  
    8686      <para>Gawk &gawk-version;</para>
    8787    </listitem>-->
    88     <!--<listitem>
     88    <listitem>
    8989      <para>GCC &gcc-version;</para>
    90     </listitem>-->
     90    </listitem>
    9191    <!--<listitem>
    9292      <para>GDBM &gdbm-version;</para>
     
    243243    </listitem>
    244244
     245    <listitem>
     246      <para>&ncurses-gcc5-buildfixes-patch;</para>
     247    </listitem>
     248
     249    <listitem>
     250      <para>&perl-gcc5-fixes-patch;</para>
     251    </listitem>
     252
    245253    <!--<listitem>
    246254      <para>&bash-fixes-patch;</para>
  • chapter03/patches.xml

    r50bb87d r47f42fa  
    124124      </listitem>
    125125    </varlistentry>
    126 <!--
     126
    127127    <varlistentry>
    128       <term>Perl Data::Dumper Patch - <token>&perl-fix-patch-size;</token>:</term>
     128      <term>Ncurses GCC 5 Fixes Patch - <token>&ncurses-gcc5-buildfixes-patch-size;</token>:</term>
    129129      <listitem>
    130         <para>Download: <ulink url="&patches-root;&perl-fix-patch;"/></para>
    131         <para>MD5 sum: <literal>&perl-fix-patch-md5;</literal></para>
     130        <para>Download: <ulink url="&patches-root;&ncurses-gcc5-buildfixes-patch;"/></para>
     131        <para>MD5 sum: <literal>&ncurses-gcc5-buildfixes-patch-md5;</literal></para>
    132132      </listitem>
    133133    </varlistentry>
    134 -->
     134
     135    <varlistentry>
     136      <term>Perl GCC 5 Fixes Patch - <token>&perl-gcc5-fixes-patch-size;</token>:</term>
     137      <listitem>
     138        <para>Download: <ulink url="&patches-root;&perl-gcc5-fixes-patch;"/></para>
     139        <para>MD5 sum: <literal>&perl-gcc5-fixes-patch-md5;</literal></para>
     140      </listitem>
     141    </varlistentry>
     142
    135143    <varlistentry>
    136144      <term>Readline Upstream Fixes Patch - <token>&readline-fixes-patch-size;</token>:</term>
  • chapter05/glibc.xml

    r50bb87d r47f42fa  
    4444    <title>Installation of Glibc</title>
    4545
     46<!-- The enable-obsolete-rpc should handle this just fine.
    4647    <para>In some cases, particularly LFS 7.1, the rpc headers were not
    4748    installed properly.  Test to see if they are installed in the host system
     
    5253  su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc'
    5354fi</userinput></screen>
    54 
     55-->
    5556    <para>Fix a regression in the package that affects 32-bit architectures:</para>
    5657
     
    8889      --disable-profile                             \
    8990      --enable-kernel=&min-kernel;                        \
     91      --enable-obsolete-rpc                         \
    9092      --with-headers=/tools/include                 \
    9193      libc_cv_forced_unwind=yes                     \
     
    119121          for &min-kernel; and later Linux kernels.  Workarounds for older
    120122          kernels are not enabled.</para>
     123        </listitem>
     124      </varlistentry>
     125
     126      <varlistentry>
     127        <term><parameter>--enable-obsolete-rpc</parameter></term>
     128        <listitem>
     129          <para>This installs NIS and RPC related headers that are not
     130          installed by default. They are required to build GCC and by
     131          several BLFS packages.</para>
    121132        </listitem>
    122133      </varlistentry>
  • chapter05/libstdc++.xml

    r50bb87d r47f42fa  
    5151    <para>Create a directory for Libstdc++ and enter it:</para>
    5252
    53 <screen><userinput remap="pre">mkdir -pv ../gcc-build
     53<screen><userinput remap="pre">mkdir -v ../gcc-build
    5454cd ../gcc-build</userinput></screen>
    5555
     
    6060    --prefix=/tools                 \
    6161    --disable-multilib              \
    62     --disable-shared                \
    6362    --disable-nls                   \
    6463    --disable-libstdcxx-threads     \
  • chapter05/ncurses.xml

    r50bb87d r47f42fa  
    4343  <sect2 role="installation">
    4444    <title>Installation of Ncurses</title>
     45
     46    <para>First, apply a patch to prevent a build failure
     47    when building with GCC 5:</para>
     48
     49<screen><userinput remap="pre">patch -Np1 -i ../&ncurses-gcc5-buildfixes-patch;</userinput></screen>
    4550
    4651    <para>Prepare Ncurses for compilation:</para>
  • chapter06/glibc.xml

    r50bb87d r47f42fa  
    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

    r50bb87d r47f42fa  
    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

    r50bb87d r47f42fa  
    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
  • general.ent

    r50bb87d r47f42fa  
    1 <!ENTITY version         "20150420-systemd">
     1<!ENTITY version         "20150424-systemd">
    22<!ENTITY short-version   "systemd">  <!-- Used in dbus chapter, change to x.y for release -->
    3 <!ENTITY releasedate     "April 20, 2015">
     3<!ENTITY releasedate     "April 24, 2015">
    44<!ENTITY copyrightdate   "1999-2015"><!-- jhalfs needs a literal dash, not &ndash; -->
    55<!ENTITY milestone       "7.8">
  • packages.ent

    r50bb87d r47f42fa  
    198198<!ENTITY gawk-ch6-sbu "0.3 SBU">
    199199
    200 <!ENTITY gcc-version "4.9.2">
    201 <!ENTITY gcc-size "87,832 KB">
     200<!ENTITY gcc-version "5.1.0">
     201<!ENTITY gcc-size "92,736 KB">
    202202<!ENTITY gcc-url "&gnu;gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
    203 <!ENTITY gcc-md5 "4df8ee253b7f3863ad0b86359cd39c43">
     203<!ENTITY gcc-md5 "d5525b1127d07d215960e6051c5da35e">
    204204<!ENTITY gcc-home "http://gcc.gnu.org/">
    205 <!ENTITY gcc-ch5p1-du "2.0 GB">
    206 <!ENTITY gcc-ch5p1-sbu "5.9 SBU">
    207 <!ENTITY gcc-ch5p2-du "2.6 GB">
    208 <!ENTITY gcc-ch5p2-sbu "7.7 SBU">
    209 <!ENTITY gcc-ch6-du "2.9 GB ">
    210 <!ENTITY gcc-ch6-sbu "63 SBU (with tests)">
    211 
    212 <!ENTITY libstdcpp-ch5-du "798 MB">
    213 <!ENTITY libstdcpp-ch5-sbu "0.3 SBU">
     205<!ENTITY gcc-ch5p1-du "2.4 GB">
     206<!ENTITY gcc-ch5p1-sbu "8.0 SBU">
     207<!ENTITY gcc-ch5p2-du "2.8 GB">
     208<!ENTITY gcc-ch5p2-sbu "10.2 SBU">
     209<!ENTITY gcc-ch6-du "2.6 GB ">
     210<!ENTITY gcc-ch6-sbu "92 SBU (with tests)">
     211
     212<!ENTITY libstdcpp-ch5-du "838 MB">
     213<!ENTITY libstdcpp-ch5-sbu "0.4 SBU">
    214214
    215215<!ENTITY gdbm-version "1.11">
  • patches.ent

    r50bb87d r47f42fa  
    3131<!ENTITY mpfr-fixes-patch-size "38 KB">
    3232
    33 <!--
    34 <!ENTITY perl-fix-patch "perl-&perl-version;-infinite_recurse_fix-1.patch">
    35 <!ENTITY perl-fix-patch-md5 "579dfed34e97e0a2fe21b74aa53946ac">
    36 <!ENTITY perl-fix-patch-size "11 KB">
    37 -->
     33<!ENTITY ncurses-gcc5-buildfixes-patch "ncurses-&ncurses-version;-gcc5_buildfixes-1.patch">
     34<!ENTITY ncurses-gcc5-buildfixes-patch-md5 "f9015f670940350a3fc3c2ef347e2b33">
     35<!ENTITY ncurses-gcc5-buildfixes-patch-size "4 KB">
     36
     37<!ENTITY perl-gcc5-fixes-patch "perl-&perl-version;-gcc5_fixes-1.patch">
     38<!ENTITY perl-gcc5-fixes-patch-md5 "30f4907f63ec3ef7d50fa55e12d2923e">
     39<!ENTITY perl-gcc5-fixes-patch-size "8 KB">
    3840
    3941<!ENTITY readline-fixes-patch "readline-&readline-version;-upstream_fixes-3.patch">
Note: See TracChangeset for help on using the changeset viewer.