Преглед изворни кода

Update several pages to fix regression test failures.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10316 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs пре 12 година
родитељ
комит
bdde021dcc

+ 3 - 3
appendices/dependencies.xml

@@ -233,7 +233,7 @@
         <segtitle>&testsuites;</segtitle>
 
         <seglistitem>
-          <seg>Diffutils and Findutils</seg>
+          <seg>Diffutils, Findutils, and Flex</seg>
         </seglistitem>
       </segmentedlist>
 
@@ -241,7 +241,7 @@
         <segtitle>&before;</segtitle>
 
         <seglistitem>
-          <seg>Flex, Kbd, and Tar</seg>
+          <seg>Kbd and Tar</seg>
         </seglistitem>
       </segmentedlist>
 
@@ -591,7 +591,7 @@
         <segtitle>&testsuites;</segtitle>
 
         <seglistitem>
-          <seg>Bison and Gawk</seg>
+          <seg>Bison (suppressed) and Gawk</seg>
         </seglistitem>
       </segmentedlist>
 

+ 4 - 0
chapter01/changelog.xml

@@ -38,6 +38,10 @@
     <listitem>
       <para>2013-08-15</para>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Update several pages to fix regression
+          test failures.</para>
+        </listitem>
         <listitem>
           <para>[bdubbs] - Add options when mounting /dev/pts when
           creating virtual file systems in Section 6.2.</para>

+ 4 - 0
chapter01/whatsnew.xml

@@ -255,6 +255,10 @@
       <para>binutils-2.23.1-testsuite_fix-1.patch</para>
     </listitem>
 
+    <listitem>
+      <para>flex-2.5.37-bison-2.6.1-1.patch</para>
+    </listitem>
+
     <listitem>
       <para>perl-5.16.2-libc-1.patch</para>
     </listitem>

+ 1 - 3
chapter03/patches.xml

@@ -41,7 +41,6 @@
         <para>MD5 sum: <literal>&coreutils-i18n-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
-
 <!--
     <varlistentry>
       <term>Coreutils Test Fixes Patch - <token>&coreutils-test-patch-size;</token>:</term>
@@ -50,7 +49,6 @@
         <para>MD5 sum: <literal>&coreutils-test-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
--->
 
     <varlistentry>
       <term>Flex Regression Tests Patch - <token>&flex-bison-patch-size;</token>:</term>
@@ -59,7 +57,7 @@
         <para>MD5 sum: <literal>&flex-bison-patch-md5;</literal></para>
       </listitem>
     </varlistentry>
-
+-->
     <varlistentry>
       <term>Kbd Backspace/Delete Fix Patch - <token>&kbd-backspace-patch-size;</token>:</term>
       <listitem>

+ 4 - 2
chapter06/bison.xml

@@ -43,14 +43,14 @@
     <para>Prepare Bison for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
-
+<!--
     <para>The configure system causes Bison to be built without support for
     internationalization of error messages if a <command>bison</command>
     program is not already in $PATH. The following addition will correct
     this:</para>
 
 <screen><userinput remap="configure">echo '#define YYENABLE_NLS 1' &gt;&gt; lib/config.h</userinput></screen>
-
+-->
     <para>Compile the package:</para>
 
 <screen><userinput remap="make">make</userinput></screen>
@@ -59,6 +59,8 @@
 
 <screen><userinput remap="test">make check</userinput></screen>
 
+    <para>One test will fail due to not having flex available yet.</para>
+
     <para>Install the package:</para>
 
 <screen><userinput remap="install">make install</userinput></screen>

+ 1 - 1
chapter06/chapter06.xml

@@ -40,6 +40,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iana-etc.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bison.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
@@ -54,7 +55,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gawk.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="findutils.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="groff.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>

+ 2 - 2
chapter06/coreutils.xml

@@ -60,8 +60,8 @@
     <para>Now prepare Coreutils for compilation:</para>
 
 <screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 ./configure \
-            --prefix=/usr         \
-            --libexecdir=/usr/lib \
+            --prefix=/usr            \
+            --libexecdir=/usr/lib    \
             --enable-no-install-program=kill,uptime</userinput></screen>
 
     <variablelist>

+ 4 - 0
chapter06/e2fsprogs.xml

@@ -44,6 +44,10 @@
   <sect2 role="installation">
     <title>Installation of E2fsprogs</title>
 
+    <para>First, fix a regression test:</para>
+
+<screen><userinput remap="pre">sed -i -e 's/mke2fs/$MKE2FS/' -e 's/debugfs/$DEBUGFS/' tests/f_extent_oobounds/script</userinput></screen>
+
     <para>The E2fsprogs documentation recommends that the package be built in
     a subdirectory of the source tree: </para>
 

+ 3 - 3
chapter06/flex.xml

@@ -41,13 +41,13 @@
   <sect2 role="installation">
     <title>Installation of Flex</title>
 
-    <para>First, fix some regression tests:</para>
+    <para>First, skip running three regression tests that require bison.</para>
 
-<screen><userinput remap="pre">patch -Np1 -i ../&flex-bison-patch;</userinput></screen>
+<screen><userinput remap="pre">sed -i -e '/test-bison/d' tests/Makefile.in</userinput></screen>
 
     <para>Prepare Flex for compilation:</para>
 
-<screen><userinput remap="configure">./configure --prefix=/usr             \
+<screen><userinput remap="configure">./configure --prefix=/usr \
             --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
 
     <para>Compile the package:</para>

+ 5 - 0
chapter06/glibc.xml

@@ -137,6 +137,11 @@ grep Error glibc-check-log</userinput></screen>
         make -k check</command>).</para>
       </listitem>
 
+      <listitem>
+        <para>posix/tst-getaddrinfo4 will always fail due to not having a network
+        connection when the test is run.</para>
+      </listitem>
+
       <listitem>
         <para>Other tests known to fail on some architectures are posix/bug-regex32,
         misc/tst-writev, elf/check-textrel, nptl/tst-getpid2, and stdio-common/bug22.</para>

+ 1 - 1
chapter06/texinfo.xml

@@ -49,7 +49,7 @@
 
 <screen><userinput remap="make">make</userinput></screen>
 
-    <note><para>Two tests in the test suite fail due to out of date
+    <note><para>One test in the test suite fails due to out of date
     perl code.</para></note>
 
     <para>To test the results, issue:</para>

+ 2 - 0
patches.ent

@@ -14,9 +14,11 @@
 <!ENTITY coreutils-i18n-patch-md5 "ada0ea6e1c00c4b7e0d634f49827943e">
 <!ENTITY coreutils-i18n-patch-size "132 KB">
 
+<!--
 <!ENTITY flex-bison-patch "flex-&flex-version;-bison-2.6.1-1.patch">
 <!ENTITY flex-bison-patch-md5 "d5b001ef9bdbbe32e2f27576d97d8ff0">
 <!ENTITY flex-bison-patch-size "2.8 KB">
+-->
 
 <!ENTITY kbd-backspace-patch "kbd-&kbd-version;-backspace-1.patch">
 <!ENTITY kbd-backspace-patch-md5 "f75cca16a38da6caa7d52151f7136895">