source: chapter06/readline.xml@ d092e9c

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since d092e9c was d092e9c, checked in by Matthew Burgess <matthew@…>, 15 years ago

Add upstream Readline patches. Fixes #2426.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8953 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 <sect1info condition="script">
12 <productname>readline</productname>
13 <productnumber>&readline-version;</productnumber>
14 <address>&readline-url;</address>
15 </sect1info>
16
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/>
25
26 <para>The Readline package is a set of libraries that offers command-line
27 editing and history capabilities.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&readline-ch6-sbu;</seg>
35 <seg>&readline-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Readline</title>
43
44 <para>Reinstalling Readline will cause the old libraries to be moved to
45 &lt;libraryname&gt;.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
49<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
50sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
51
52 <para>Apply fixes for several bugs discovered since the initial release of
53 Readline-&readline-version;:</para>
54
55<screen><userinput remap="pre">patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
56
57 <para>Prepare Readline for compilation:</para>
58
59<screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen>
60
61 <para>Compile the package:</para>
62
63<screen><userinput remap="make">make SHLIB_LIBS=-lncurses</userinput></screen>
64
65 <variablelist>
66 <title>The meaning of the make option:</title>
67
68 <varlistentry>
69 <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
70 <listitem>
71 <para>This option forces Readline to link against the
72 <filename class="libraryfile">libncurses</filename> (really,
73 <filename class="libraryfile">libncursesw</filename>) library.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 <para>This package does not come with a test suite.</para>
80
81 <para>Install the package:</para>
82
83<screen><userinput remap="install">make install</userinput></screen>
84
85 <para>Now move the static libraries to a more appropriate location:</para>
86
87<screen><userinput remap="install">mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
88
89 <para>Next, remove the <filename class="extension">.so</filename> files in
90 <filename class="directory">/lib</filename> and relink them into <filename
91 class="directory">/usr/lib</filename>:</para>
92
93<screen><userinput remap="install">rm -v /lib/lib{readline,history}.so
94ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
95ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so</userinput></screen>
96
97 <para>If desired, install the documentation:</para>
98
99<screen><userinput remap="install">mkdir -v /usr/share/doc/readline-&readline-version;
100install -v -m644 doc/*.{ps,pdf,html,dvi} \
101 /usr/share/doc/readline-&readline-version;</userinput></screen>
102
103 </sect2>
104
105 <sect2 id="contents-readline" role="content">
106 <title>Contents of Readline</title>
107
108 <segmentedlist>
109 <segtitle>Installed libraries</segtitle>
110
111 <seglistitem>
112 <seg>libhistory.{a,so}, and libreadline.{a,so}</seg>
113 </seglistitem>
114 </segmentedlist>
115
116 <variablelist>
117 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
118 <?dbfo list-presentation="list"?>
119 <?dbhtml list-presentation="table"?>
120
121 <varlistentry id="libhistory">
122 <term><filename class="libraryfile">libhistory</filename></term>
123 <listitem>
124 <para>Provides a consistent user interface for recalling lines
125 of history</para>
126 <indexterm zone="ch-system-readline libhistory">
127 <primary sortas="c-libhistory">libhistory</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="libreadline">
133 <term><filename class="libraryfile">libreadline</filename></term>
134 <listitem>
135 <para>Aids in the consistency of user interface across discrete
136 programs that need to provide a command line interface</para>
137 <indexterm zone="ch-system-readline libreadline">
138 <primary sortas="c-libreadline">libreadline</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 </variablelist>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.