source: chapter06/ncurses.xml@ 94ec149

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 ml-11.0 multilib trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since 94ec149 was 94ec149, checked in by Pierre Labastie <pieere@…>, 18 months ago

Add a switch to chapter 6 ncurses' configure so that it does not install
compressed manpages if the host distro has compressed manpages

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11932 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.5 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-tools-ncurses" role="wrap">
9 <?dbhtml filename="ncurses.html"?>
10
11 <sect1info condition="script">
12 <productname>ncurses</productname>
13 <productnumber>&ncurses-version;</productnumber>
14 <address>&ncurses-url;</address>
15 </sect1info>
16
17 <title>Ncurses-&ncurses-version;</title>
18
19 <indexterm zone="ch-tools-ncurses">
20 <primary sortas="a-Ncurses">Ncurses</primary>
21 <secondary>tools</secondary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title/>
26
27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
28 href="../chapter08/ncurses.xml"
29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&ncurses-tmp-sbu;</seg>
37 <seg>&ncurses-tmp-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Ncurses</title>
45
46 <para>First, ensure that <command>gawk</command> is found first during configuration:</para>
47
48<screen><userinput remap="pre">sed -i s/mawk// configure</userinput></screen>
49
50 <para>Then, run the following commands to build the <quote>tic</quote>
51 program on the build host:</para>
52
53<screen><userinput remap="pre">mkdir build
54pushd build
55 ../configure
56 make -C include
57 make -C progs tic
58popd</userinput></screen>
59
60 <para>Prepare Ncurses for compilation:</para>
61
62<screen><userinput remap="configure">./configure --prefix=/usr \
63 --host=$LFS_TGT \
64 --build=$(./config.guess) \
65 --mandir=/usr/share/man \
66 --with-manpage-format=normal \
67 --with-shared \
68 --without-debug \
69 --without-ada \
70 --without-normal \
71 --enable-widec \
72 --enable-pc-files</userinput></screen>
73
74 <variablelist>
75 <title>The meaning of the new configure options:</title>
76
77 <varlistentry>
78 <term><parameter>--with-manpage-format=normal</parameter></term>
79 <listitem>
80 <para>This prevents Ncurses installing compressed manual
81 pages, which may happen if the host distribution itself
82 has compressed manual pages.</para>
83 </listitem>
84 </varlistentry>
85
86 <varlistentry>
87 <term><parameter>--without-ada</parameter></term>
88 <listitem>
89 <para>This ensures that Ncurses does not build support for the Ada
90 compiler which may be present on the host but will not be available
91 once we enter the <command>chroot</command> environment.</para>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry>
96 <term><parameter>--enable-widec</parameter></term>
97 <listitem>
98 <para>This switch causes wide-character libraries (e.g., <filename
99 class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
100 to be built instead of normal ones (e.g., <filename
101 class="libraryfile">libncurses.so.&ncurses-version;</filename>).
102 These wide-character libraries are usable in both multibyte and
103 traditional 8-bit locales, while normal libraries work properly
104 only in 8-bit locales. Wide-character and normal libraries are
105 source-compatible, but not binary-compatible.</para>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry>
110 <term><parameter>--enable-pc-files</parameter></term>
111 <listitem>
112 <para>This switch generates and installs .pc files for pkg-config.
113 </para>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry>
118 <term><parameter>--without-normal</parameter></term>
119 <listitem>
120 <para>This switch disables building and installing most static libraries.
121 </para>
122 </listitem>
123 </varlistentry>
124 <!--
125 <varlistentry>
126 <term><parameter>- -disable-db-install</parameter></term>
127 <listitem>
128 <para>This switch disables building the terminfo database: it is not
129 needed at this stage, and if <command>tic</command> is too old,
130 it cannot compile recent databases.</para>
131 </listitem>
132 </varlistentry>
133 -->
134 </variablelist>
135
136 <para>Compile the package:</para>
137
138<screen><userinput remap="make">make</userinput></screen>
139
140 <para>Install the package:</para>
141<!-- TODO: check and document -->
142<screen><userinput remap="install">make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
143ln -s libncursesw.so $LFS/usr/lib/libncurses.so</userinput></screen>
144
145 <para>Move the shared libraries to the
146 <filename class="directory">/lib</filename> directory, where they are
147 expected to reside:</para>
148
149<screen><userinput remap="install">mv -v $LFS/usr/lib/libncursesw.so.6* $LFS/lib</userinput></screen>
150
151 <para>Because the libraries have been moved, one symlink points to
152 a non-existent file. Recreate it:</para>
153
154<screen><userinput remap="install">ln -sfv ../../lib/$(readlink $LFS/usr/lib/libncursesw.so) $LFS/usr/lib/libncursesw.so</userinput></screen>
155
156
157 </sect2>
158
159 <sect2 role="content">
160 <title/>
161
162 <para>Details on this package are located in
163 <xref linkend="contents-ncurses" role="."/></para>
164
165 </sect2>
166
167</sect1>
Note: See TracBrowser for help on using the repository browser.