source: chapter05/expect.xml@ 1bb4eb1

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 1bb4eb1 was a71ef08, checked in by Jeremy Huntwork <jhuntwork@…>, 19 years ago

Install Tcl's internal headers to /tools/include. Thanks Greg Schafer, Dan Nicholson (fixes bug 1670).

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

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