source: temp-tools/common/expect.xml@ e53db169

Last change on this file since e53db169 was 9a83e07, checked in by Jim Gifford <clfs@…>, 19 years ago

r661@server (orig r659): manuel | 2005-11-08 13:24:20 -0800
Removing SBUs and DUs. Chapter temp-tools.

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