r669 - in trunk/BOOK: chapter01 chapter02 chapter03 chapter04 chapter07 prologue stylesheets

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Jul 26 17:52:26 PDT 2006


Author: robert
Date: 2006-07-26 18:52:24 -0600 (Wed, 26 Jul 2006)
New Revision: 669

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter01/how.xml
   trunk/BOOK/chapter02/chapter02.xml
   trunk/BOOK/chapter03/settingenviron.xml
   trunk/BOOK/chapter04/packages.xml
   trunk/BOOK/chapter04/patches.xml
   trunk/BOOK/chapter07/kernel.xml
   trunk/BOOK/prologue/bookinfo.xml
   trunk/BOOK/stylesheets/top-index.xsl
Log:
glibc-2.4, gcc-4.1.1 (aka NEO) merger part 1 of 3

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter01/changelog.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -34,7 +34,7 @@
 <listitem><para>automake-1.9.6</para></listitem>
 <listitem><para>bash-3.1</para></listitem>
 <listitem><para>blfs-bootscripts-6.1</para></listitem>
-<listitem><para>binutils-2.16.1</para></listitem>
+<listitem><para>binutils-2.17</para></listitem>
 <listitem><para>bison-2.1</para></listitem>
 <listitem><para>bzip2-1.0.3</para></listitem>
 <listitem><para>coreutils-5.97</para></listitem>
@@ -44,11 +44,11 @@
 <listitem><para>expect-5.43.0</para></listitem>
 <listitem><para>file-4.16</para></listitem>
 <listitem><para>findutils-4.2.27</para></listitem>
-<listitem><para>flex-2.5.31</para></listitem>
+<listitem><para>flex-2.5.33</para></listitem>
 <listitem><para>gawk-3.1.5</para></listitem>
-<listitem><para>gcc-3.4.5</para></listitem>
+<listitem><para>gcc-4.1.1</para></listitem>
 <listitem><para>gettext-0.14.5</para></listitem>
-<listitem condition="glibc"><para>glibc-2.3.6</para></listitem>
+<listitem condition="glibc"><para>glibc-2.4</para></listitem>
 <listitem><para>gnupg-1.4.1</para></listitem>
 <listitem><para>grep-2.5.1a</para></listitem>
 <listitem><para>groff-1.19.2</para></listitem>
@@ -63,12 +63,12 @@
 <listitem><para>lfs-bootscripts-3.2.1</para></listitem>
 <listitem><para>libpng-1.2.8</para></listitem>
 <listitem><para>libtool-1.5.22</para></listitem>
-<listitem><para>linux-2.6.14.6</para></listitem>
-<listitem><para>linux-libc-headers-2.6.12.0</para></listitem>
+<listitem><para>linux-2.6.17.4</para></listitem>
+<listitem><para>linux-headers-2.6.17.6-07202006</para></listitem>
 <listitem><para>m4-1.4.4</para></listitem>
 <listitem><para>make-3.81</para></listitem>
 <listitem><para>man-1.6b</para></listitem>
-<listitem><para>man-pages-2.33</para></listitem>
+<listitem><para>man-pages-2.36</para></listitem>
 <listitem><para>mktemp-1.5</para></listitem>
 <listitem><para>module-init-tools-3.2.2</para></listitem>
 <listitem><para>ncurses-5.5</para></listitem>
@@ -87,7 +87,7 @@
 <listitem><para>sysklogd-1.4.1</para></listitem>
 <listitem><para>sysvinit-2.86</para></listitem>
 <listitem><para>tar-1.15.1</para></listitem>
-<listitem><para>tcl-8.4.12</para></listitem>
+<listitem><para>tcl-8.4.13</para></listitem>
 <listitem><para>texinfo-4.8</para></listitem>
 <listitem condition="uclibc"><para>uclibc-0.9.28</para></listitem>
 <listitem><para>udev-081</para></listitem>
@@ -110,6 +110,92 @@
 </listitem>
 -->
 
