source: chapter08/readline.xml@ a2434bd4

multilib
Last change on this file since a2434bd4 was 46405a5b, checked in by Thomas Trepl (Moody) <thomas@…>, 18 months ago

Automatic merge of trunk into multilib

  • Property mode set to 100644
File size: 6.7 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-readline" role="wrap">
9 <?dbhtml filename="readline.html"?>
10
11 <sect1info condition="script">
12 <productname>readline</productname>
13 <productnumber>&readline-version;</productnumber>
14 <address>&readline-url;</address>
15 </sect1info>
16
17 <title>Readline-&readline-version;</title>
18
19 <indexterm zone="ch-system-readline">
20 <primary sortas="a-Readline">Readline</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Readline package is a set of libraries that offer command-line
27 editing and history capabilities.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&readline-fin-sbu;</seg>
35 <seg>&readline-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Readline</title>
43
44 <para>Reinstalling Readline will cause the old libraries to be moved to
45 &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
46 it can trigger a linking bug in <command>ldconfig</command>. This can be
47 avoided by issuing the following two seds:</para>
48
49<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
50sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
51
52 <para>Now fix a problem identified upstream:</para>
53
54<screen><userinput remap="pre">patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
55
56 <para>Prepare Readline for compilation:</para>
57
58<screen><userinput remap="configure">./configure --prefix=/usr \
59 --disable-static \
60 --with-curses \
61 --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
62
63 <variablelist>
64 <title>The meaning of the new configure option:</title>
65
66 <varlistentry>
67 <term><parameter>--with-curses</parameter></term>
68 <listitem>
69 <para>This option tells Readline that it can find the termcap
70 library functions in the curses library, not a separate
71 termcap library. This will generate the correct
72 <filename>readline.pc</filename> file.</para>
73 </listitem>
74 </varlistentry>
75
76 </variablelist>
77
78 <para>Compile the package:</para>
79
80<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
81
82 <variablelist>
83 <title>The meaning of the make option:</title>
84
85 <varlistentry>
86 <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
87 <listitem>
88 <para>This option forces Readline to link against the
89 <filename class="libraryfile">libncursesw</filename> library.</para>
90 </listitem>
91 </varlistentry>
92
93 </variablelist>
94
95 <para>This package does not come with a test suite.</para>
96
97 <para>Install the package:</para>
98
99<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
100
101 <para>If desired, install the documentation:</para>
102
103<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
104
105 </sect2>
106
107 <!-- - - - - - - - - - -->
108 <!-- Multilib - 32bit -->
109 <!-- - - - - - - - - - -->
110
111 <sect2 arch="ml_32,ml_all" role="installation">
112 <title>Installation of Readline - 32bit</title>
113
114 <para>Clean previous build:</para>
115
116<screen><userinput remap="pre">make distclean</userinput></screen>
117
118 <para>Prepare Readline for compilation:</para>
119
120<screen><userinput remap="configure">CC="gcc -m32" ./configure \
121 --host=i686-pc-linux-gnu \
122 --prefix=/usr \
123 --libdir=/usr/lib32 \
124 --disable-static \
125 --with-curses</userinput></screen>
126
127 <para>Compile the package:</para>
128
129<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
130
131 <para>Install the package:</para>
132
133<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
134cp -Rv DESTDIR/usr/lib32/* /usr/lib32
135rm -rf DESTDIR</userinput></screen>
136
137 </sect2><!-- m32 -->
138
139 <!-- - - - - - - - - - -->
140 <!-- Multilib - x32bit -->
141 <!-- - - - - - - - - - -->
142
143 <sect2 arch="ml_x32,ml_all" role="installation">
144 <title>Installation of Readline - x32bit</title>
145
146 <para>Clean previous build:</para>
147
148<screen><userinput remap="pre">make distclean</userinput></screen>
149
150 <para>Prepare Readline for compilation:</para>
151
152<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
153 --host=x86_64-pc-linux-gnux32 \
154 --prefix=/usr \
155 --libdir=/usr/libx32 \
156 --disable-static \
157 --with-curses</userinput></screen>
158
159 <para>Compile the package:</para>
160
161<screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
162
163 <para>Install the package:</para>
164
165<screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
166cp -Rv DESTDIR/usr/libx32/* /usr/libx32
167rm -rf DESTDIR</userinput></screen>
168
169 </sect2><!-- mx32 -->
170
171 <sect2 id="contents-readline" role="content">
172 <title>Contents of Readline</title>
173
174 <segmentedlist>
175 <segtitle>Installed libraries</segtitle>
176 <segtitle>Installed directories</segtitle>
177
178 <seglistitem>
179 <seg>libhistory.so and libreadline.so</seg>
180 <seg>/usr/include/readline and
181 /usr/share/doc/readline-&readline-version;</seg>
182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
190 <varlistentry id="libhistory">
191 <term><filename class="libraryfile">libhistory</filename></term>
192 <listitem>
193 <para>Provides a consistent user interface for recalling lines
194 of history</para>
195 <indexterm zone="ch-system-readline libhistory">
196 <primary sortas="c-libhistory">libhistory</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="libreadline">
202 <term><filename class="libraryfile">libreadline</filename></term>
203 <listitem>
204 <para>Provides a set of commands for manipulating text entered in an
205 interactive session of a program</para>
206 <indexterm zone="ch-system-readline libreadline">
207 <primary sortas="c-libreadline">libreadline</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 </variablelist>
213
214 </sect2>
215
216</sect1>
Note: See TracBrowser for help on using the repository browser.