[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3125dfb] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[3f3931b0] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-readline" role="wrap">
|
---|
[3f3931b0] | 9 | <?dbhtml filename="readline.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>readline</productname>
|
---|
| 13 | <productnumber>&readline-version;</productnumber>
|
---|
| 14 | <address>&readline-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[3f3931b0] | 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/>
|
---|
[3125dfb] | 25 |
|
---|
[cc197d0] | 26 | <para>The Readline package is a set of libraries that offer command-line
|
---|
[3f3931b0] | 27 | editing and history capabilities.</para>
|
---|
[3125dfb] | 28 |
|
---|
[3f3931b0] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[3125dfb] | 32 |
|
---|
[3f3931b0] | 33 | <seglistitem>
|
---|
[6dfcfecc] | 34 | <seg>&readline-fin-sbu;</seg>
|
---|
| 35 | <seg>&readline-fin-du;</seg>
|
---|
[3f3931b0] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[3125dfb] | 38 |
|
---|
[3f3931b0] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Readline</title>
|
---|
| 43 |
|
---|
[2ed4bb3f] | 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 |
|
---|
[0445a3d] | 49 | <screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
|
---|
[2ed4bb3f] | 50 | sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
|
---|
[67e8a9b] | 51 |
|
---|
[2ef9bea] | 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 |
|
---|
[efae039] | 59 | <para>Now fix a problem identified upstream:</para>
|
---|
| 60 |
|
---|
| 61 | <screen><userinput remap="pre">patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
|
---|
[67e8a9b] | 62 |
|
---|
[3f3931b0] | 63 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 64 |
|
---|
[73b2841] | 65 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 66 | --disable-static \
|
---|
[e37764e] | 67 | --with-curses \
|
---|
[73b2841] | 68 | --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[3125dfb] | 69 |
|
---|
[e37764e] | 70 | <variablelist>
|
---|
[cc197d0] | 71 | <title>The meaning of the new configure option:</title>
|
---|
[e37764e] | 72 |
|
---|
| 73 | <varlistentry>
|
---|
[6dfcfecc] | 74 | <term><parameter>--with-curses</parameter></term>
|
---|
[e37764e] | 75 | <listitem>
|
---|
| 76 | <para>This option tells Readline that it can find the termcap
|
---|
[cc197d0] | 77 | library functions in the curses library, not a separate
|
---|
| 78 | termcap library. This will generate the correct
|
---|
[c37e846] | 79 | <filename>readline.pc</filename> file.</para>
|
---|
[e37764e] | 80 | </listitem>
|
---|
| 81 | </varlistentry>
|
---|
| 82 |
|
---|
| 83 | </variablelist>
|
---|
| 84 |
|
---|
[3f3931b0] | 85 | <para>Compile the package:</para>
|
---|
[3125dfb] | 86 |
|
---|
[6dfcfecc] | 87 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
[3125dfb] | 88 |
|
---|
[3f3931b0] | 89 | <variablelist>
|
---|
| 90 | <title>The meaning of the make option:</title>
|
---|
[81fd230] | 91 |
|
---|
[3f3931b0] | 92 | <varlistentry>
|
---|
[6dfcfecc] | 93 | <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
|
---|
[3f3931b0] | 94 | <listitem>
|
---|
| 95 | <para>This option forces Readline to link against the
|
---|
[1e472fb] | 96 | <filename class="libraryfile">libncursesw</filename> library.</para>
|
---|
[3f3931b0] | 97 | </listitem>
|
---|
| 98 | </varlistentry>
|
---|
[81fd230] | 99 |
|
---|
[3f3931b0] | 100 | </variablelist>
|
---|
[0be3d41] | 101 |
|
---|
[3f3931b0] | 102 | <para>This package does not come with a test suite.</para>
|
---|
| 103 |
|
---|
| 104 | <para>Install the package:</para>
|
---|
[3125dfb] | 105 |
|
---|
[6dfcfecc] | 106 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
|
---|
[3125dfb] | 107 |
|
---|
[52e836a] | 108 | <para>If desired, install the documentation:</para>
|
---|
| 109 |
|
---|
[a57d556] | 110 | <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[52e836a] | 111 |
|
---|
[3f3931b0] | 112 | </sect2>
|
---|
| 113 |
|
---|
[6dfcfecc] | 114 | <!-- - - - - - - - - - -->
|
---|
| 115 | <!-- Multilib - 32bit -->
|
---|
| 116 | <!-- - - - - - - - - - -->
|
---|
[fd48baa] | 117 |
|
---|
| 118 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
[6dfcfecc] | 119 | <title>Installation of Readline - 32bit</title>
|
---|
[b3f1ebb3] | 120 |
|
---|
| 121 | <para>Clean previous build:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>Prepare Readline for compilation:</para>
|
---|
| 126 |
|
---|
[6dfcfecc] | 127 | <screen><userinput remap="configure">CC="gcc -m32" ./configure \
|
---|
[70aadfb] | 128 | --host=i686-pc-linux-gnu \
|
---|
| 129 | --prefix=/usr \
|
---|
| 130 | --libdir=/usr/lib32 \
|
---|
[9282602] | 131 | --disable-static \
|
---|
| 132 | --with-curses</userinput></screen>
|
---|
[b3f1ebb3] | 133 |
|
---|
| 134 | <para>Compile the package:</para>
|
---|
| 135 |
|
---|
[b08c451] | 136 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
[b3f1ebb3] | 137 |
|
---|
| 138 | <para>Install the package:</para>
|
---|
| 139 |
|
---|
[b08c451] | 140 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
|
---|
[0ebda11] | 141 | cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
---|
[b3f1ebb3] | 142 | rm -rf DESTDIR</userinput></screen>
|
---|
| 143 |
|
---|
[6dfcfecc] | 144 | </sect2><!-- m32 -->
|
---|
[b3f1ebb3] | 145 |
|
---|
[6dfcfecc] | 146 | <!-- - - - - - - - - - -->
|
---|
| 147 | <!-- Multilib - x32bit -->
|
---|
| 148 | <!-- - - - - - - - - - -->
|
---|
[fd48baa] | 149 |
|
---|
| 150 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
[6dfcfecc] | 151 | <title>Installation of Readline - x32bit</title>
|
---|
[b3f1ebb3] | 152 |
|
---|
| 153 | <para>Clean previous build:</para>
|
---|
| 154 |
|
---|
| 155 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 156 |
|
---|
| 157 | <para>Prepare Readline for compilation:</para>
|
---|
| 158 |
|
---|
| 159 | <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
|
---|
[70aadfb] | 160 | --host=x86_64-pc-linux-gnux32 \
|
---|
| 161 | --prefix=/usr \
|
---|
| 162 | --libdir=/usr/libx32 \
|
---|
[9282602] | 163 | --disable-static \
|
---|
| 164 | --with-curses</userinput></screen>
|
---|
[b3f1ebb3] | 165 |
|
---|
| 166 | <para>Compile the package:</para>
|
---|
| 167 |
|
---|
[b08c451] | 168 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
[b3f1ebb3] | 169 |
|
---|
| 170 | <para>Install the package:</para>
|
---|
| 171 |
|
---|
[b08c451] | 172 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" DESTDIR=$PWD/DESTDIR install
|
---|
[0ebda11] | 173 | cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
---|
[b3f1ebb3] | 174 | rm -rf DESTDIR</userinput></screen>
|
---|
| 175 |
|
---|
[6dfcfecc] | 176 | </sect2><!-- mx32 -->
|
---|
[b3f1ebb3] | 177 |
|
---|
[3f3931b0] | 178 | <sect2 id="contents-readline" role="content">
|
---|
| 179 | <title>Contents of Readline</title>
|
---|
| 180 |
|
---|
| 181 | <segmentedlist>
|
---|
| 182 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 183 | <segtitle>Installed directories</segtitle>
|
---|
[3f3931b0] | 184 |
|
---|
| 185 | <seglistitem>
|
---|
[040ecb6] | 186 | <seg>libhistory.so and libreadline.so</seg>
|
---|
[78cc3be] | 187 | <seg>/usr/include/readline and
|
---|
[fe05b08] | 188 | /usr/share/doc/readline-&readline-version;</seg>
|
---|
[3f3931b0] | 189 | </seglistitem>
|
---|
| 190 | </segmentedlist>
|
---|
| 191 |
|
---|
| 192 | <variablelist>
|
---|
| 193 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 194 | <?dbfo list-presentation="list"?>
|
---|
| 195 | <?dbhtml list-presentation="table"?>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="libhistory">
|
---|
| 198 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>Provides a consistent user interface for recalling lines
|
---|
| 201 | of history</para>
|
---|
| 202 | <indexterm zone="ch-system-readline libhistory">
|
---|
| 203 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="libreadline">
|
---|
| 209 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 210 | <listitem>
|
---|
[0d84af1] | 211 | <para>Provides a set of commands for manipulating text entered in an
|
---|
[4c8c128] | 212 | interactive session of a program</para>
|
---|
[3f3931b0] | 213 | <indexterm zone="ch-system-readline libreadline">
|
---|
| 214 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
| 219 | </variablelist>
|
---|
| 220 |
|
---|
| 221 | </sect2>
|
---|
[3125dfb] | 222 |
|
---|
| 223 | </sect1>
|
---|