+<listitem><para>July 26th, 2006 [Robert]: Added Inetutils-gcc4_fixes-3.patch
+to replace the kernel_headers.patch. Added Kbd backspace and gcc4_fixes
+patches. Added Tar security_fixes and gcc4_fix patches.</para></listitem>
+
+<listitem><para>July 26th, 2006 [Robert]: Combined chapter 6's gcc and binutils
+pages into butterfly.xml.</para></listitem>
+
+<listitem><para>July 26th, 2006 [Robert]: Bump tolinux-headers-2.6.17.6-07202006.</para></listitem>
+
+<listitem><para>July 24rth, 2006 [Robert]: Added -fno-stack-protector to
+Libgcc so Glibc will compile. Libgcc.a is often hardcoded into other static
+libraries and will fail to resolve SSP symbols.</para></listitem>
+
+<listitem><para>July 24rth, 2006 [Robert]: Touched up chapter01/how.xml,
+removing references to static linking pass 1 tools, and other updates.
+Also touched up chapter05/introduction.xml.</para></listitem>
+
+<listitem><para>July 24rth, 2006 [Robert]: Bump to flex-2.5.33.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Removed all testsuites, and extra
+locale installations, from chapter 5. This is to reduce false bug reports.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Added -pie to TCL and Expect.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Added a test to toolchains to make
+sure GCC is defining FORTIFY_SOURCE, SSP, and PIC.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Move static libraries to
+/usr/lib/static instead of removing them. Use -fstack-protector-all
+explicitly on nscd in Glibc, instead of -fstack-protector. All of Glibc's
+utilities are now PIC (small modification with sed) and linked with
+-pie.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Bump to man-pages-2.36.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Added 'nice' to bash_profile and
+chroot command. This might be removed for book releases.</para></listitem>
+
+<listitem><para>July 23rd, 2006 [Robert]: Added --enable-warnings to
+Ncurses. Bump to perl-libc-2.patch.</para></listitem>
+
+<listitem><para>July 22nd, 2006 [Robert]: Pipe 'gcc -dumpspecs' to sed and
+then redirect it to the specs file location, rather than creating a
+temporary file. This is shorter, less complicated, and easier to read.</para></listitem>
+
+<listitem><para>July 22nd, 2006 [Robert]: Removed installation of locales
+from chapter 5's Glibc and link to chapter 6's Glibc if users want to install
+them.</para></listitem>
+
+<listitem><para>July 22nd, 2006 [Robert]: Start adding -i (interactive) to
+cp(1) commands before running sed(1) when modifying source files. This, along
+with copying files to *.orig{,2,3,4...}, is to make sure we don't overwrite
+the vanilla copies.</para></listitem>
+
+<listitem><para>July 21st, 2006 [Robert]: Bump to Tcl-8.4.13. Removed Binutils
+posix patch, added sed commands to make Binutils and GCC build with Posix
+complaint commands.</para></listitem>
+
+<listitem><para>July 21st, 2006 [Robert]: Add sed command to add -fPIC to the
+Embryo GCC installation so that Glibc, Libiberty, etc, will build with PIC code.
+Added specs header file to the Cocoon GCC to make -fpie/fpic,
+-DFORTIFY_SOURCE=2, -fstack-protector-all, ld -pie -relro -now the default
+behavior.</para></listitem>
+
+<listitem><para>July 20th, 2006 [Robert]: Bump to glibc-2.4. Suspend
+arc4random and pseudo_random patches. Remove glibc-fstack_protector, and
+glibc-ssp patch. Added glibc-iconv_fix, glibc-iconv_unnest, and
+glibc-localedef_segfaultpatches.</para></listitem>
+
+<listitem><para>July 18th, 2006 [Robert]: Removed the -pie -fpie sed commands
+for each package, the bzip2-hardened_cflags patch, the flex-hardened_cflags
+patch, util-linux-hardened_cflags patch, and procps-hardened_cflags, they are
+no longer needed.</para></listitem>
+
+<listitem><para>July 17th, 2006 [Robert]: Binutils/GCC now use the GCC Top
+Level Makefile system in a combined tree 3 stage bootstrap. Removed
+libc-header installation from chapter 5. We don't do any more cross compiling.
+Replace linux-libc-headers with linux-headers from the CLFS project. Bump
+to linux-2.6.17.4, and grsec-unstable to match. Binutils/GCC pass1/cross is
+renamed to Embryo-toolchain. Binutils/GCC pass2/native is renamed to
+Cocoon-toolchain.</para></listitem>
+
+<listitem><para>July 17th, 2006 [Robert]: Bump back up to binutils-2.17.
+Bump to gcc-4.1.1. Removed gcc-hardened_cflags, gcc-linkonce,
+gcc-no_fixincludes, and gcc-ssp patches, they are no longer needed.</para></listitem>
+
 <listitem><para>July 17th, 2006 [Robert]: Use 'int main(){return 0;}' for
 tests in adjusting and readjusting so no compiler warnings are generated.</para></listitem>
 

