source: chapter06/readline.xml@ 040ecb6

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 7.9 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 040ecb6 was 040ecb6, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to man-db-2.7.4.
Update to linux-4.2.3.
Update to tzdata2015g.
Many updates to installed files and directories. Huge thanks to Fernando.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10964 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>First install some patches to fix various bugs that have been
45 addressed upstream:</para>
46
47<screen><userinput remap="pre">patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
48
49 <para>Reinstalling Readline will cause the old libraries to be moved to
50 &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
51 it can trigger a linking bug in <command>ldconfig</command>. This can be
52 avoided by issuing the following two seds:</para>
53
54<screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
55sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
56
57 <para>Prepare Readline for compilation:</para>
58
59<screen><userinput remap="configure">./configure --prefix=/usr \
60 --disable-static \
61 --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
62
63 <para>Compile the package:</para>
64
65<screen><userinput remap="make">make SHLIB_LIBS=-lncurses</userinput></screen>
66
67 <variablelist>
68 <title>The meaning of the make option:</title>
69
70 <varlistentry>
71 <term><parameter>SHLIB_LIBS=-lncurses</parameter></term>
72 <listitem>
73 <para>This option forces Readline to link against the
74 <filename class="libraryfile">libncurses</filename> (really,
75 <filename class="libraryfile">libncursesw</filename>) library.</para>
76 </listitem>
77 </varlistentry>
78
79 </variablelist>
80
81 <para>This package does not come with a test suite.</para>
82
83 <para>Install the package:</para>
84
85<screen><userinput remap="install">make SHLIB_LIBS=-lncurses install</userinput></screen>
86
87 <para>Now move the dynamic libraries to a more appropriate location
88 and fix up some symbolic links:</para>
89
90<screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
91ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
92ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
93
94 <para>If desired, install the documentation:</para>
95
96<screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
97
98 </sect2>
99
100 <sect2 id="contents-readline" role="content">
101 <title>Contents of Readline</title>
102
103 <segmentedlist>
104 <segtitle>Installed libraries</segtitle>
105 <segtitle>Installed directories</segtitle>
106
107 <seglistitem>
108 <seg>libhistory.so and libreadline.so</seg>
109 <seg>/usr/include/readline and
110 /usr/share/doc/readline-&readline-version;</seg>
111 </seglistitem>
112 </segmentedlist>
113
114 <variablelist>
115 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
116 <?dbfo list-presentation="list"?>
117 <?dbhtml list-presentation="table"?>
118
119 <varlistentry id="libhistory">
120 <term><filename class="libraryfile">libhistory</filename></term>
121 <listitem>
122 <para>Provides a consistent user interface for recalling lines
123 of history</para>
124 <indexterm zone="ch-system-readline libhistory">
125 <primary sortas="c-libhistory">libhistory</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry id="libreadline">
131 <term><filename class="libraryfile">libreadline</filename></term>
132 <listitem>
133 <para>Aids in the consistency of user interface across discrete
134 programs that need to provide a command line interface</para>
135 <indexterm zone="ch-system-readline libreadline">
136 <primary sortas="c-libreadline">libreadline</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 </variablelist>
142
143 </sect2>
144
145</sect1>
Note: See TracBrowser for help on using the repository browser.