source: clfs-sysroot/BOOK/final-system/common/readline.xml@ b4f6cf0

Last change on this file since b4f6cf0 was cee2ca2, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Went through and made sure that every package in the final system that needs both --build and --host has them.

  • Property mode set to 100644
File size: 4.0 KB
Line 
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
35<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
36 --prefix=/usr --libdir=/lib</userinput></screen>
37
38 <para os="c">Compile the package:</para>
39
40<screen os="d"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
41
42 <variablelist os="e">
43 <title>The meaning of the make option:</title>
44
45 <varlistentry>
46 <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
47 <listitem>
48 <para>This option forces Readline to link against the
49 <filename class="libraryfile">libncurses</filename> library.</para>
50 </listitem>
51 </varlistentry>
52 </variablelist>
53
54 <para os="f">Install the package:</para>
55
56<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
57
58 <para os="h">Give Readline's dynamic libraries more appropriate
59 permissions:</para>
60
61<screen os="i"><userinput>chmod -v 755 ${CLFS}/lib/lib{readline,history}.so*</userinput></screen>
62
63 <para os="j">Now move the static libraries to a more appropriate location:</para>
64
65<screen os="k"><userinput>mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib</userinput></screen>
66
67 <para os="l">Next, remove the <filename class="extension">.so</filename>
68 files in <filename class="directory">/lib</filename> and relink them into
69 <filename class="directory">/usr/lib</filename>.</para>
70
71<screen os="m"><userinput>rm -v ${CLFS}/lib/lib{readline,history}.so
72ln -svf ../../lib/libreadline.so.5 ${CLFS}/usr/lib/libreadline.so
73ln -svf ../../lib/libhistory.so.5 ${CLFS}/usr/lib/libhistory.so</userinput></screen>
74
75 </sect2>
76
77 <sect2 id="contents-readline" role="content">
78 <title>Contents of Readline</title>
79
80 <segmentedlist>
81 <segtitle>Installed libraries</segtitle>
82
83 <seglistitem>
84 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
85 </seglistitem>
86 </segmentedlist>
87
88 <variablelist>
89 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
90 <?dbfo list-presentation="list"?>
91 <?dbhtml list-presentation="table"?>
92
93 <varlistentry id="libhistory">
94 <term><filename class="libraryfile">libhistory</filename></term>
95 <listitem>
96 <para>Provides a consistent user interface
97 for recalling lines of history</para>
98 <indexterm zone="ch-system-readline libhistory">
99 <primary sortas="c-libhistory">libhistory</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="libreadline">
105 <term><filename class="libraryfile">libreadline</filename></term>
106 <listitem>
107 <para>Aids in the consistency of user interface
108 across discrete programs that need to provide a command line
109 interface</para>
110 <indexterm zone="ch-system-readline libreadline">
111 <primary sortas="c-libreadline">libreadline</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 </variablelist>
117
118 </sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.