Modified: trunk/BOOK/chapter01/how.xml
===================================================================
--- trunk/BOOK/chapter01/how.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter01/how.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -3,49 +3,54 @@
   <!ENTITY % general-entities SYSTEM "../general.ent">
   %general-entities;
 ]>
+
 <sect1 id="ch-scatter-how">
-<title>How to Build an HLFS System</title>
-<?dbhtml filename="how.html"?>
+  <?dbhtml filename="how.html"?>
 
-<para><xref linkend="chapter-temporary-tools"/> explains the installation of a
-number of packages that will form the basic development suite (or toolchain)
-which is used to build the actual system in <xref
-linkend="chapter-building-system"/>. Some of these packages are needed to
-resolve circular dependencies—for example, to compile a compiler, you need
-a compiler.</para>
+  <title>How to Build an HLFS System</title>
 
-<para><xref linkend="chapter-temporary-tools"/> also shows the user how to build
-a first pass of the toolchain, including Binutils and GCC (first pass basically
-means these two core packages will be re-installed a second time). The programs
-from these packages will be linked statically in order to be used independently
-of the host system. The next step is to build Glibc, the C library. Glibc will
-be compiled by the toolchain programs built in the first pass. Then, a second
-pass of the toolchain will be built. This time, the toolchain will be
-dynamically linked against the newly built Glibc. The remaining <xref
-linkend="chapter-temporary-tools"/> packages are built using this second pass
-toolchain. When this is done, the HLFS installation process will no longer
-depend on the host distribution, with the exception of the running
-kernel.</para>
+  <para><xref linkend="chapter-temporary-tools"/> explains the installation of a
+  number of packages that will form the basic development suite (or toolchain)
+  which is used to build the actual system in <xref
+  linkend="chapter-building-system"/>. Some of these packages are needed to
+  resolve circular dependencies—for example, to compile a compiler, you
+  need a compiler.</para>
 
-<para>While this may initially seem like a lot of work to get away from a host
-distribution, a full technical explanation is provided at the beginning of <xref
-linkend="chapter-technotes"/>, including notes on the differences between
-statically and dynamically-linked programs.</para>
+  <para><xref linkend="chapter-temporary-tools"/> also shows the user how to
+  build a first pass of the toolchain, referred to as the
+  <quote>Embryo toolchain</quote>, which includes Binutils and GCC. The next
+  step is to compile the C library with the <quote>Embryo toolchain</quote>.
+  Then a second toolchain, referred to as the <quote>Cocoon toolchain</quote>,
+  will be linked against the newly installed C library. The remaining
+  <xref linkend="chapter-temporary-tools"/> packages are built using the
+  <quote>Cocoon toolchain</quote>. When this is done the HLFS installation
+  process will no longer depend on the host distribution, with the exception
+  of the running kernel.</para>
 
-<para>In <xref linkend="chapter-building-system"/>, the full HLFS system is
-built. The chroot (change root) program is used to enter a virtual environment
-and start a new shell whose root directory will be set to the HLFS partition.
-This is very similar to rebooting and instructing the kernel to mount the HLFS
-partition as the root partition. The system does not actually reboot, but
-instead chroots because creating a bootable system requires additional work
-which is not necessary just yet. The major advantage is that
-<quote>chrooting</quote> allows the builder to continue using the host while
-HLFS is being built. While waiting for package compilation to complete, a user
-can switch to a different virtual console (VC) or X desktop and continue using
-the computer as normal.</para>
+  <para>While this may initially seem like a lot of work to get away from a host
+  distribution, a full technical explanation is provided at the beginning of
+  <xref linkend="chapter-technotes"/>.</para>
 
-<para>FIXME -- some code is commented until later sections are written</para>
+  <para>In <xref linkend="chapter-building-system"/>, the full HLFS system is
+  built. The chroot (change root) program is used to enter a virtual environment
+  and start a new shell whose root directory will be set to the HLFS partition.
+  This is very similar to rebooting and instructing the kernel to mount the HLFS
+  partition as the root partition. The system does not actually reboot, but
+  instead chroots because creating a bootable system requires additional work
+  which is not necessary just yet. The major advantage is that
+  <quote>chrooting</quote> allows the builder to continue using the host while
+  HLFS is being built. While waiting for package compilation to complete, a user
+  can switch to a different virtual console (VC) or X desktop and continue using
+  the computer as normal.</para>
+
+  <para>The final toolchain, installed in
+  <xref linkend="chapter-building-system"/>, is referred to as the
+  <quote>Butterfly toolchain</quote>. This toolchain, and the packages it
+  compiles, are completely independent of the previous toolchains and host
+  system.</para>
+
 <!--
