r6672 - in branches/gcc4/BOOK: . chapter01 chapter03 chapter05 chapter06

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Fri Aug 12 14:12:44 PDT 2005


Author: matthew
Date: 2005-08-12 15:12:42 -0600 (Fri, 12 Aug 2005)
New Revision: 6672

Modified:
   branches/gcc4/BOOK/chapter01/changelog.xml
   branches/gcc4/BOOK/chapter03/patches.xml
   branches/gcc4/BOOK/chapter05/expect.xml
   branches/gcc4/BOOK/chapter05/glibc.xml
   branches/gcc4/BOOK/chapter06/bash.xml
   branches/gcc4/BOOK/chapter06/devices.xml
   branches/gcc4/BOOK/chapter06/findutils.xml
   branches/gcc4/BOOK/chapter06/glibc.xml
   branches/gcc4/BOOK/chapter06/libtool.xml
   branches/gcc4/BOOK/chapter06/perl.xml
   branches/gcc4/BOOK/chapter06/shadow.xml
   branches/gcc4/BOOK/chapter06/texinfo.xml
   branches/gcc4/BOOK/chapter06/vim.xml
   branches/gcc4/BOOK/general.ent
   branches/gcc4/BOOK/patches.ent
Log:
Mainline merge as of 2005-08-12

Modified: branches/gcc4/BOOK/chapter01/changelog.xml
===================================================================
--- branches/gcc4/BOOK/chapter01/changelog.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter01/changelog.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -98,6 +98,7 @@
 <listitem><para>&perl-libc-patch;</para></listitem>
 <listitem><para>&tar-gcc4_fix-patch;</para></listitem>
 <listitem><para>&mktemp-tempfile-patch;</para></listitem>
+<listitem><para>&vim-security_fix-patch;</para></listitem>
 </itemizedlist>
 </listitem>
 
@@ -111,10 +112,36 @@
 <listitem><para>iproute2-2.6.11-050330-remove_db-1.patch</para></listitem>
 <listitem><para>mktemp-1.5-add_tempfile-2.patch</para></listitem>
 <listitem><para>perl-5.8.6-libc-1.patch</para></listitem>
+<listitem><para>vim-6.3-security_fix-1.patch</para></listitem>
 <listitem><para>zlib-1.2.2-security_fix-1.patch</para></listitem>
 </itemizedlist>
 </listitem>
 
+<listitem><para>August 12th, 2005 [matt]: Explain that libiconv isn't required
+on an LFS system (fixes bug 1614).</para></listitem>
+
+<listitem><para>August 12th, 2005 [matt]: Fix ownership of libtool's libltdl
+data files (fixes bug 1601).</para></listitem>
+
+<listitem><para>August 12th, 2005 [matt]: Change findutils and vim's configure
+switch explanations to the convention used in the rest of the book (Bug
+1613).</para></listitem>
+
+<listitem><para>August 12th, 2005 [matt]: Expand explanation of device node
+creation at the start of chapter 6.</para></listitem>
+
+<listitem><para>August 12th, 2005 [matt]: Fix incorrect version number for
+expect's installed library (Bug 1608)</para></listitem>
+
+<listitem><para>August 7th, 2005 [archaic]: Added note in Shadow regarding
+building Cracklib from BLFS first.</para></listitem>
+
+<listitem><para>August 6th, 2005 [matt]: Add texi2pdf to list of Texinfo's
+installed files.</para></listitem>
+
+<listitem><para>August 6th, 2005 [matt]: Updated Vim's security patch to address
+the latest modeline vulnerability.</para></listitem>
+
 <listitem><para>July  30th, 2005 [matt]: Added instructions for installing Bash
 documentation (Randy McMurchy).</para></listitem>
 

Modified: branches/gcc4/BOOK/chapter03/patches.xml
===================================================================
--- branches/gcc4/BOOK/chapter03/patches.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter03/patches.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -177,7 +177,7 @@
 </varlistentry>
 
 <varlistentry>
-<term>Vim Security Patch - 8 KB:</term><listitem>
+<term>Vim Security Patch - 9 KB:</term><listitem>
 <para><ulink url="&patches-root;&vim-security_fix-patch;"/></para>
 </listitem>
 </varlistentry>

