source: chapter06/ncurses.xml@ fb386e0

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 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 fb386e0 was fb386e0, checked in by Thomas Trepl <thomas@…>, 4 years ago

Rename package entities to be independent of chapter numbering

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

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