source: chapter05/expect.xml@ b0d9ac6

Last change on this file since b0d9ac6 was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c2133bc]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[e097438]6<sect1 id="ch-tools-expect" role="wrap">
[673b0d8]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>
[bc82645e]11
[9652249]12<sect2 role="package"><title/>
[d878ce3]13<para>The Expect package contains a program for carrying out scripted dialogues
14with other interactive programs.</para>
[5888299]15
[9652249]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>3.9 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
[a0e1913]23<segtitle>&dependencies;</segtitle>
[9652249]24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
[2256873]25GCC, Glibc, Grep, Make, Sed, and Tcl</seg></seglistitem>
[9652249]26</segmentedlist>
27</sect2>
[73aedd1d]28
[9652249]29<sect2 role="installation">
[73aedd1d]30<title>Installation of Expect</title>
31
[69993f4]32<para>First, fix a bug that can result in false failures during the GCC test
[ede9b9b]33suite run:</para>
[73aedd1d]34
[673b0d8]35<screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
[73aedd1d]36
[d27a27b]37<para>Now prepare Expect for compilation:</para>
[73aedd1d]38
39<screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
40
41<para>The meaning of the configure options:</para>
42
[9652249]43<variablelist>
44<varlistentry>
[574b0ea]45<term><parameter>--with-tcl=/tools/lib</parameter></term>
[6e41459]46<listitem><para>This ensures that the configure script finds the Tcl installation in
[69993f4]47the temporary tools location instead of possibly locating an existing
[6e41459]48one on the host system.</para></listitem>
[9652249]49</varlistentry>
[73aedd1d]50
[9652249]51<varlistentry>
[574b0ea]52<term><parameter>--with-x=no</parameter></term>
[6e41459]53<listitem><para>This tells the configure script not to search for Tk
54(the Tcl GUI component) or the X Window System libraries, both of
[69993f4]55which may reside on the host system.</para></listitem>
[9652249]56</varlistentry>
57</variablelist>
[73aedd1d]58
59<para>Build the package:</para>
60
61<screen><userinput>make</userinput></screen>
62
[6e41459]63<para>To test the results, issue: <userinput>make test</userinput>.
64Note that the Expect test suite is known to experience failures under
65certain host conditions that are not within our control. Therefore,
[69993f4]66test suite failures here are not surprising and are not considered
[6e41459]67critical.</para>
[73aedd1d]68
[b48b8c5]69
[6e41459]70<para>Install the package:</para>
[73aedd1d]71
72<screen><userinput>make SCRIPTS="" install</userinput></screen>
73
[5763f675]74<para>The meaning of the make parameter:</para>
[73aedd1d]75
[9652249]76<variablelist>
77<varlistentry>
[574b0ea]78<term><parameter>SCRIPTS=""</parameter></term>
[6e41459]79<listitem><para>This prevents installation of the supplementary expect
80scripts, which are not needed.</para></listitem>
[9652249]81</varlistentry>
82</variablelist>
[73aedd1d]83
[69993f4]84<para>The source directories of both Tcl and Expect can now be removed.</para>
[73aedd1d]85
86</sect2>
[bc82645e]87
[9652249]88<sect2 id="contents-expect" role="content"><title>Contents of Expect</title>
[bc82645e]89
[9652249]90<segmentedlist>
91<segtitle>Installed program</segtitle>
92<segtitle>Installed library</segtitle>
[81a10d8]93<seglistitem><seg>expect</seg><seg>libexpect-5.42.a</seg></seglistitem>
[9652249]94</segmentedlist>
[673b0d8]95
[2256873]96<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]97<?dbfo list-presentation="list"?>
[c5f9180]98<?dbhtml list-presentation="table"?>
[673b0d8]99
[b8a819f]100<varlistentry id="expect">
101<term><command>expect</command></term>
[9652249]102<listitem>
[2256873]103<para>Communicates with other interactive
104programs according to a script</para>
[3ed279f]105<indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
[9652249]106</listitem>
107</varlistentry>
[69993f4]108
109<varlistentry id="libexpect">
[4e9d453]110<term><filename class="libraryfile">libexpect-5.42.a</filename></term>
[69993f4]111<listitem>
[2256873]112<para>Contains functions that allow Expect to be used as a Tcl extension or to
113be used directly from C or C++ (without Tcl)</para>
[4e9d453]114<indexterm zone="ch-tools-expect libexpect"><primary
115sortas="c-libexpect-5.42">libexpect-5.42</primary></indexterm>
[69993f4]116</listitem>
117</varlistentry>
[9652249]118</variablelist>
[673b0d8]119
120</sect2>
121
122</sect1>
[69993f4]123
Note: See TracBrowser for help on using the repository browser.