Modified: branches/gcc4/BOOK/chapter05/expect.xml
===================================================================
--- branches/gcc4/BOOK/chapter05/expect.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter05/expect.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -105,7 +105,7 @@
 <segmentedlist>
 <segtitle>Installed program</segtitle>
 <segtitle>Installed library</segtitle>
-<seglistitem><seg>expect</seg><seg>libexpect-5.42.a</seg></seglistitem>
+<seglistitem><seg>expect</seg><seg>libexpect-&expect-lib-version;.a</seg></seglistitem>
 </segmentedlist>
 
 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
@@ -122,12 +122,12 @@
 </varlistentry>
 
 <varlistentry id="libexpect">
-<term><filename class="libraryfile">libexpect-5.42.a</filename></term>
+<term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
 <listitem>
 <para>Contains functions that allow Expect to be used as a Tcl extension or to
 be used directly from C or C++ (without Tcl)</para>
 <indexterm zone="ch-tools-expect libexpect"><primary
-sortas="c-libexpect-5.42">libexpect-5.42</primary></indexterm>
+sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary></indexterm>
 </listitem>
 </varlistentry>
 </variablelist>

Modified: branches/gcc4/BOOK/chapter05/glibc.xml
===================================================================
--- branches/gcc4/BOOK/chapter05/glibc.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter05/glibc.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -40,9 +40,8 @@
 the method suggested in this book puts the stability of the system at
 risk.</para>
 
-<para>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. If you plan to run the testsuite apply this patch:</para>
+<para>Glibc has two tests which fail when the running kernel is 2.6.11 or later.
+The problem has been determined to be with the tests themselves, not with the C libarary or the kernel.  If you plan to run the testsuite apply this patch:</para>
 
 <screen><userinput>patch -Np1 -i ../&glibc-testfix-patch;</userinput></screen>
 

Modified: branches/gcc4/BOOK/chapter06/bash.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/bash.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/bash.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -57,7 +57,7 @@
 <variablelist>
 <varlistentry>
 <term><parameter>--with-installed-readline</parameter></term>
-<listitem><para>This options tells Bash to use the
+<listitem><para>This option tells Bash to use the
 <filename class="libraryfile">readline</filename> library that is already installed
 on the system rather than using its own readline version.</para></listitem>
 </varlistentry>

Modified: branches/gcc4/BOOK/chapter06/devices.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/devices.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/devices.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -14,8 +14,12 @@
 
 <para>When the kernel boots the system, it requires the presence of a few device
 nodes, in particular the <filename class="devicefile">console</filename> and
-<filename class="devicefile">null</filename> devices. Create these by
-running the following commands:</para>
+<filename class="devicefile">null</filename> devices.  The device nodes will
+be created on the hard disk so that they are available before
+<command>udev</command> has been started, and additionally when Linux is started
+in single user mode (hence the restrictive permissions on
+<filename class="devicefile">console</filename>).  Create the devices by running
+the following commands:</para>
 
 <screen><userinput>mknod -m 600 /dev/console c 5 1
 mknod -m 666 /dev/null c 1 3</userinput></screen>
@@ -48,7 +52,6 @@
 mknod -m 444 /dev/random c 1 8
 mknod -m 444 /dev/urandom c 1 9
 chown root:tty /dev/{console,ptmx,tty}</userinput></screen>
-<!-- -->
 
 <para>There are some symlinks and directories required by LFS that are created
 during system startup by the LFS-Bootscripts package. Since this is a chroot

Modified: branches/gcc4/BOOK/chapter06/findutils.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/findutils.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/findutils.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -38,10 +38,17 @@
 <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
     --localstatedir=/var/lib/locate</userinput></screen>
 
-<para>The <parameter>localstatedir</parameter> option above changes the
-location of the <command>locate</command> database to be in <filename
-class="directory">/var/lib/locate</filename>, which is FHS-compliant.</para>
+<para>The meaning of the configure options:</para>
 
+<variablelist>
+<varlistentry>
+<term><parameter>--localstatedir</parameter></term>
+<listitem><para>This option changes the location of the <command>locate</command>
+database to be in <filename class="directory">/var/lib/locate</filename>, which
+is FHS-compliant.</para></listitem>
+</varlistentry>
+</variablelist>
+
 <para>Compile the package:</para>
 
 <screen><userinput>make</userinput></screen>

