source: BOOK/final-system/common/readline.xml@ 9506c364

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9506c364 was 5b72bba, checked in by Jim Gifford <clfs@…>, 19 years ago

r953@server (orig r951): jim | 2005-12-22 00:47:27 -0800

r1172@server: jim | 2005-12-22 00:40:48 -0800
Added Readline Patch from Maintainer


001 - A problem with the readline callback interface can result in segmentation

faults when using the delete-char function via a multiple-key sequence.
Two consecutive calls to delete-char will crash the application calling
readline.




  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[3f8be484]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 <segmentedlist>
24 <segtitle>&dependencies;</segtitle>
25
26 <seglistitem>
27 <seg>Binutils, Coreutils, Diffutils, Gawk,
28 GCC, Glibc, Grep, Make, Ncurses, and Sed</seg>
29 </seglistitem>
30 </segmentedlist>
31
32 </sect2>
33
34 <sect2 role="installation">
35 <title>Installation of Readline</title>
36
[5b72bba]37 <para os="p1">The following patch are updates from the maintainer. The
38 maintainer of Readline only releases these patches to fix serious issues.</para>
39
40<screen os="p2"><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
41
[3f8be484]42 <para os="c">Prepare Readline for compilation:</para>
43
[e0e40d3]44<screen os="d"><userinput>./configure --prefix=/usr --libdir=/lib</userinput></screen>
[3f8be484]45
[e0e40d3]46 <para os="e">Compile the package:</para>
[3f8be484]47
[e0e40d3]48<screen os="f"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
[3f8be484]49
[e0e40d3]50 <variablelist os="g">
[3f8be484]51 <title>The meaning of the make option:</title>
52
53 <varlistentry>
54 <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
55 <listitem>
56 <para>This option forces Readline to link against the
57 <filename class="libraryfile">libncurses</filename> library.</para>
58 </listitem>
59 </varlistentry>
60 </variablelist>
61
[e0e40d3]62 <para os="h">Install the package:</para>
[3f8be484]63
[e0e40d3]64<screen os="i"><userinput>make install</userinput></screen>
[3f8be484]65
[6bb43b3]66 <para os="j">Give Readline's dynamic libraries more appropriate
[3f8be484]67 permissions:</para>
68
[e0e40d3]69<screen os="k"><userinput>chmod 755 /lib/lib{readline,history}.so*</userinput></screen>
[3f8be484]70
[e0e40d3]71 <para os="l">Now move the static libraries to a more appropriate location:</para>
[3f8be484]72
[e0e40d3]73<screen os="m"><userinput>mv /lib/lib{readline,history}.a /usr/lib</userinput></screen>
[3f8be484]74
[e0e40d3]75 <para os="n">Next, remove the <filename class="extension">.so</filename>
[3f8be484]76 files in <filename class="directory">/lib</filename> and relink them into
77 <filename class="directory">/usr/lib</filename>.</para>
78
[e0e40d3]79<screen os="o"><userinput>rm /lib/lib{readline,history}.so
[3f8be484]80ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
81ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
82
83 </sect2>
84
85 <sect2 id="contents-readline" role="content">
86 <title>Contents of Readline</title>
87
88 <segmentedlist>
89 <segtitle>Installed libraries</segtitle>
90
91 <seglistitem>
92 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
93 </seglistitem>
94 </segmentedlist>
95
96 <variablelist>
97 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
98 <?dbfo list-presentation="list"?>
99 <?dbhtml list-presentation="table"?>
100
101 <varlistentry id="libhistory">
102 <term><filename class="libraryfile">libhistory</filename></term>
103 <listitem>
104 <para>Provides a consistent user interface
105 for recalling lines of history</para>
106 <indexterm zone="ch-system-readline libhistory">
107 <primary sortas="c-libhistory">libhistory</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="libreadline">
113 <term><filename class="libraryfile">libreadline</filename></term>
114 <listitem>
115 <para>Aids in the consistency of user interface
116 across discrete programs that need to provide a command line
117 interface</para>
118 <indexterm zone="ch-system-readline libreadline">
119 <primary sortas="c-libreadline">libreadline</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 </variablelist>
125
126 </sect2>
127
128</sect1>
Note: See TracBrowser for help on using the repository browser.