Author: jhuntwork
Date: 2006-11-25 12:10:27 -0700 (Sat, 25 Nov 2006)
New Revision: 7870

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/expect.xml
Log:
Fix potential corruption of the testsuite tools
by forcing expect to always use /bin/stty and not /usr/local/bin/stty.
Fixes #1892.



Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2006-11-25 18:58:16 UTC (rev 7869)
+++ trunk/BOOK/chapter01/changelog.xml  2006-11-25 19:10:27 UTC (rev 7870)
@@ -39,6 +39,11 @@
     <listitem>
       <para>2006-11-25</para>
       <itemizedlist>
+       <listitem>
+         <para>[jhuntwork] - Fix potential corruption of the testsuite tools
+         by forcing expect to always use /bin/stty and not /usr/local/bin/stty.
+          Fixes <ulink url="&lfs-ticket-root;1892">#1892</ulink></para>
+       </listitem>
         <listitem>
           <para>[matthew] - Upgrade to Man-pages-1.42. Fixes
           <ulink url="&lfs-ticket-root;1922">#1922</ulink></para>

Modified: trunk/BOOK/chapter05/expect.xml
===================================================================
--- trunk/BOOK/chapter05/expect.xml     2006-11-25 18:58:16 UTC (rev 7869)
+++ trunk/BOOK/chapter05/expect.xml     2006-11-25 19:10:27 UTC (rev 7870)
@@ -40,6 +40,14 @@
 
 <screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
 
+    <para>Next, force Expect's configure script to use 
<filename>/bin/stty</filename>
+    instead of a <filename>/usr/local/bin/stty</filename> it may find on the 
host system.
+    This will ensure that our testsuite tools remain sane for the final builds 
of our
+    toolchain.</para>
+
+<screen><userinput>cp configure{,.bak}
+sed 's:/usr/local/bin:/bin:' configure.bak &gt; configure</userinput></screen>
+
     <para>Now prepare Expect for compilation:</para>
 
 <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to