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