source: chapter08/expect.xml@ f272b23

xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1
Last change on this file since f272b23 was f272b23, checked in by Xi Ruoyao <xry111@…>, 12 months ago

loongarch: expect: Update config.{guess,sub}

  • Property mode set to 100644
File size: 5.2 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 &update-config-text;
52
53<screen><userinput remap="pre">tar -C tclconfig &update-config-arg;</userinput></screen>
54
55 <para>Prepare Expect for compilation:</para>
56
57<screen><userinput remap="configure">./configure --prefix=/usr \
58 --with-tcl=/usr/lib \
59 --enable-shared \
60 --mandir=/usr/share/man \
61 --with-tclinclude=/usr/include</userinput></screen>
62
63 <variablelist>
64 <title>The meaning of the configure options:</title>
65
66 <varlistentry>
67 <term><parameter>--with-tcl=/usr/lib</parameter></term>
68 <listitem>
69 <para>This parameter is needed to tell
70 <command>configure</command> where the
71 <command>tclConfig.sh</command> script is located.</para>
72 </listitem>
73 </varlistentry>
74
75 <varlistentry>
76 <term><parameter>--with-tclinclude=/usr/include</parameter></term>
77 <listitem>
78 <para>This explicitly tells Expect where to find Tcl's internal
79 headers.</para>
80 </listitem>
81 </varlistentry>
82
83 </variablelist>
84
85 <para>Build the package:</para>
86
87<screen><userinput remap="make">make</userinput></screen>
88
89 <important>
90 <para>The test suite for Expect is considered critical.
91 Do not skip it under any circumstances.</para>
92 </important>
93
94 <para>To test the results, issue:</para>
95
96<screen><userinput remap="test">make test</userinput></screen>
97
98 <para>If any test fails with the message
99 <quote><computeroutput>The system has no more ptys. Ask your system
100 administrator to create more</computeroutput></quote>, it indicates
101 you've not mounted the
102 <systemitem class="filesystem">devpts</systemitem> file system
103 correctly. You need to exit from the chroot environment, read
104 <xref linkend='ch-tools-kernfs'/> again, and ensure the
105 <systemitem class="filesystem">devpts</systemitem> file system (and
106 other virtual kernel file systems) mounted correctly. Then reenter
107 the chroot environment following <xref linkend='ch-tools-chroot'/>.
108 This issue needs to be resolved before continuing.</para>
109
110 <para>Install the package:</para>
111
112<screen><userinput remap="install">make install
113ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
114
115 </sect2>
116
117 <sect2 id="contents-expect" role="content">
118 <title>Contents of Expect</title>
119
120 <segmentedlist>
121 <segtitle>Installed program</segtitle>
122 <segtitle>Installed library</segtitle>
123
124 <seglistitem>
125 <seg>expect</seg>
126 <seg>libexpect&expect-version;.so</seg>
127 </seglistitem>
128 </segmentedlist>
129
130 <variablelist>
131 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
132 <?dbfo list-presentation="list"?>
133 <?dbhtml list-presentation="table"?>
134
135 <varlistentry id="expect">
136 <term><command>expect</command></term>
137 <listitem>
138 <para>Communicates with other interactive programs according
139 to a script</para>
140 <indexterm zone="ch-system-expect expect">
141 <primary sortas="b-expect">expect</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="libexpect">
147 <term><filename class="libraryfile">libexpect-&expect-version;.so</filename></term>
148 <listitem>
149 <para>Contains functions that allow Expect to be used as a Tcl
150 extension or to be used directly from C or C++ (without Tcl)</para>
151 <indexterm zone="ch-system-expect libexpect">
152 <primary sortas="c-libexpect-&expect-version;">libexpect-&expect-version;</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 </variablelist>
158
159 </sect2>
160
161</sect1>
Note: See TracBrowser for help on using the repository browser.