source: chapter05/expect.xml@ e4a5635

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

Replaced "<" by "less than".

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

  • Property mode set to 100644
File size: 4.8 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>&expect-ch5-sbu;</seg>
29 <seg>&expect-ch5-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Expect</title>
37
38 <para>First, fix a bug that can result in false failures during the GCC test
39 suite run:</para>
40
41<screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
42
43 <para>Now prepare Expect for compilation:</para>
44
45<screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
46 --with-tclinclude=/tools/include --with-x=no</userinput></screen>
47
48 <variablelist>
49 <title>The meaning of the configure options:</title>
50
51 <varlistentry>
52 <term><parameter>--with-tcl=/tools/lib</parameter></term>
53 <listitem>
54 <para>This ensures that the configure script finds the Tcl
55 installation in the temporary tools location instead of possibly
56 locating an existing one on the host system.</para>
57 </listitem>
58 </varlistentry>
59
60 <varlistentry>
61 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
62 <listitem>
63 <para>This explicitly tells Expect where to find Tcl's internal
64 headers. Using this option avoids conditions where
65 <command>configure</command> fails because it cannot automatically
66 discover the location of Tcl's headers.</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 (the
74 Tcl GUI component) or the X Window System libraries, both of which
75 may reside on the host system but will not exist in the temporary
76 environment.</para>
77 </listitem>
78 </varlistentry>
79
80 </variablelist>
81
82 <para>Build the package:</para>
83
84<screen><userinput>make</userinput></screen>
85
86 <para>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>Install the package:</para>
93
94<screen><userinput>make SCRIPTS="" install</userinput></screen>
95
96 <variablelist>
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 </sect2>
110
111 <sect2 id="contents-expect" role="content">
112 <title>Contents of Expect</title>
113
114 <segmentedlist>
115 <segtitle>Installed program</segtitle>
116 <segtitle>Installed library</segtitle>
117
118 <seglistitem>
119 <seg>expect</seg>
120 <seg>libexpect-&expect-lib-version;.a</seg>
121 </seglistitem>
122 </segmentedlist>
123
124 <variablelist>
125 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
126 <?dbfo list-presentation="list"?>
127 <?dbhtml list-presentation="table"?>
128
129 <varlistentry id="expect">
130 <term><command>expect</command></term>
131 <listitem>
132 <para>Communicates with other interactive programs according
133 to a script</para>
134 <indexterm zone="ch-tools-expect expect">
135 <primary sortas="b-expect">expect</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="libexpect">
141 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
142 <listitem>
143 <para>Contains functions that allow Expect to be used as a Tcl
144 extension or to be used directly from C or C++ (without Tcl)</para>
145 <indexterm zone="ch-tools-expect libexpect">
146 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 </variablelist>
152
153 </sect2>
154
155</sect1>
Note: See TracBrowser for help on using the repository browser.