From bb189b08be8e84e1f7cccb1b47371b5ca5acb94c Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 24 Apr 2015 03:19:38 +0000 Subject: 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 --- chapter05/glibc.xml | 13 ++++++++++++- chapter05/libstdc++.xml | 3 +-- chapter05/ncurses.xml | 5 +++++ 3 files changed, 18 insertions(+), 3 deletions(-) (limited to 'chapter05') diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 974a7292f..9916b4fb2 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -43,6 +43,7 @@ Installation of Glibc + Fix a regression in the package that affects 32-bit architectures: sed -e '/ia32/s/^/1:/' \ @@ -87,6 +88,7 @@ esac --build=$(../glibc-&glibc-version;/scripts/config.guess) \ --disable-profile \ --enable-kernel=&min-kernel; \ + --enable-obsolete-rpc \ --with-headers=/tools/include \ libc_cv_forced_unwind=yes \ libc_cv_ctors_header=yes \ @@ -121,6 +123,15 @@ esac + + --enable-obsolete-rpc + + This installs NIS and RPC related headers that are not + installed by default. They are required to build GCC and by + several BLFS packages. + + + --with-headers=/tools/include diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml index 9af130f4b..29d7f2739 100644 --- a/chapter05/libstdc++.xml +++ b/chapter05/libstdc++.xml @@ -50,7 +50,7 @@ Create a directory for Libstdc++ and enter it: -mkdir -pv ../gcc-build +mkdir -v ../gcc-build cd ../gcc-build Prepare Libstdc++ for compilation: @@ -59,7 +59,6 @@ cd ../gcc-build --host=$LFS_TGT \ --prefix=/tools \ --disable-multilib \ - --disable-shared \ --disable-nls \ --disable-libstdcxx-threads \ --disable-libstdcxx-pch \ diff --git a/chapter05/ncurses.xml b/chapter05/ncurses.xml index a18a9c819..336172b59 100644 --- a/chapter05/ncurses.xml +++ b/chapter05/ncurses.xml @@ -43,6 +43,11 @@ Installation of Ncurses + First, apply a patch to prevent a build failure + when building with GCC 5: + +patch -Np1 -i ../&ncurses-gcc5-buildfixes-patch; + Prepare Ncurses for compilation: ./configure --prefix=/tools \ -- cgit v1.2.3-54-g00ecf