[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 | <title>Readline-&readline-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-readline">
|
---|
| 14 | <primary sortas="a-Readline">Readline</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Readline package is a set of libraries that offers command-line
|
---|
| 21 | editing and history capabilities.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Readline</title>
|
---|
| 27 |
|
---|
[001becd] | 28 | <para os="p1">The following patch contains updates from the maintainer. The
|
---|
| 29 | maintainer of Readline only releases these patches to fix serious issues:</para>
|
---|
[3f8be484] | 30 |
|
---|
[04494b7] | 31 | <screen os="p2"><userinput>patch -Np1 -i ../&readline-branch_update-patch;</userinput></screen>
|
---|
[3f8be484] | 32 |
|
---|
[abc22f0] | 33 | <para os="s1">Reinstalling Readline moves the old libraries to
|
---|
| 34 | <libraryname> and a linking bug may occur in
|
---|
| 35 | <command>ldconfig</command>. Prevent this with the following seds:</para>
|
---|
| 36 |
|
---|
| 37 | <screen os="s2"><userinput>sed -i '/MV.*old/d' Makefile.in
|
---|
| 38 | sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
|
---|
| 39 |
|
---|
[001becd] | 40 | <para os="a">Prepare Readline for compilation:</para>
|
---|
[3f8be484] | 41 |
|
---|
[7cd7f99] | 42 | <screen os="b"><userinput>./configure \
|
---|
| 43 | --prefix=/usr \
|
---|
| 44 | --libdir=/lib \
|
---|
[e89c4c9] | 45 | --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
|
---|
[3f8be484] | 46 |
|
---|
[001becd] | 47 | <para os="c">Compile the package:</para>
|
---|
| 48 |
|
---|
[110e1fa] | 49 | <screen os="d"><userinput>make SHLIB_LIBS=-lncurses</userinput></screen>
|
---|
[3f8be484] | 50 |
|
---|
[3d00c1ed] | 51 | <para os="e">This package does not come with a test suite.</para>
|
---|
[3f8be484] | 52 |
|
---|
[3d00c1ed] | 53 | <para os="f">Install the package:</para>
|
---|
[3f8be484] | 54 |
|
---|
[c655294] | 55 | <screen os="g"><userinput>make SHLIB_LIBS=-lncurses htmldir=/usr/share/doc/readline-&readline-version; install</userinput></screen>
|
---|
[5da8aa0] | 56 |
|
---|
[c806e36] | 57 | <para os="h">Now move the static libraries to a more appropriate location:</para>
|
---|
[3f8be484] | 58 |
|
---|
[c806e36] | 59 | <screen os="i"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
|
---|
[3f8be484] | 60 |
|
---|
[c806e36] | 61 | <para os="j">Next, relink the dynamic libraries into <filename class="directory">/usr/lib</filename> and remove the <filename class="extension">.so</filename> files in <filename class="directory">/lib</filename>.</para>
|
---|
[4f743c5] | 62 |
|
---|
[bd38dd3] | 63 | <screen os="k"><userinput>ln -svf ../../lib/$(readlink /lib/libreadline.so) /usr/lib/libreadline.so
|
---|
[78dd6d6] | 64 | ln -svf ../../lib/$(readlink /lib/libhistory.so) /usr/lib/libhistory.so
|
---|
| 65 | rm -v /lib/lib{readline,history}.so</userinput></screen>
|
---|
[3f8be484] | 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2 id="contents-readline" role="content">
|
---|
| 70 | <title>Contents of Readline</title>
|
---|
| 71 |
|
---|
| 72 | <segmentedlist>
|
---|
| 73 | <segtitle>Installed libraries</segtitle>
|
---|
[61ad0b7f] | 74 | <segtitle>Installed directories</segtitle>
|
---|
[3f8be484] | 75 |
|
---|
| 76 | <seglistitem>
|
---|
[f698055a] | 77 | <seg>libhistory.[a,so], libreadline.[a,so]</seg>
|
---|
[c873165] | 78 | <seg>/usr/include/readline, /usr/share/doc/readline-&readline-version;, /usr/share/readline</seg>
|
---|
[3f8be484] | 79 | </seglistitem>
|
---|
| 80 | </segmentedlist>
|
---|
| 81 |
|
---|
| 82 | <variablelist>
|
---|
| 83 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 84 | <?dbfo list-presentation="list"?>
|
---|
| 85 | <?dbhtml list-presentation="table"?>
|
---|
| 86 |
|
---|
| 87 | <varlistentry id="libhistory">
|
---|
| 88 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>Provides a consistent user interface
|
---|
| 91 | for recalling lines of history</para>
|
---|
| 92 | <indexterm zone="ch-system-readline libhistory">
|
---|
| 93 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
| 94 | </indexterm>
|
---|
| 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
| 97 |
|
---|
| 98 | <varlistentry id="libreadline">
|
---|
| 99 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
| 100 | <listitem>
|
---|
| 101 | <para>Aids in the consistency of user interface
|
---|
| 102 | across discrete programs that need to provide a command line
|
---|
| 103 | interface</para>
|
---|
| 104 | <indexterm zone="ch-system-readline libreadline">
|
---|
| 105 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
| 106 | </indexterm>
|
---|
| 107 | </listitem>
|
---|
| 108 | </varlistentry>
|
---|
| 109 |
|
---|
| 110 | </variablelist>
|
---|
| 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | </sect1>
|
---|