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