[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 | <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 | |
---|
| 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> |
---|
| 30 | |
---|
| 31 | <screen os="p2"><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen> |
---|
| 32 | |
---|
| 33 | <para os="a">Prepare Readline for compilation:</para> |
---|
| 34 | |
---|
[586feb7] | 35 | <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib --host=${CLFS_TARGET}</userinput></screen> |
---|
[02095ae] | 36 | |
---|
| 37 | <para os="c">Compile the package:</para> |
---|
| 38 | |
---|
| 39 | <screen os="d"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen> |
---|
| 40 | |
---|
| 41 | <variablelist os="e"> |
---|
| 42 | <title>The meaning of the make option:</title> |
---|
| 43 | |
---|
| 44 | <varlistentry> |
---|
| 45 | <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term> |
---|
| 46 | <listitem> |
---|
| 47 | <para>This option forces Readline to link against the |
---|
| 48 | <filename class="libraryfile">libncurses</filename> library.</para> |
---|
| 49 | </listitem> |
---|
| 50 | </varlistentry> |
---|
| 51 | </variablelist> |
---|
| 52 | |
---|
| 53 | <para os="f">Install the package:</para> |
---|
| 54 | |
---|
[586feb7] | 55 | <screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen> |
---|
[02095ae] | 56 | |
---|
| 57 | <para os="h">Give Readline's dynamic libraries more appropriate |
---|
| 58 | permissions:</para> |
---|
| 59 | |
---|
[586feb7] | 60 | <screen os="i"><userinput>chmod -v 755 ${CLFS}/lib/lib{readline,history}.so*</userinput></screen> |
---|
[02095ae] | 61 | |
---|
| 62 | <para os="j">Now move the static libraries to a more appropriate location:</para> |
---|
| 63 | |
---|
[586feb7] | 64 | <screen os="k"><userinput>mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib</userinput></screen> |
---|
[02095ae] | 65 | |
---|
| 66 | <para os="l">Next, remove the <filename class="extension">.so</filename> |
---|
| 67 | files in <filename class="directory">/lib</filename> and relink them into |
---|
| 68 | <filename class="directory">/usr/lib</filename>.</para> |
---|
| 69 | |
---|
[586feb7] | 70 | <screen os="m"><userinput>rm -v ${CLFS}/lib/lib{readline,history}.so |
---|
| 71 | ln -svf ../../lib/libreadline.so.5 ${CLFS}/usr/lib/libreadline.so |
---|
| 72 | ln -svf ../../lib/libhistory.so.5 ${CLFS}/usr/lib/libhistory.so</userinput></screen> |
---|
[02095ae] | 73 | |
---|
| 74 | </sect2> |
---|
| 75 | |
---|
| 76 | <sect2 id="contents-readline" role="content"> |
---|
| 77 | <title>Contents of Readline</title> |
---|
| 78 | |
---|
| 79 | <segmentedlist> |
---|
| 80 | <segtitle>Installed libraries</segtitle> |
---|
| 81 | |
---|
| 82 | <seglistitem> |
---|
| 83 | <seg>libhistory.[a,so], and libreadline.[a,so]</seg> |
---|
| 84 | </seglistitem> |
---|
| 85 | </segmentedlist> |
---|
| 86 | |
---|
| 87 | <variablelist> |
---|
| 88 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
| 89 | <?dbfo list-presentation="list"?> |
---|
| 90 | <?dbhtml list-presentation="table"?> |
---|
| 91 | |
---|
| 92 | <varlistentry id="libhistory"> |
---|
| 93 | <term><filename class="libraryfile">libhistory</filename></term> |
---|
| 94 | <listitem> |
---|
| 95 | <para>Provides a consistent user interface |
---|
| 96 | for recalling lines of history</para> |
---|
| 97 | <indexterm zone="ch-system-readline libhistory"> |
---|
| 98 | <primary sortas="c-libhistory">libhistory</primary> |
---|
| 99 | </indexterm> |
---|
| 100 | </listitem> |
---|
| 101 | </varlistentry> |
---|
| 102 | |
---|
| 103 | <varlistentry id="libreadline"> |
---|
| 104 | <term><filename class="libraryfile">libreadline</filename></term> |
---|
| 105 | <listitem> |
---|
| 106 | <para>Aids in the consistency of user interface |
---|
| 107 | across discrete programs that need to provide a command line |
---|
| 108 | interface</para> |
---|
| 109 | <indexterm zone="ch-system-readline libreadline"> |
---|
| 110 | <primary sortas="c-libreadline">libreadline</primary> |
---|
| 111 | </indexterm> |
---|
| 112 | </listitem> |
---|
| 113 | </varlistentry> |
---|
| 114 | |
---|
| 115 | </variablelist> |
---|
| 116 | |
---|
| 117 | </sect2> |
---|
| 118 | |
---|
| 119 | </sect1> |
---|