Modified: branches/gcc4/BOOK/chapter06/glibc.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/glibc.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/glibc.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -33,6 +33,15 @@
 <sect2 role="installation">
 <title>Installation of Glibc</title>
 
+<note><para>Some packages outside of LFS suggest installing GNU libiconv in
+order to translate data from one encoding to another.  The project's home page
+(<ulink url="http://www.gnu.org/software/libiconv/"/>) says <quote>This library
+provides an <function>iconv()</function> implementation, for use on systems
+which don't have one, or whose implementation cannot convert from/to Unicode.
+</quote>  Glibc provides an <function>iconv()</function> implementation and can
+convert from/to Unicode, therefore libiconv is not required on an LFS
+system.</para></note>
+
 <para>This package is known to have issues when its default
 optimization flags (including the <parameter>-march</parameter> and
 <parameter>-mcpu</parameter> options) are changed. If any environment

Modified: branches/gcc4/BOOK/chapter06/libtool.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/libtool.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/libtool.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -47,6 +47,10 @@
 
 <screen><userinput>make install</userinput></screen>
 
+<para>Correct the ownership of the libltdl data files:</para>
+
+<screen><userinput>chown -R root:root /usr/share/libtool/libltdl</userinput></screen>
+
 </sect2>
 
 

Modified: branches/gcc4/BOOK/chapter06/perl.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/perl.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/perl.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -42,8 +42,9 @@
 <variablelist>
 <varlistentry>
 <term><parameter>-Dpager="/bin/less -isR"</parameter></term>
-<listitem><para>This corrects an error in the <command>perldoc</command> code with the invocation
-of the <command>less</command> program.</para></listitem>
+<listitem><para>This corrects an error in the way that
+<command>perldoc</command> invokes the <command>less</command> program.</para>
+</listitem>
 </varlistentry>
 </variablelist>
 

Modified: branches/gcc4/BOOK/chapter06/shadow.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/shadow.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/shadow.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -31,12 +31,16 @@
 <sect2 role="installation">
 <title>Installation of Shadow</title>
 
+<note><para>If you would like to enforce the use of strong passwords, refer to
+<ulink url="&blfs-root;view/svn/postlfs/cracklib.html"/> for installing Cracklib
+prior to building Shadow. Then add <parameter>--with-libcrack</parameter> to the
+<command>configure</command> command below.</para></note>
+
 <para>Prepare Shadow for compilation:</para>
 
 <screen><userinput>./configure --libdir=/lib --enable-shared</userinput></screen>
 
-<para>Remove the installation of the <command>groups</command> program, and its man page as
-Coreutils provides a better version:</para>
+<para>Disable the installation of the <command>groups</command> program and its man page, as Coreutils provides a better version:</para>
 
 <screen><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
 sed -i '/groups/d' man/Makefile</userinput></screen>
@@ -70,6 +74,12 @@
 
 <indexterm zone="shadow-login_defs"><primary sortas="e-/etc/login.defs">/etc/login.defs</primary></indexterm>
 
+<note><para>If you built Shadow with Cracklib support, insert the following into
+the <command>sed</command> given below:</para>
+
+<screen><literal>-e 's at DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@'</literal></screen>
+</note>
+
 <screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no at MD5_CRYPT_ENAB yes@' \
     -e 's@/var/spool/mail@/var/mail@' \
     etc/login.defs.linux > /etc/login.defs</userinput></screen>

Modified: branches/gcc4/BOOK/chapter06/texinfo.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/texinfo.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/texinfo.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -83,7 +83,7 @@
 <segmentedlist>
 <segtitle>Installed programs</segtitle>
 <seglistitem><seg>info, infokey, install-info,
-makeinfo, texi2dvi, and texindex</seg></seglistitem>
+makeinfo, texi2dvi, texi2pdf, and texindex</seg></seglistitem>
 </segmentedlist>
 
 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
@@ -136,6 +136,15 @@
 </listitem>
 </varlistentry>
 
