source: chapter05/expect.xml@ 663ecfc

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 663ecfc was 663ecfc, checked in by Archaic <archaic@…>, 19 years ago

Several minor wording changes (chapters 1 - 5).

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6232 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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