From 8f192d8dbcb6566a9537979a70b01fd3679fba0f Mon Sep 17 00:00:00 2001 From: Ken Moffat Date: Fri, 14 Oct 2005 23:44:39 +0000 Subject: [PATCH] binutils and glibc patches, space/time updates git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1.1/BOOK@7017 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 6 ++++++ chapter03/patches.xml | 14 ++++++++++++++ chapter05/binutils-pass1.xml | 9 ++++++++- chapter05/perl.xml | 2 +- chapter06/glibc.xml | 5 +++++ chapter06/perl.xml | 2 +- chapter06/zlib.xml | 2 +- patches.ent | 2 ++ 8 files changed, 38 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c8352868e..929b0deee 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -26,8 +26,10 @@ First a summary, then a detailed log. Added: +binutils-&binutils-version;-gcc4-1.patch bzip2-&bzip2-version;-install_docs-1.patch bzip2-&bzip2-version;-bzgrep_security-1.patch +glibc-&glibc-version;-rtld_search_dirs-1.patch texinfo-&texinfo-version;-tempfile_fix-1.patch util-linux-&util-linux-version;-umount_fix-1.patch vim-&vim-version;-security_fix-2.patch @@ -40,6 +42,10 @@ First a summary, then a detailed log. +October 14th, 2005 [ken]: Added a patch to allow binutils +to be built from a host running gcc-4, updateid gcc instructions for the rtld +patch, updated space/time for perl and zlib. + October 14th, 2005 [matt]: Added a patch to fix a security vulnerability in util-linux. diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 76a756b94..c20603598 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -29,6 +29,13 @@ needed to build an LFS system: + +Binutils Build From Host Running Gcc4 Patch - 2 KB: + + + + + Bzip2 Documentation Patch - 1 KB: @@ -92,6 +99,13 @@ needed to build an LFS system: + +Glibc Rtld Search Dirs Patch - 1 KB: + + + + + Glibc Fix Testsuite Patch - 1 KB: diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml index 634098937..c33a87153 100644 --- a/chapter05/binutils-pass1.xml +++ b/chapter05/binutils-pass1.xml @@ -17,7 +17,7 @@ &buildtime; &diskspace; -1.0 SBU170 MB +1.0 SBU179 MB @@ -39,6 +39,13 @@ variables that override default optimizations have been defined, such as CFLAGS and CXXFLAGS, unset them when building Binutils. +If you are building from a host running Gcc-4 or later, it is necessary +to patch the first build of this version of Binutils so that it can be +compiled by the host system. + +patch -Np1 -i ../binutils-&binutils-version;-gcc4-1.patch + + The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory: diff --git a/chapter05/perl.xml b/chapter05/perl.xml index 88a1adc24..309ec6307 100644 --- a/chapter05/perl.xml +++ b/chapter05/perl.xml @@ -17,7 +17,7 @@ &buildtime; &diskspace; -0.8 SBU79.8 MB +0.8 SBU81.6 MB diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index b2b8b94bd..b868af0d5 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -51,6 +51,11 @@ within the Glibc source directory: tar -xjvf /sources/glibc-linuxthreads-&glibc-version;.tar.bz2 +In certain rare circumstances, Glibc can segfault when no standard search +directories exist. The following patch prevents this: + +patch -Np1 -i ../glibc-&glibc-version;-rtld_search_dirs-1.patch + Glibc has two tests which fail when the running kernel is 2.6.11.x The problem has been determined to be with the tests themselves, not with the libc nor the kernel. This patch fixes the problem: diff --git a/chapter06/perl.xml b/chapter06/perl.xml index f69b215b2..33f28574d 100644 --- a/chapter06/perl.xml +++ b/chapter06/perl.xml @@ -15,7 +15,7 @@ &buildtime; &diskspace; -2.9 SBU137 MB +4.1 SBU140 MB diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index 55e0a9c46..5ffe8cb44 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -16,7 +16,7 @@ some programs. &buildtime; &diskspace; -0.1 SBU2.7 MB +0.1 SBU3.1 MB diff --git a/patches.ent b/patches.ent index 010d789f1..f3a66942b 100644 --- a/patches.ent +++ b/patches.ent @@ -4,6 +4,7 @@ + @@ -18,6 +19,7 @@ +