source: chapter08/expect.xml@ 3c830838

xry111/arm64 xry111/arm64-12.0
Last change on this file since 3c830838 was 728b8d8, checked in by Xi Ruoyao <xry111@…>, 20 months ago

arm64: expect: update config.{guess,sub}

Expect ships a 2003 (!) edition of those scripts, and AArch64 just does
not exist in 2003.

  • Property mode set to 100644
File size: 4.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-expect" role="wrap">
9 <?dbhtml filename="expect.html"?>
10
11 <sect1info condition="script">
12 <productname>expect</productname>
13 <productnumber>&expect-version;</productnumber>
14 <address>&expect-url;</address>
15 </sect1info>
16
17 <title>Expect-&expect-version;</title>
18
19 <indexterm zone="ch-system-expect">
20 <primary sortas="a-Expect">Expect</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The <application>Expect</application> package contains tools for
27 automating, via scripted dialogues, interactive applications such as
28 <command>telnet</command>, <command>ftp</command>,
29 <command>passwd</command>, <command>fsck</command>,
30 <command>rlogin</command>, and <command>tip</command>.
31 <application>Expect</application> is also useful for testing these same
32 applications as well as easing all sorts of tasks that are prohibitively
33 difficult with anything else. The <application>DejaGnu</application>
34 framework is written in <application>Expect</application>.</para>
35
36 <segmentedlist>
37 <segtitle>&buildtime;</segtitle>
38 <segtitle>&diskspace;</segtitle>
39
40 <seglistitem>
41 <seg>&expect-tmp-sbu;</seg>
42 <seg>&expect-tmp-du;</seg>
43 </seglistitem>
44 </segmentedlist>
45
46 </sect2>
47
48 <sect2 role="installation">
49 <title>Installation of Expect</title>
50
51 <para>Update two config scripts to allow building this package for
52 AArch64:</para>
53
54<screen><userinput remap="pre">tar -C tclconfig -xf ../autoconf-&autoconf-version;.tar.xz --strip-components=2 \
55 autoconf-&autoconf-version;/build-aux/config.{guess,sub}</userinput></screen>
56
57 <para>Prepare Expect for compilation:</para>
58
59<screen><userinput remap="configure">./configure --prefix=/usr \
60 --with-tcl=/usr/lib \
61 --enable-shared \
62 --mandir=/usr/share/man \
63 --with-tclinclude=/usr/include</userinput></screen>
64
65 <variablelist>
66 <title>The meaning of the configure options:</title>
67
68 <varlistentry>
69 <term><parameter>--with-tcl=/usr/lib</parameter></term>
70 <listitem>
71 <para>This parameter is needed to tell
72 <command>configure</command> where the
73 <command>tclConfig.sh</command> script is located.</para>
74 </listitem>
75 </varlistentry>
76
77 <varlistentry>
78 <term><parameter>--with-tclinclude=/usr/include</parameter></term>
79 <listitem>
80 <para>This explicitly tells Expect where to find Tcl's internal
81 headers.</para>
82 </listitem>
83 </varlistentry>
84
85 </variablelist>
86
87 <para>Build the package:</para>
88
89<screen><userinput remap="make">make</userinput></screen>
90
91 <para>To test the results, issue:</para>
92
93<screen><userinput remap="test">make test</userinput></screen>
94
95 <para>Install the package:</para>
96
97<screen><userinput remap="install">make install
98ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
99
100 </sect2>
101
102 <sect2 id="contents-expect" role="content">
103 <title>Contents of Expect</title>
104
105 <segmentedlist>
106 <segtitle>Installed program</segtitle>
107 <segtitle>Installed library</segtitle>
108
109 <seglistitem>
110 <seg>expect</seg>
111 <seg>libexpect&expect-version;.so</seg>
112 </seglistitem>
113 </segmentedlist>
114
115 <variablelist>
116 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
117 <?dbfo list-presentation="list"?>
118 <?dbhtml list-presentation="table"?>
119
120 <varlistentry id="expect">
121 <term><command>expect</command></term>
122 <listitem>
123 <para>Communicates with other interactive programs according
124 to a script</para>
125 <indexterm zone="ch-system-expect expect">
126 <primary sortas="b-expect">expect</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="libexpect">
132 <term><filename class="libraryfile">libexpect-&expect-version;.so</filename></term>
133 <listitem>
134 <para>Contains functions that allow Expect to be used as a Tcl
135 extension or to be used directly from C or C++ (without Tcl)</para>
136 <indexterm zone="ch-system-expect libexpect">
137 <primary sortas="c-libexpect-&expect-version;">libexpect-&expect-version;</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 </variablelist>
143
144 </sect2>
145
146</sect1>
Note: See TracBrowser for help on using the repository browser.