+<para>FIX ME some code is commented until later sections are written</para>
 <para>To finish the installation, the bootscripts are set up in <xref
 linkend="chapter-bootscripts"/>, and the kernel and boot loader are set up in
 <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
@@ -53,10 +58,10 @@
 the steps in this book have been implemented, the computer will be ready to
 reboot into the new HLFS system.</para>
 -->
-<para>This is the process in a nutshell. Detailed information on each step is
-discussed in the following chapters and package descriptions.  Items that may
-seem complicated will be clarified, and everything will fall into place as the
-developer embarks on the HLFS adventure.</para>
+  <para>This is the process in a nutshell. Detailed information on each step is
+  discussed in the following chapters and package descriptions.  Items that may
+  seem complicated will be clarified, and everything will fall into place as the
+  developer embarks on the HLFS adventure.</para>
 
 </sect1>
 

Modified: trunk/BOOK/chapter02/chapter02.xml
===================================================================
--- trunk/BOOK/chapter02/chapter02.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter02/chapter02.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -11,7 +11,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="introduction.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hostreqs.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="toolchain.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arc4random.xml"/>
+<!-- <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="arc4random.xml"/> -->
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ssp.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pie.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutsbus.xml"/>

Modified: trunk/BOOK/chapter03/settingenviron.xml
===================================================================
--- trunk/BOOK/chapter03/settingenviron.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter03/settingenviron.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -13,15 +13,18 @@
 following command to create a new <filename>.bash_profile</filename>:</para>
 
 <screen><userinput>cat > ~/.bash_profile << "EOF"
-<literal>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
+<literal>exec nice env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
 EOF</userinput></screen>
 
 <para>When logged on as user <emphasis>hlfs</emphasis>, the
 initial shell is usually a <emphasis>login</emphasis> shell which reads the
 <filename>/etc/profile</filename> of the host (probably containing
 some settings and environment variables) and then
-<filename>.bash_profile</filename>. The <command>exec env
--i.../bin/bash</command> command in the
+<filename>.bash_profile</filename>. The <command>nice</command> command is
+used to lower the priority of processes that user <emphasis>hlfs</emphasis>
+runs. This will keep the host system more responsive during compilation,
+and prevent unstable packages and commands from overtaking the host system.
+The <command>exec env -i.../bin/bash</command> command in the
 <filename>.bash_profile</filename> file replaces the running shell
 with a new one with a completely empty environment, except for the
 <envar>HOME</envar>, <envar>TERM</envar>, and
@@ -43,12 +46,6 @@
 LC_ALL=POSIX
 PATH=/tools/bin:/bin:/usr/bin
 export HLFS LC_ALL PATH</literal>
-<literal condition="glibc">target=$(uname -m)-tools-linux-gnu
-ldso=/tools/lib/ld-linux.so.2
-export target ldso</literal>
-<literal condition="uclibc">target=$(uname -m)-tools-linux-uclibc
-ldso=/tools/lib/ld-uClibc.so.0
-export target ldso</literal>
 EOF</userinput></screen>
 
 <para>The <command>set +h</command> command turns off
@@ -90,11 +87,6 @@
 the host are being used when they should not be used any
 longer.</para>
 
-<para>The <parameter>*-tools-*</parameter> is used in the vendor field instead 
-of the traditional <parameter>*-pc-*</parameter> to distinguish it from the host's 
-tool chain, mainly as a precaution. This also tricks the new tool chain to think we are 
-cross compiling even if we are not.</para>
-
 <para>Finally, to have the environment fully prepared for building the
 temporary tools, source the just-created user profile:</para>
 

Modified: trunk/BOOK/chapter04/packages.xml
===================================================================
--- trunk/BOOK/chapter04/packages.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter04/packages.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -160,7 +160,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Flex (&flex-version;) - 672 KB:</term>
+      <term>Flex (&flex-version;) - 680 KB:</term>
       <listitem>
         <para>Home page: <ulink url="http://flex.sourceforge.net"/></para>
         <para>Download: <ulink
