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