aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2006-11-25 19:10:27 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2006-11-25 19:10:27 +0000
commit9d4c6dc1ed83a0fc87fe9a1caa153969971e988e (patch)
tree9d7e27ebdc10d74c93e53bcd3c2d2765f9464b52 /chapter05
parenta9d68217a1fd0f5d5df7ed71e737828798c78c0a (diff)
Fix potential corruption of the testsuite tools
by forcing expect to always use /bin/stty and not /usr/local/bin/stty. Fixes #1892. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7870 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/expect.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/chapter05/expect.xml b/chapter05/expect.xml
index 237996ba7..fe3faf022 100644
--- a/chapter05/expect.xml
+++ b/chapter05/expect.xml
@@ -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 \