source: chapter05/expect.xml@ 09fb7a09

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 09fb7a09 was 09fb7a09, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Indenting chapter 05, part 2

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

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