1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 | <libraryname>.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
|
---|
50 | sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
|
---|
51 |
|
---|
52 | <para>Prevent hard coding library search paths (rpath) into
|
---|
53 | the shared libraries. This package does not need rpath for an
|
---|
54 | installation into the standard location, and rpath may sometimes cause
|
---|
55 | unwanted effects or even security issues:</para>
|
---|
56 |
|
---|
57 | <screen><userinput>sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf</userinput></screen>
|
---|
58 |
|
---|
59 | <para>Prepare Readline for compilation:</para>
|
---|
60 |
|
---|
61 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
62 | --disable-static \
|
---|
63 | --with-curses \
|
---|
64 | --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
65 |
|
---|
66 | <variablelist>
|
---|
67 | <title>The meaning of the new configure option:</title>
|
---|
68 |
|
---|
69 | <varlistentry>
|
---|
70 | <term><parameter>--with-curses</parameter></term>
|
---|
71 | <listitem>
|
---|
72 | <para>This option tells Readline that it can find the termcap
|
---|
73 | library functions in the curses library, not a separate
|
---|
74 | termcap library. This will generate the correct
|
---|
75 | <filename>readline.pc</filename> file.</para>
|
---|
76 | </listitem>
|
---|
77 | </varlistentry>
|
---|
78 |
|
---|
79 | </variablelist>
|
---|
80 |
|
---|
81 | <para>Compile the package:</para>
|
---|
82 |
|
---|
83 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
84 |
|
---|
85 | <variablelist>
|
---|
86 | <title>The meaning of the make option:</title>
|
---|
87 |
|
---|
88 | <varlistentry>
|
---|
89 | <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
|
---|
90 | <listitem>
|
---|
91 | <para>This option forces Readline to link against the
|
---|
92 | <filename class="libraryfile">libncursesw</filename> library.</para>
|
---|
93 | </listitem>
|
---|
94 | </varlistentry>
|
---|
95 |
|
---|
96 | </variablelist>
|
---|
97 |
|
---|
98 | <para>This package does not come with a test suite.</para>
|
---|
99 |
|
---|
100 | <para>Install the package:</para>
|
---|
101 |
|
---|
102 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
|
---|
103 |
|
---|
104 | <para>If desired, install the documentation:</para>
|
---|
105 |
|
---|
106 | <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <!-- - - - - - - - - - -->
|
---|
111 | <!-- Multilib - 32bit -->
|
---|
112 | <!-- - - - - - - - - - -->
|
---|
113 |
|
---|
114 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
115 | <title>Installation of Readline - 32bit</title>
|
---|
116 |
|
---|
117 | <para>Clean previous build:</para>
|
---|
118 |
|
---|
119 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
120 |
|
---|
121 | <para>Prepare Readline for compilation:</para>
|
---|
122 |
|
---|
123 | <screen><userinput remap="configure">CC="gcc -m32" ./configure \
|
---|
124 | --host=i686-pc-linux-gnu \
|
---|
125 | --prefix=/usr \
|
---|
126 | --libdir=/usr/lib32 \
|
---|
127 | --disable-static \
|
---|
128 | --with-curses</userinput></screen>
|
---|
129 |
|
---|
130 | <para>Compile the package:</para>
|
---|
131 |
|
---|
132 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
133 |
|
---|
134 | <para>Install the package:</para>
|
---|
135 |
|
---|
136 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
|
---|
137 | cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
---|
138 | rm -rf DESTDIR</userinput></screen>
|
---|
139 |
|
---|
140 | </sect2><!-- m32 -->
|
---|
141 |
|
---|
142 | <!-- - - - - - - - - - -->
|
---|
143 | <!-- Multilib - x32bit -->
|
---|
144 | <!-- - - - - - - - - - -->
|
---|
145 |
|
---|
146 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
147 | <title>Installation of Readline - x32bit</title>
|
---|
148 |
|
---|
149 | <para>Clean previous build:</para>
|
---|
150 |
|
---|
151 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
152 |
|
---|
153 | <para>Prepare Readline for compilation:</para>
|
---|
154 |
|
---|
155 | <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
|
---|
156 | --host=x86_64-pc-linux-gnux32 \
|
---|
157 | --prefix=/usr \
|
---|
158 | --libdir=/usr/libx32 \
|
---|
159 | --disable-static \
|
---|
160 | --with-curses</userinput></screen>
|
---|
161 |
|
---|
162 | <para>Compile the package:</para>
|
---|
163 |
|
---|
164 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
165 |
|
---|
166 | <para>Install the package:</para>
|
---|
167 |
|
---|
168 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
|
---|
169 | cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
---|
170 | rm -rf DESTDIR</userinput></screen>
|
---|
171 |
|
---|
172 | </sect2><!-- mx32 -->
|
---|
173 |
|
---|
174 | <sect2 id="contents-readline" role="content">
|
---|
175 | <title>Contents of Readline</title>
|
---|
176 |
|
---|
177 | <segmentedlist>
|
---|
178 | <segtitle>Installed libraries</segtitle>
|
---|
179 | <segtitle>Installed directories</segtitle>
|
---|
180 |
|
---|
181 | <seglistitem>
|
---|
182 | <seg>libhistory.so and libreadline.so</seg>
|
---|
183 | <seg>/usr/include/readline and
|
---|
184 | /usr/share/doc/readline-&readline-version;</seg>
|
---|
185 | </seglistitem>
|
---|
186 | </segmentedlist>
|
---|
187 |
|
---|
188 | <variablelist>
|
---|
189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
190 | <?dbfo list-presentation="list"?>
|
---|
191 | <?dbhtml list-presentation="table"?>
|
---|
192 |
|
---|
193 | <varlistentry id="libhistory">
|
---|
194 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
195 | <listitem>
|
---|
196 | <para>Provides a consistent user interface for recalling lines
|
---|
197 | of history</para>
|
---|
198 | <indexterm zone="ch-system-readline libhistory">
|
---|
199 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | <varlistentry id="libreadline">
|
---|
205 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
206 | <listitem>
|
---|
207 | <para>Provides a set of commands for manipulating text entered in an
|
---|
208 | interactive session of a program</para>
|
---|
209 | <indexterm zone="ch-system-readline libreadline">
|
---|
210 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | </variablelist>
|
---|
216 |
|
---|
217 | </sect2>
|
---|
218 |
|
---|
219 | </sect1>
|
---|