[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[9652249] | 6 | <sect1 id="ch-tools-expect" xreflabel="Expect" role="wrap">
|
---|
[673b0d8] | 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>
|
---|
[bc82645e] | 11 |
|
---|
[9652249] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Expect package contains a program for doing scripted dialogues with
|
---|
| 14 | other interactive programs.</para>
|
---|
| 15 |
|
---|
[9652249] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>3.9 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
| 21 |
|
---|
| 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Expect installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 25 | GCC, Glibc, Grep, Make, Sed, Tcl</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
| 27 | </sect2>
|
---|
[73aedd1d] | 28 |
|
---|
[9652249] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Expect</title>
|
---|
| 31 |
|
---|
[ede9b9b] | 32 | <para>First fix a bug that can result in bogus failures during the GCC test
|
---|
| 33 | suite run:</para>
|
---|
[73aedd1d] | 34 |
|
---|
[673b0d8] | 35 | <screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
|
---|
[73aedd1d] | 36 |
|
---|
[d27a27b] | 37 | <para>Now prepare Expect for compilation:</para>
|
---|
[73aedd1d] | 38 |
|
---|
| 39 | <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | <para>The meaning of the configure options:</para>
|
---|
| 42 |
|
---|
[9652249] | 43 | <variablelist>
|
---|
| 44 | <varlistentry>
|
---|
[574b0ea] | 45 | <term><parameter>--with-tcl=/tools/lib</parameter></term>
|
---|
[9652249] | 46 | <listitem><para>This ensures that
|
---|
[73aedd1d] | 47 | the configure script finds the Tcl installation in our temporary tools location.
|
---|
| 48 | We don't want it to find an existing one that may possibly reside on the host
|
---|
| 49 | system.</para></listitem>
|
---|
[9652249] | 50 | </varlistentry>
|
---|
[73aedd1d] | 51 |
|
---|
[9652249] | 52 | <varlistentry>
|
---|
[574b0ea] | 53 | <term><parameter>--with-x=no</parameter></term>
|
---|
[9652249] | 54 | <listitem><para>This tells the configure
|
---|
[73aedd1d] | 55 | script not to search for Tk (the Tcl GUI component) or the X Window System
|
---|
| 56 | libraries, both of which may possibly reside on the host system.</para></listitem>
|
---|
[9652249] | 57 | </varlistentry>
|
---|
| 58 | </variablelist>
|
---|
[73aedd1d] | 59 |
|
---|
| 60 | <para>Build the package:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput>make</userinput></screen>
|
---|
| 63 |
|
---|
[c91dd5b] | 64 | <para>(If you insist on testing the results, then issue:
|
---|
| 65 | <userinput>make test</userinput>. However, the Expect test suite is known to
|
---|
| 66 | experience failures under certain host conditions that are not fully
|
---|
| 67 | understood. Therefore, test suite failures here are not surprising, and are not
|
---|
| 68 | considered critical.)</para>
|
---|
[73aedd1d] | 69 |
|
---|
[c91dd5b] | 70 | <para>And install it:</para>
|
---|
[73aedd1d] | 71 |
|
---|
| 72 | <screen><userinput>make SCRIPTS="" install</userinput></screen>
|
---|
| 73 |
|
---|
[5763f675] | 74 | <para>The meaning of the make parameter:</para>
|
---|
[73aedd1d] | 75 |
|
---|
[9652249] | 76 | <variablelist>
|
---|
| 77 | <varlistentry>
|
---|
[574b0ea] | 78 | <term><parameter>SCRIPTS=""</parameter></term>
|
---|
[9652249] | 79 | <listitem><para>This prevents installation
|
---|
[ede9b9b] | 80 | of the supplementary expect scripts which are not needed.</para></listitem>
|
---|
[9652249] | 81 | </varlistentry>
|
---|
| 82 | </variablelist>
|
---|
[73aedd1d] | 83 |
|
---|
| 84 | <para>You can now remove the source directories of both Tcl and Expect.</para>
|
---|
| 85 |
|
---|
| 86 | </sect2>
|
---|
[bc82645e] | 87 |
|
---|
[5888299] | 88 |
|
---|
[9652249] | 89 | <sect2 id="contents-expect" role="content"><title>Contents of Expect</title>
|
---|
[bc82645e] | 90 |
|
---|
[9652249] | 91 | <segmentedlist>
|
---|
| 92 | <segtitle>Installed program</segtitle>
|
---|
| 93 | <segtitle>Installed library</segtitle>
|
---|
| 94 | <seglistitem><seg>expect</seg><seg>libexpect&expect-version;.a</seg></seglistitem>
|
---|
| 95 | </segmentedlist>
|
---|
[673b0d8] | 96 |
|
---|
[9652249] | 97 | <variablelist><title>Short description</title>
|
---|
[673b0d8] | 98 |
|
---|
[b8a819f] | 99 | <varlistentry id="expect">
|
---|
| 100 | <term><command>expect</command></term>
|
---|
[9652249] | 101 | <listitem>
|
---|
[673b0d8] | 102 | <indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
|
---|
[9652249] | 103 | <para><quote>talks</quote> to other interactive
|
---|
[673b0d8] | 104 | programs according to a script.</para>
|
---|
[9652249] | 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 | </variablelist>
|
---|
[673b0d8] | 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 |
|
---|
| 112 | </sect1>
|
---|