source: chapter05/expect.xml@ 5fc385a

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 5fc385a was bd488ac, checked in by Matthew Burgess <matthew@…>, 14 years ago

Upgrade to Expect-5.45. Fixes #2791.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9417 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-tools-expect" role="wrap">
9 <?dbhtml filename="expect.html"?>
10
11 <sect1info condition="script">
12 <productname>expect</productname>
13 <productnumber>&expect-version;</productnumber>
14 <address>&expect-url;</address>
15 </sect1info>
16
17 <title>Expect-&expect-version;</title>
18
19 <indexterm zone="ch-tools-expect">
20 <primary sortas="a-Expect">Expect</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Expect package contains a program for carrying out scripted
27 dialogues with other interactive programs.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&expect-ch5-sbu;</seg>
35 <seg>&expect-ch5-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Expect</title>
43
44 <para>First, force Expect's configure script to use <filename>/bin/stty</filename>
45 instead of a <filename>/usr/local/bin/stty</filename> it may find on the host system.
46 This will ensure that our test suite tools remain sane for the final builds of our
47 toolchain:</para>
48
49<screen><userinput remap="pre">cp -v configure{,.orig}
50sed 's:/usr/local/bin:/bin:' configure.orig &gt; configure</userinput></screen>
51
52 <para>Now prepare Expect for compilation:</para>
53
54<screen><userinput remap="configure">./configure --prefix=/tools --with-tcl=/tools/lib \
55 --with-tclinclude=/tools/include</userinput></screen>
56
57 <variablelist>
58 <title>The meaning of the configure options:</title>
59
60 <varlistentry>
61 <term><parameter>--with-tcl=/tools/lib</parameter></term>
62 <listitem>
63 <para>This ensures that the configure script finds the Tcl
64 installation in the temporary tools location instead of possibly
65 locating an existing one on the host system.</para>
66 </listitem>
67 </varlistentry>
68
69 <varlistentry>
70 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
71 <listitem>
72 <para>This explicitly tells Expect where to find Tcl's internal
73 headers. Using this option avoids conditions where
74 <command>configure</command> fails because it cannot automatically
75 discover the location of Tcl's headers.</para>
76 </listitem>
77 </varlistentry>
78
79 </variablelist>
80
81 <para>Build the package:</para>
82
83<screen><userinput remap="make">make</userinput></screen>
84
85 <para>Compilation is now complete. As discussed earlier, running the test
86 suite is not mandatory for the temporary tools here in this chapter. To run
87 the Expect test suite anyway, issue the following command:</para>
88
89<screen><userinput remap="test">make test</userinput></screen>
90
91 <para>Note that the Expect test suite is known to experience failures under
92 certain host conditions that are not within our control. Therefore,
93 test suite failures here are not surprising and are not considered
94 critical.</para>
95
96 <para>Install the package:</para>
97
98<screen><userinput remap="install">make SCRIPTS="" install</userinput></screen>
99
100 <variablelist>
101 <title>The meaning of the make parameter:</title>
102
103 <varlistentry>
104 <term><parameter>SCRIPTS=""</parameter></term>
105 <listitem>
106 <para>This prevents installation of the supplementary Expect
107 scripts, which are not needed.</para>
108 </listitem>
109 </varlistentry>
110
111 </variablelist>
112
113 </sect2>
114
115 <sect2 id="contents-expect" role="content">
116 <title>Contents of Expect</title>
117
118 <segmentedlist>
119 <segtitle>Installed program</segtitle>
120 <segtitle>Installed library</segtitle>
121
122 <seglistitem>
123 <seg>expect</seg>
124 <seg>libexpect-&expect-lib-version;.a</seg>
125 </seglistitem>
126 </segmentedlist>
127
128 <variablelist>
129 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
130 <?dbfo list-presentation="list"?>
131 <?dbhtml list-presentation="table"?>
132
133 <varlistentry id="expect">
134 <term><command>expect</command></term>
135 <listitem>
136 <para>Communicates with other interactive programs according
137 to a script</para>
138 <indexterm zone="ch-tools-expect expect">
139 <primary sortas="b-expect">expect</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="libexpect">
145 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
146 <listitem>
147 <para>Contains functions that allow Expect to be used as a Tcl
148 extension or to be used directly from C or C++ (without Tcl)</para>
149 <indexterm zone="ch-tools-expect libexpect">
150 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 </variablelist>
156
157 </sect2>
158
159</sect1>
Note: See TracBrowser for help on using the repository browser.