@@ -179,7 +179,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>GCC core (&gcc-version;) - 13,104 KB:</term>
+      <term>GCC core (&gcc-version;) - 16,688 KB:</term>
       <listitem>
         <para>Home page: <ulink url="http://gcc.gnu.org/"/></para>
         <para>Download: <ulink
@@ -189,7 +189,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>GCC g++ (&gcc-version;) - 2,456 KB:</term>
+      <term>GCC g++ (&gcc-version;) - 3,724 KB:</term>
       <listitem>
         <para>Home page: <ulink url="http://gcc.gnu.org/"/></para>
         <para>Download: <ulink
@@ -199,7 +199,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>GCC testsuite (&gcc-version;) - 2,616 KB:</term>
+      <term>GCC testsuite (&gcc-version;) - 3,432 KB:</term>
       <listitem>
         <para>Home page: <ulink url="http://gcc.gnu.org/"/></para>
         <para>Download: <ulink
@@ -219,7 +219,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Glibc (&glibc-version;) - 13,708 KB:</term>
+      <term>Glibc (&glibc-version;) - 14,848 KB:</term>
       <listitem>
         <para>Home page: <ulink url="&gnu-software;libc/"/></para>
         <para>Download: <ulink
@@ -229,7 +229,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Glibc LibIDN add-on (&glibc-version;) - 104 KB:</term>
+      <term>Glibc LibIDN add-on (&glibc-version;) - 100 KB:</term>
       <listitem>
         <para>Download: <ulink
         url="&gnu;glibc/glibc-libidn-&glibc-version;.tar.bz2"/></para>
@@ -357,7 +357,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Linux (&linux-version;) - 38,316 KB:</term>
+      <term>Linux (&linux-version;) - 40,351 KB:</term>
       <listitem>
         <para>Home page: <ulink url="http://www.kernel.org/"/></para>
         <para>Download: <ulink
@@ -367,11 +367,12 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Linux-Libc-Headers (&linux-libc-headers-version;) - 2,488 KB:</term>
+      <term>Linux-Headers (&linux-headers-version;) - 1,760 KB:</term>
       <listitem>
+        <para>Home page: <ulink url="http://headers.cross-lfs.org/"/></para>
         <para>Download: <ulink
-        url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-&linux-libc-headers-version;.tar.bz2"/></para>
-        <para>MD5 sum: <literal>&linux-libc-headers-md5;</literal></para>
+        url=" http://cross-lfs.org/files/packages/svn/linux-headers-&linux-headers-version;.tar.bz2"/></para>
+        <para>MD5 sum: <literal>&linux-headers-md5;</literal></para>
       </listitem>
     </varlistentry>
 
@@ -403,7 +404,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Man-pages (&man-pages-version;) - 1,712 KB:</term>
+      <term>Man-pages (&man-pages-version;) - 1,764 KB:</term>
       <listitem>
         <para>Download: <ulink
         url="&kernel;linux/docs/manpages/man-pages-&man-pages-version;.tar.bz2"/></para>
@@ -558,7 +559,7 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Tcl (&tcl-version;) - 3,424 KB:</term>
+      <term>Tcl (&tcl-version;) - 3,432 KB:</term>
       <listitem>
         <para>Home page: <ulink url="http://tcl.sourceforge.net/"/></para>
         <para>Download: <ulink

Modified: trunk/BOOK/chapter04/patches.xml
===================================================================
--- trunk/BOOK/chapter04/patches.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter04/patches.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -27,14 +27,6 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Binutils Posix patch - &binutils-posix-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&binutils-posix-patch;"/></para>
-        <para>MD5 sum: <literal>&binutils-posix-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
       <term>Binutils PT PaX - &binutils-pt_pax-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&binutils-pt_pax-patch;"/></para>
@@ -67,14 +59,6 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Bzip2 Hardened Cflags patch - &bzip2-hardened_cflags-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&bzip2-hardened_cflags-patch;"/></para>
-        <para>MD5 sum: <literal>&bzip2-hardened_cflags-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
       <term>Bzip2 Install Docs patch - &bzip2-install_docs-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&bzip2-install_docs-patch;"/></para>
@@ -107,22 +91,6 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Flex Brokenness Patch - &flex-debian_fixes-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&flex-debian_fixes-patch;"/></para>
-        <para>MD5 sum: <literal>&flex-debian_fixes-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
-      <term>Flex Hardened Cflags Patch - &flex-hardened_cflags-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&flex-hardened_cflags-patch;"/></para>
-        <para>MD5 sum: <literal>&flex-hardened_cflags-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
       <term>Gawk Segfault Patch - &gawk-segfault_fix-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&gawk-segfault_fix-patch;"/></para>
