1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | <!ENTITY % patches-entities SYSTEM "../../patches.ent">
|
---|
6 | %general-entities;
|
---|
7 | %patches-entities;
|
---|
8 | ]>
|
---|
9 |
|
---|
10 | <sect1 id="ch-temp-tools-expect" role="wrap">
|
---|
11 | <?dbhtml filename="expect.html"?>
|
---|
12 |
|
---|
13 | <title>Expect-&expect-version;</title>
|
---|
14 |
|
---|
15 | <indexterm zone="ch-temp-tools-expect">
|
---|
16 | <primary sortas="a-Expect">Expect</primary>
|
---|
17 | </indexterm>
|
---|
18 |
|
---|
19 | <sect2 role="package">
|
---|
20 | <title/>
|
---|
21 |
|
---|
22 | <para>The Expect package contains a program for carrying out scripted
|
---|
23 | dialogues with other interactive programs.</para>
|
---|
24 |
|
---|
25 | <segmentedlist>
|
---|
26 | <segtitle>&buildtime;</segtitle>
|
---|
27 | <segtitle>&diskspace;</segtitle>
|
---|
28 |
|
---|
29 | <seglistitem>
|
---|
30 | <seg>Not checked yet</seg>
|
---|
31 | <seg>Not checked yet</seg>
|
---|
32 | </seglistitem>
|
---|
33 | </segmentedlist>
|
---|
34 |
|
---|
35 | <segmentedlist>
|
---|
36 | <segtitle>&dependencies;</segtitle>
|
---|
37 |
|
---|
38 | <seglistitem>
|
---|
39 | <seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
40 | GCC, Glibc, Grep, Make, Sed, and Tcl</seg>
|
---|
41 | </seglistitem>
|
---|
42 | </segmentedlist>
|
---|
43 |
|
---|
44 | </sect2>
|
---|
45 |
|
---|
46 | <sect2 role="installation">
|
---|
47 | <title>Installation of Expect</title>
|
---|
48 |
|
---|
49 | <para os="a">First, fix a bug that can result in false failures during the GCC
|
---|
50 | test suite run:</para>
|
---|
51 |
|
---|
52 | <screen os="b"><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
|
---|
53 |
|
---|
54 | <para os="c">Now prepare Expect for compilation:</para>
|
---|
55 |
|
---|
56 | <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
|
---|
57 | --with-tclinclude=$TCLPATH --with-x=no</userinput></screen>
|
---|
58 |
|
---|
59 | <variablelist os="d">
|
---|
60 | <title>The meaning of the configure options:</title>
|
---|
61 |
|
---|
62 | <varlistentry>
|
---|
63 | <term><parameter>--with-tcl=/tools/lib</parameter></term>
|
---|
64 | <listitem>
|
---|
65 | <para>This ensures that the configure script finds the Tcl
|
---|
66 | installation in the temporary temp-tools location.</para>
|
---|
67 | </listitem>
|
---|
68 | </varlistentry>
|
---|
69 |
|
---|
70 | <varlistentry>
|
---|
71 | <term><parameter>--with-tclinclude=$TCLPATH</parameter></term>
|
---|
72 | <listitem>
|
---|
73 | <para>This explicitly tells Expect where to find Tcl's source
|
---|
74 | directory and internal headers. Using this option avoids conditions
|
---|
75 | where <command>configure</command> fails because it cannot
|
---|
76 | automatically discover the location of the Tcl source directory.</para>
|
---|
77 | </listitem>
|
---|
78 | </varlistentry>
|
---|
79 |
|
---|
80 | <varlistentry>
|
---|
81 | <term><parameter>--with-x=no</parameter></term>
|
---|
82 | <listitem>
|
---|
83 | <para>This tells the configure script not to search for Tk
|
---|
84 | (the Tcl GUI component) or the X Window System libraries, both of
|
---|
85 | which may reside on the host system but will not exist when
|
---|
86 | building the final system.</para>
|
---|
87 | </listitem>
|
---|
88 | </varlistentry>
|
---|
89 |
|
---|
90 | </variablelist>
|
---|
91 |
|
---|
92 | <para os="e">Build the package:</para>
|
---|
93 |
|
---|
94 | <screen os="f"><userinput>make</userinput></screen>
|
---|
95 |
|
---|
96 | <para os="g">To test the results, issue: <userinput>make test</userinput>.
|
---|
97 | Note that the Expect test suite is known to experience failures under
|
---|
98 | certain host conditions that are not within our control. Therefore,
|
---|
99 | test suite failures here are not surprising and are not considered
|
---|
100 | critical.</para>
|
---|
101 |
|
---|
102 | <para os="h">Install the package:</para>
|
---|
103 |
|
---|
104 | <screen os="i"><userinput>make SCRIPTS="" install</userinput></screen>
|
---|
105 |
|
---|
106 | <variablelist os="j">
|
---|
107 | <title>The meaning of the make parameter:</title>
|
---|
108 |
|
---|
109 | <varlistentry>
|
---|
110 | <term><parameter>SCRIPTS=""</parameter></term>
|
---|
111 | <listitem>
|
---|
112 | <para>This prevents installation of the supplementary expect
|
---|
113 | scripts, which are not needed.</para>
|
---|
114 | </listitem>
|
---|
115 | </varlistentry>
|
---|
116 |
|
---|
117 | </variablelist>
|
---|
118 |
|
---|
119 | <para os="k">Now remove the <envar>TCLPATH</envar> variable:</para>
|
---|
120 |
|
---|
121 | <screen os="l"><userinput>unset TCLPATH</userinput></screen>
|
---|
122 |
|
---|
123 | <para os="m">The source directories of both Tcl and Expect can now
|
---|
124 | be removed.</para>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 id="contents-expect" role="content">
|
---|
129 | <title>Contents of Expect</title>
|
---|
130 |
|
---|
131 | <segmentedlist>
|
---|
132 | <segtitle>Installed program</segtitle>
|
---|
133 | <segtitle>Installed library</segtitle>
|
---|
134 |
|
---|
135 | <seglistitem>
|
---|
136 | <seg>expect</seg>
|
---|
137 | <seg>libexpect-&expect-lib-version;.a</seg>
|
---|
138 | </seglistitem>
|
---|
139 | </segmentedlist>
|
---|
140 |
|
---|
141 | <variablelist>
|
---|
142 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
143 | <?dbfo list-presentation="list"?>
|
---|
144 | <?dbhtml list-presentation="table"?>
|
---|
145 |
|
---|
146 | <varlistentry id="expect">
|
---|
147 | <term><command>expect</command></term>
|
---|
148 | <listitem>
|
---|
149 | <para>Communicates with other interactive programs according
|
---|
150 | to a script</para>
|
---|
151 | <indexterm zone="ch-temp-tools-expect expect">
|
---|
152 | <primary sortas="b-expect">expect</primary>
|
---|
153 | </indexterm>
|
---|
154 | </listitem>
|
---|
155 | </varlistentry>
|
---|
156 |
|
---|
157 | <varlistentry id="libexpect">
|
---|
158 | <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
|
---|
159 | <listitem>
|
---|
160 | <para>Contains functions that allow Expect to be used as a Tcl
|
---|
161 | extension or to be used directly from C or C++ (without Tcl)</para>
|
---|
162 | <indexterm zone="ch-temp-tools-expect libexpect">
|
---|
163 | <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
|
---|
164 | </indexterm>
|
---|
165 | </listitem>
|
---|
166 | </varlistentry>
|
---|
167 |
|
---|
168 | </variablelist>
|
---|
169 |
|
---|
170 | </sect2>
|
---|
171 |
|
---|
172 | </sect1>
|
---|