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