source: BOOK/temp-system/common/gettext.xml@ 5fe371f

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 5fe371f was 227ae5a, checked in by Chris Staub <chris@…>, 11 years ago

Added more explanatory text about rationale for including packages in the temp-system

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-temp-system-gettext" role="wrap">
9 <?dbhtml filename="gettext.html"?>
10
11 <title>Gettext-&gettext-version;</title>
12
13 <indexterm zone="ch-temp-system-gettext">
14 <primary sortas="a-Gettext">Gettext</primary>
15 <secondary>temporary system</secondary>
16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[d0c5f50]19 href="../../final-system/common/gettext.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
23 <title>Installation of Gettext</title>
24
[227ae5a]25 <para os="i">Many packages' installation procedures use the
26 <command>msgfmt</command> program for i18n support, so we will compile
27 and install it into <filename class="directory">/tools</filename>.</para>
28
[3fc19cd]29 <para os="a">Only the programs in the
30 <filename class="directory">gettext-tools</filename> directory need to be
31 installed for the temp-system:</para>
[3f8be484]32
[3fc19cd]33<screen os="b"><userinput>cd gettext-tools</userinput></screen>
[3f8be484]34
[5067b0b]35 <para os="t1">When cross-compiling, the Gettext
36 <command>configure</command> script assumes we don't have a working wcwidth
37 even when when we do. The following will fix possible
[9915fd89]38 compilation errors because of this assumption:</para>
39
[1b274255]40<screen os="t2"><userinput>echo "gl_cv_func_wcwidth_works=yes" &gt; config.cache</userinput></screen>
[9915fd89]41
[1bc8e5f]42 <para os="c">Prepare Gettext for compilation:</para>
[3f8be484]43
[351f3e1f]44<screen os="d"><userinput>./configure --prefix=/tools \
[09c4c90]45 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
[9915fd89]46 --disable-shared --cache-file=config.cache</userinput></screen>
[3f8be484]47
[bff7a17]48 <para os="e">Compile the required program and support library:</para>
[3f8be484]49
[852824db]50<screen os="f"><userinput>make -C gnulib-lib
[bff7a17]51make -C src msgfmt</userinput></screen>
[3f8be484]52
[bff7a17]53 <para os="g">Install the <command>msgfmt</command> binary:</para>
[3f8be484]54
[bff7a17]55<screen os="h"><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
[3f8be484]56
57 </sect2>
58
59 <sect2 role="content">
60 <title/>
61
62 <para>Details on this package are located in <xref
63 linkend="contents-gettext" role="."/></para>
64
65 </sect2>
66
67</sect1>
Note: See TracBrowser for help on using the repository browser.