[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 \
|
---|
[517ec63] | 45 | --with-tclinclude=/tools/include --with-x=no</userinput></screen>
|
---|
[bf8c11f] | 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>
|
---|
[517ec63] | 59 | <term><parameter>--with-tclinclude=/tools/include</parameter></term>
|
---|
[bf8c11f] | 60 | <listitem>
|
---|
[517ec63] | 61 | <para>This explicitly tells Expect where to find Tcl's internal headers.
|
---|
| 62 | Using this option avoids conditions
|
---|
[bf8c11f] | 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 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 id="contents-expect" role="content">
|
---|
| 110 | <title>Contents of Expect</title>
|
---|
| 111 |
|
---|
| 112 | <segmentedlist>
|
---|
| 113 | <segtitle>Installed program</segtitle>
|
---|
| 114 | <segtitle>Installed library</segtitle>
|
---|
| 115 |
|
---|
| 116 | <seglistitem>
|
---|
| 117 | <seg>expect</seg>
|
---|
| 118 | <seg>libexpect-&expect-lib-version;.a</seg>
|
---|
| 119 | </seglistitem>
|
---|
| 120 | </segmentedlist>
|
---|
| 121 |
|
---|
| 122 | <variablelist>
|
---|
| 123 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 124 | <?dbfo list-presentation="list"?>
|
---|
| 125 | <?dbhtml list-presentation="table"?>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="expect">
|
---|
| 128 | <term><command>expect</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Communicates with other interactive programs according
|
---|
| 131 | to a script</para>
|
---|
| 132 | <indexterm zone="ch-temp-tools-expect expect">
|
---|
| 133 | <primary sortas="b-expect">expect</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="libexpect">
|
---|
| 139 | <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>Contains functions that allow Expect to be used as a Tcl
|
---|
| 142 | extension or to be used directly from C or C++ (without Tcl)</para>
|
---|
| 143 | <indexterm zone="ch-temp-tools-expect libexpect">
|
---|
| 144 | <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | </variablelist>
|
---|
| 150 |
|
---|
| 151 | </sect2>
|
---|
| 152 |
|
---|
| 153 | </sect1>
|
---|