@@ -131,30 +99,6 @@
     </varlistentry>
 
     <varlistentry>
-      <term> GCC Hardened Cflags Patch - &gcc-hardened_cflags-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&gcc-hardened_cflags-patch;"/></para>
-        <para>MD5 sum: <literal>&gcc-hardened_cflags-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
-      <term> GCC Linkonce Patch - &gcc-linkonce-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&gcc-linkonce-patch;"/></para>
-        <para>MD5 sum: <literal>&gcc-linkonce-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
-      <term>GCC No-Fixincludes Patch - &gcc-no_fixincludes-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&gcc-no_fixincludes-patch;"/></para>
-        <para>MD5 sum: <literal>&gcc-no_fixincludes-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
       <term>GCC Specs Patch - &gcc-specs_x86-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&gcc-specs_x86-patch;"/></para>
@@ -162,14 +106,6 @@
       </listitem>
     </varlistentry>
 
-    <varlistentry>
-      <term>GCC SSP Patch - &gcc-ssp-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&gcc-ssp-patch;"/></para>
-        <para>MD5 sum: <literal>&gcc-ssp-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
     <varlistentry condition="uclibc">
       <term>GCC uClibc Configure Patch - &gcc-uClibc_conf-patch-size;:</term>
       <listitem>
@@ -195,49 +131,49 @@
     </varlistentry>
 
     <varlistentry condition="glibc">
-      <term>Glibc arc4random Patch - &glibc-arc4random-patch-size;:</term>
+      <term>Glibc dl_execstack Patch - &glibc-dl_execstack_PaX-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&glibc-arc4random-patch;"/></para>
-        <para>MD5 sum: <literal>&glibc-arc4random-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&glibc-dl_execstack_PaX-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-dl_execstack_PaX-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry condition="glibc">
-      <term>Glibc dl_execstack Patch - &glibc-dl_execstack_PaX-patch-size;:</term>
+      <term>Glibc Iconv Fix Patch - &glibc-iconv_fix-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&glibc-dl_execstack_PaX-patch;"/></para>
-        <para>MD5 sum: <literal>&glibc-dl_execstack_PaX-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&glibc-iconv_fix-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-iconv_fix-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry condition="glibc">
-      <term>Glibc Fstack Protector Patch - &glibc-fstack_protector-patch-size;:</term>
+      <term>Glibc Iconv Unnest Patch - &glibc-iconv_unnest-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&glibc-fstack_protector-patch;"/></para>
-        <para>MD5 sum: <literal>&glibc-fstack_protector-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&glibc-iconv_unnest-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-iconv_unnest-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry condition="glibc">
-      <term>Glibc PAX Patch - &glibc-pt_pax-patch-size;:</term>
+      <term>Glibc Localedef Segfault Patch - &glibc-localedef_segfault-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&glibc-pt_pax-patch;"/></para>
-        <para>MD5 sum: <literal>&glibc-pt_pax-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&glibc-localedef_segfault-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-localedef_segfault-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry condition="glibc">
-      <term>Glibc SSP Patch - &glibc-ssp-patch-size;:</term>
+      <term>Glibc PAX Patch - &glibc-pt_pax-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&glibc-ssp-patch;"/></para>
-        <para>MD5 sum: <literal>&glibc-ssp-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&glibc-pt_pax-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-pt_pax-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry>
       <term>GR Security Patch - &grsecurity-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="http://www.grsecurity.net/&grsecurity-patch;.gz"/></para>
+        <para>Download: <ulink url="http://www.grsecurity.net/~spender/&grsecurity-patch;"/></para>
         <para>MD5 sum: <literal>&grsecurity-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
