[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>
|
---|
[fb386e0] | 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 |
|
---|
[efae039] | 52 | <para>Now fix a problem identified upstream:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput remap="pre">patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
|
---|
| 55 |
|
---|
[3f3931b0] | 56 | <para>Prepare Readline for compilation:</para>
|
---|
[3125dfb] | 57 |
|
---|
[73b2841] | 58 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 59 | --disable-static \
|
---|
[a5dddcb] | 60 | --with-curses \
|
---|
[73b2841] | 61 | --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[3125dfb] | 62 |
|
---|
[a5dddcb] | 63 | <variablelist>
|
---|
[cc197d0] | 64 | <title>The meaning of the new configure option:</title>
|
---|
[a5dddcb] | 65 |
|
---|
| 66 | <varlistentry>
|
---|
[45cd4bf] | 67 | <term><parameter>--with-curses</parameter></term>
|
---|
[a5dddcb] | 68 | <listitem>
|
---|
| 69 | <para>This option tells Readline that it can find the termcap
|
---|
[cc197d0] | 70 | library functions in the curses library, not a separate
|
---|
| 71 | termcap library. This will generate the correct
|
---|
[c37e846] | 72 | <filename>readline.pc</filename> file.</para>
|
---|
[a5dddcb] | 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
| 75 |
|
---|
| 76 | </variablelist>
|
---|
| 77 |
|
---|
[3f3931b0] | 78 | <para>Compile the package:</para>
|
---|
[3125dfb] | 79 |
|
---|
[efcb393] | 80 | <screen><userinput remap="make">make SHLIB_LIBS="-lncursesw"</userinput></screen>
|
---|
[3125dfb] | 81 |
|
---|
[3f3931b0] | 82 | <variablelist>
|
---|
| 83 | <title>The meaning of the make option:</title>
|
---|
[81fd230] | 84 |
|
---|
[3f3931b0] | 85 | <varlistentry>
|
---|
[efcb393] | 86 | <term><parameter>SHLIB_LIBS="-lncursesw"</parameter></term>
|
---|
[3f3931b0] | 87 | <listitem>
|
---|
| 88 | <para>This option forces Readline to link against the
|
---|
[1e472fb] | 89 | <filename class="libraryfile">libncursesw</filename> library.</para>
|
---|
[3f3931b0] | 90 | </listitem>
|
---|
| 91 | </varlistentry>
|
---|
[81fd230] | 92 |
|
---|
[3f3931b0] | 93 | </variablelist>
|
---|
[0be3d41] | 94 |
|
---|
[3f3931b0] | 95 | <para>This package does not come with a test suite.</para>
|
---|
| 96 |
|
---|
| 97 | <para>Install the package:</para>
|
---|
[3125dfb] | 98 |
|
---|
[efcb393] | 99 | <screen><userinput remap="install">make SHLIB_LIBS="-lncursesw" install</userinput></screen>
|
---|
[3125dfb] | 100 |
|
---|
[52e836a] | 101 | <para>If desired, install the documentation:</para>
|
---|
| 102 |
|
---|
[a57d556] | 103 | <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[52e836a] | 104 |
|
---|
[3f3931b0] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 id="contents-readline" role="content">
|
---|
| 108 | <title>Contents of Readline</title>
|
---|
| 109 |
|
---|
| 110 | <segmentedlist>
|
---|
| 111 | <segtitle>Installed libraries</segtitle>
|
---|
[fe05b08] | 112 | <segtitle>Installed directories</segtitle>
|
---|
[3f3931b0] | 113 |
|
---|
| 114 | <seglistitem>
|
---|
[040ecb6] | 115 | <seg>libhistory.so and libreadline.so</seg>
|
---|
[78cc3be] | 116 | <seg>/usr/include/readline and
|
---|
[fe05b08] | 117 | /usr/share/doc/readline-&readline-version;</seg>
|
---|
[3f3931b0] | 118 | </seglistitem>
|
---|
| 119 | </segmentedlist>
|
---|
| 120 |
|
---|
| 121 | <variablelist>
|
---|
| 122 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 123 | <?dbfo list-presentation="list"?>
|
---|
| 124 | <?dbhtml list-presentation="table"?>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="libhistory">
|
---|
| 127 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>Provides a consistent user interface for recalling lines
|
---|
| 130 | of history</para>
|
---|
| 131 | <indexterm zone="ch-system-readline libhistory">
|
---|
| 132 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="libreadline">
|
---|
| 138 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 139 | <listitem>
|
---|
[0d84af1] | 140 | <para>Provides a set of commands for manipulating text entered in an
|
---|
[8d35535] | 141 | interactive session of a program</para>
|
---|
[3f3931b0] | 142 | <indexterm zone="ch-system-readline libreadline">
|
---|
| 143 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | </variablelist>
|
---|
| 149 |
|
---|
| 150 | </sect2>
|
---|
[3125dfb] | 151 |
|
---|
| 152 | </sect1>
|
---|