source: final-system/common/readline.xml@ d4b90ac0

Last change on this file since d4b90ac0 was 0f06076, checked in by Jim Gifford <clfs@…>, 19 years ago

r3371@server (orig r1554): chris | 2006-05-10 14:03:44 -0700
Removed dependency info from individual package instructions

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[bf8c11f]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
[5bb9685]28 <para os="p1">The following patch contains updates from the maintainer. The
[dcc18d8f]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
[bf8c11f]33 <para os="c">Prepare Readline for compilation:</para>
34
[e6423a01]35<screen os="d"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
[bf8c11f]36
[e6423a01]37 <para os="e">Compile the package:</para>
[bf8c11f]38
[e6423a01]39<screen os="f"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
[bf8c11f]40
[e6423a01]41 <variablelist os="g">
[bf8c11f]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
[bea9517]53 <para os="h">This package does not come with a test suite.</para>
[bf8c11f]54
[bea9517]55 <para os="i">Install the package:</para>
[bf8c11f]56
[bea9517]57<screen os="j"><userinput>make install</userinput></screen>
58
59 <para os="k">Give Readline's dynamic libraries more appropriate
[bf8c11f]60 permissions:</para>
61
[dd9906e]62<screen os="l"><userinput>chmod -v 755 /lib/lib{readline,history}.so*</userinput></screen>
[bf8c11f]63
[bea9517]64 <para os="m">Now move the static libraries to a more appropriate location:</para>
[bf8c11f]65
[dd9906e]66<screen os="n"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
[bf8c11f]67
[bea9517]68 <para os="o">Next, remove the <filename class="extension">.so</filename>
[bf8c11f]69 files in <filename class="directory">/lib</filename> and relink them into
70 <filename class="directory">/usr/lib</filename>.</para>
71
[dd9906e]72<screen os="p"><userinput>rm -v /lib/lib{readline,history}.so
73ln -svf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
74ln -svf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
[bf8c11f]75
76 </sect2>
77
78 <sect2 id="contents-readline" role="content">
79 <title>Contents of Readline</title>
80
81 <segmentedlist>
82 <segtitle>Installed libraries</segtitle>
83
84 <seglistitem>
85 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
86 </seglistitem>
87 </segmentedlist>
88
89 <variablelist>
90 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
91 <?dbfo list-presentation="list"?>
92 <?dbhtml list-presentation="table"?>
93
94 <varlistentry id="libhistory">
95 <term><filename class="libraryfile">libhistory</filename></term>
96 <listitem>
97 <para>Provides a consistent user interface
98 for recalling lines of history</para>
99 <indexterm zone="ch-system-readline libhistory">
100 <primary sortas="c-libhistory">libhistory</primary>
101 </indexterm>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry id="libreadline">
106 <term><filename class="libraryfile">libreadline</filename></term>
107 <listitem>
108 <para>Aids in the consistency of user interface
109 across discrete programs that need to provide a command line
110 interface</para>
111 <indexterm zone="ch-system-readline libreadline">
112 <primary sortas="c-libreadline">libreadline</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 </variablelist>
118
119 </sect2>
120
121</sect1>
Note: See TracBrowser for help on using the repository browser.