@@ -251,10 +187,10 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Inetutils Kernel Headers Patch - &inetutils-kernel_headers-patch-size;:</term>
+      <term>Inetutils GCC4 Fixes Patch - &inetutils-gcc4_fixes-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&inetutils-kernel_headers-patch;"/></para>
-        <para>MD5 sum: <literal>&inetutils-kernel_headers-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&inetutils-gcc4_fixes-patch;"/></para>
+        <para>MD5 sum: <literal>&inetutils-gcc4_fixes-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
@@ -267,26 +203,26 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Linux Pseudo Random Patch - &linux-pseudo_random-patch-size;:</term>
+      <term>KBD Backspace Patch - &kbd-backspace-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&linux-pseudo_random-patch;"/></para>
-        <para>MD5 sum: <literal>&linux-pseudo_random-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&kbd-backspace-patch;"/></para>
+        <para>MD5 sum: <literal>&kbd-backspace-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry>
-      <term>Linux-Libc-Headers Pseudo Random Patch - &linux-libc-headers-pseudo_random-patch-size;:</term>
+      <term>KBD GCC4 Fixes Patch - &kbd-gcc4_fixes-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&linux-libc-headers-pseudo_random-patch;"/></para>
-        <para>MD5 sum: <literal>&linux-libc-headers-pseudo_random-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&kbd-gcc4_fixes-patch;"/></para>
+        <para>MD5 sum: <literal>&kbd-gcc4_fixes-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
     <varlistentry>
-      <term>Linux-Libc-Headers Unistd x86 PIC Patch - &linux-libc-headers-unistd_x86_PIC-patch-size;:</term>
+      <term>Linux-Headers Unistd x86 PIC Patch - &linux-headers-unistd_x86_PIC-patch-size;:</term>
       <listitem>
-        <para>Download: <ulink url="&patches-root;&linux-libc-headers-unistd_x86_PIC-patch;"/></para>
-        <para>MD5 sum: <literal>&linux-libc-headers-unistd_x86_PIC-patch-md5;</literal></para>
+        <para>Download: <ulink url="&patches-root;&linux-headers-unistd_x86_PIC-patch;"/></para>
+        <para>MD5 sum: <literal>&linux-headers-unistd_x86_PIC-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
 
@@ -322,14 +258,6 @@
       </listitem>
     </varlistentry>
 
-    <varlistentry>
-      <term>Procps Hardened Cflags Patch - &procps-hardened_cflags-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&procps-hardened_cflags-patch;"/></para>
-        <para>MD5 sum: <literal>&procps-hardened_cflags-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
     <varlistentry condition="uclibc">
       <term>Sed uClibc Patch - &sed-uClibc-patch-size;:</term>
       <listitem>
@@ -355,6 +283,24 @@
     </varlistentry>
 
     <varlistentry>
+      <term>Tar GCC4 Fixes - &tar-gcc4_fix-patch-size;:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&tar-gcc4_fix-patch;"/></para>
+
+        <para>MD5 sum: <literal>&tar-gcc4_fix-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
+      <term>Tar Security Fixes - &tar-security_fixes-patch-size;:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&tar-security_fixes-patch;"/></para>
+
+        <para>MD5 sum: <literal>&tar-security_fixes-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Tar Sparse Fix - &tar-sparse_fix-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&tar-sparse_fix-patch;"/></para>
@@ -371,14 +317,6 @@
     </varlistentry>
 
     <varlistentry condition="uclibc">
-      <term>uClibc arc4random Patch - &uClibc-arc4random-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&uClibc-arc4random-patch;"/></para>
-        <para>MD5 sum: <literal>&uClibc-arc4random-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry condition="uclibc">
       <term>uClibc Configure Patch - &uClibc-config-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&uClibc-config-patch;"/></para>
@@ -403,14 +341,6 @@
     </varlistentry>
 
     <varlistentry>
-      <term>Util-linux Hardened Cflags Patch - &util-linux-hardened_cflags-patch-size;:</term>
-      <listitem>
-        <para>Download: <ulink url="&patches-root;&util-linux-hardened_cflags-patch;"/></para>
-        <para>MD5 sum: <literal>&util-linux-hardened_cflags-patch-md5;</literal></para>
-      </listitem>
-    </varlistentry>
-
-    <varlistentry>
       <term>Util-linux Nologin Patch - &util-linux-nologin-patch-size;:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&util-linux-nologin-patch;"/></para>

Modified: trunk/BOOK/chapter07/kernel.xml
===================================================================
--- trunk/BOOK/chapter07/kernel.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/chapter07/kernel.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -56,14 +56,12 @@
 which patches and versions are being used. Grsecurity patches against the
 <quote>as</quote> kernel tree:</para>
 
-<screen><userinput>install -m444 /sources/&linux-pseudo_random-patch; /usr/src
-install -m444 /sources/&grsecurity-patch;.gz /usr/src
+<screen><userinput>install -m444 /sources/&grsecurity-patch;.gz /usr/src
 gunzip /usr/src/&grsecurity-patch;.gz</userinput></screen>
 
 <para>Then change to the Linux source directory and apply the patches:</para>
 
 <screen><userinput>cd /usr/src/linux-&linux-version;