+<varlistentry id="texi2pdf">
+<term><command>texi2pdf</command></term>
+<listitem>
+<para>Used to format the given Texinfo document into a
+Portable Document Format (PDF) file</para>
+<indexterm zone="ch-system-texinfo texi2pdf"><primary sortas="b-texi2pdf">texi2pdf</primary></indexterm>
+</listitem>
+</varlistentry>
+
 <varlistentry id="texindex">
 <term><command>texindex</command></term>
 <listitem>

Modified: branches/gcc4/BOOK/chapter06/vim.xml
===================================================================
--- branches/gcc4/BOOK/chapter06/vim.xml	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/chapter06/vim.xml	2005-08-12 21:12:42 UTC (rev 6672)
@@ -40,14 +40,14 @@
 <para>First, unpack both
 <filename>vim-&vim-version;.tar.bz2</filename> and (optionally)
 <filename>vim-&vim-version;-lang.tar.gz</filename> archives into the
-same directory. Then, change the default locations of the
+same directory. Then, change the default location of the
 <filename>vimrc</filename> configuration file to <filename
 class="directory">/etc</filename>:</para>
 
 <screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h</userinput></screen>
 
-<para>Vim has a security vulnerability already addressed upstream.  The
-following patch fixes the problem:</para>
+<para>Vim has two known security vulnerabilities that have already been
+addressed upstream.  The following patch fixes the problems:</para>
 
 <screen><userinput>patch -Np1 -i ../&vim-security_fix-patch;</userinput></screen>
 
@@ -55,14 +55,20 @@
 
 <screen><userinput>./configure --prefix=/usr --enable-multibyte</userinput></screen>
 
-<para>The optional but highly recommended
-<parameter>--enable-multibyte</parameter> switch includes support for
-editing files in multibyte character encodings into
-<command>vim</command>.  This is needed if using a locale with
-a multibyte character set. This switch is also helpful to be able to
-edit text files initially created in Linux distributions like Fedora
-Core that use UTF-8 as a default character set.</para>
+<para>The meaning of the configure options:</para>
 
+<variablelist>
+<varlistentry>
+<term><parameter>--enable-multibyte</parameter></term>
+<listitem><para>This optional but highly recommended switch enables support for
+editing files in multibyte character encodings.  This is needed if using a
+locale with a multibyte character set. This switch is also helpful to be able to
+edit text files initially created in Linux distributions like Fedora Core that
+use UTF-8 as a default character set.</para>
+</listitem>
+</varlistentry>
+</variablelist>
+
 <para>Compile the package:</para>
 
 <screen><userinput>make</userinput></screen>

Modified: branches/gcc4/BOOK/general.ent
===================================================================
--- branches/gcc4/BOOK/general.ent	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/general.ent	2005-08-12 21:12:42 UTC (rev 6672)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "GCC4-20050730">
-<!ENTITY releasedate "July 30, 2005">
+<!ENTITY version "GCC4-20050812">
+<!ENTITY releasedate "August 12, 2005">
 <!ENTITY milestone "6.2">
 <!ENTITY generic-version "gcc4"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" -->
 
@@ -35,6 +35,7 @@
 <!ENTITY diffutils-version "2.8.1">
 <!ENTITY e2fsprogs-version "1.38">
 <!ENTITY expect-version "5.43.0">
+<!ENTITY expect-lib-version "5.43">
 <!ENTITY file-version "4.14">
 <!ENTITY findutils-version "4.2.23">
 <!ENTITY flex-version "2.5.31">

Modified: branches/gcc4/BOOK/patches.ent
===================================================================
--- branches/gcc4/BOOK/patches.ent	2005-08-12 20:53:02 UTC (rev 6671)
+++ branches/gcc4/BOOK/patches.ent	2005-08-12 21:12:42 UTC (rev 6672)
@@ -39,6 +39,6 @@
 
 <!ENTITY util-linux-cramfs-patch "util-linux-&util-linux-version;-cramfs-1.patch">
 
-<!ENTITY vim-security_fix-patch "vim-&vim-version;-security_fix-1.patch">
+<!ENTITY vim-security_fix-patch "vim-&vim-version;-security_fix-2.patch">
 
 <!ENTITY zlib-security_fix-patch "zlib-&zlib-version;-security_fix-1.patch">




More information about the lfs-book mailing list