-patch -Np1 -i ../&linux-pseudo_random-patch;
 patch -Np1 -i ../&grsecurity-patch;</userinput></screen>
 
 <tip><para>Look at <command>info libc</command>, node <quote>System

Modified: trunk/BOOK/prologue/bookinfo.xml
===================================================================
--- trunk/BOOK/prologue/bookinfo.xml	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/prologue/bookinfo.xml	2006-07-27 00:52:24 UTC (rev 669)
@@ -26,12 +26,11 @@
 <para><literallayout>      – Who willed you? or whose will stands but mine?
         There's none protector of the realm but I.
                     (Gloucester - 1593)</literallayout></para>
- 
- <para>This is the snapshot release of HLFS featuring uClibc, Glibc, ProPolice Stack
+
+<para>This is HLFS-unstable featuring uClibc, Glibc, ProPolice Stack Smashing
 Protector, PaX, Grsecurity, Position Independent Executable (PIE) tool chain,
-Frandom Random Number Suite, Arcfour random number generator in Libc,
-privilege seperation for most daemons, non-lazy runtime binding and
-relocation read-only linking. See:
+non-lazy runtime binding, relocation read-only linking, and -DFORTIFY_SOURCE.
+See:
 <itemizedlist>
 <listitem><para>HLFS Homepage: <ulink 
 url="http://www.linuxfromscratch.org/hlfs/"/></para></listitem>
@@ -48,14 +47,14 @@
 <listitem><para>Binutils PIE patch. This is now part of bintuils-2.15*
 and is utilized by Glibc and uClibc: <ulink 
 url="http://sources.redhat.com/ml/binutils/2003-05/msg00832.html"/></para></listitem>
-<listitem><para>Frandom Homepage: <ulink 
-url="http://frandom.sourceforge.net/"/></para></listitem>
 <listitem><para>Binutils Non-lazy Runtime Binding. This is part of
 Binutils and is utilized by Glibc and uClibc: 'man 1 ld'
 </para></listitem>
 <listitem><para>Binutils Relocation Read-only patch. This is now part
 of Bintuils and is utilized by Glibc and uClibc: <ulink
 url="http://sources.redhat.com/ml/binutils/2004-01/msg00070.html"/></para></listitem>
+<listitem><para>FORTIFY_SOURCE: <ulink
+url="http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html"/></para></listitem>
 </itemizedlist></para>
 
 <para>LFS-6.0, LFS-6.1, or HLFS-0.1+, are the prerequisite for the host system.
@@ -76,6 +75,19 @@
 <para><note><para>This book assumes you already have experience with Linux From Scratch 
 and are comfortable using it.</para></note></para>
 
+<para><warning>
+<para>This book is probably broken in some places. uClibc is
+definitely broken. gcc-4.1.1 and glibc-2.4 were recently added and the
+incomplete changes were commited in order to get more feedback about
+the new toolchain. Don't expect this book to produce a usable system.
+This warning will be removed when both Glibc and uClibc are using
+gcc-4.1, and everything is functional. Please report bugs to
+hlfs-dev at linuxfromscratch.org or
+<ulink url="http://wiki.linuxfromscratch.org/hlfs/"/>. The old book, with
+gcc-3.4 and glibc-2.3.6, is temporarily available here:
+<ulink url="http://www.topside.org/~ashes/hlfs/"/>.</para>
+</warning></para>
+
 <para>Send bugs, comments, and questions to: <ulink 
 url="mailto:hlfs-dev at linuxfromscratch.org"/>.</para>
 </abstract>

Modified: trunk/BOOK/stylesheets/top-index.xsl
===================================================================
--- trunk/BOOK/stylesheets/top-index.xsl	2006-07-18 02:46:01 UTC (rev 668)
+++ trunk/BOOK/stylesheets/top-index.xsl	2006-07-27 00:52:24 UTC (rev 669)
@@ -266,5 +266,17 @@
       </div>
     </div>
   </xsl:template>
+
+  <xsl:template match="warning">
+    <div class="warning">
+      <div class ="admonhead">
+        <img alt="note" src="glibc/images/warning.png"/>
+        <h3 class="admontitle">Warning:</h3>
+      </div>
+      <div class="admonbody">
+        <xsl:apply-templates/>
+      </div>
+    </div>
+  </xsl:template>
   
 </xsl:stylesheet>




More information about the hlfs-book mailing list