gettext.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-tools-gettext" role="wrap">
  9. <title>Gettext-&gettext-version;</title>
  10. <?dbhtml filename="gettext.html"?>
  11. <indexterm zone="ch-tools-gettext">
  12. <primary sortas="a-Gettext">Gettext</primary>
  13. <secondary>tools</secondary></indexterm>
  14. <sect2 role="package"><title/>
  15. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem><seg>0.5 SBU</seg><seg>63.0 MB</seg></seglistitem>
  20. </segmentedlist>
  21. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Gettext</title>
  25. <para>Prepare Gettext for compilation:</para>
  26. <screen><userinput>./configure --prefix=/tools --disable-libasprintf \
  27. --without-csharp</userinput></screen>
  28. <para>The meaning of the configure options:</para>
  29. <variablelist>
  30. <varlistentry>
  31. <term><parameter>--disable-libasprintf</parameter></term>
  32. <listitem><para>This flag tells Gettext not to build the
  33. <filename class="libraryfile">asprintf</filename> library. Because nothing in this
  34. chapter or the next requires this library and Gettext gets rebuilt later,
  35. exclude it to save time and space.</para></listitem>
  36. </varlistentry>
  37. <varlistentry>
  38. <term><parameter>--without-csharp</parameter></term>
  39. <listitem><para>This ensures that Gettext does not build support for the C#
  40. compiler which may be present on the host but will not be available once we
  41. enter the <command>chroot</command> environment.</para></listitem>
  42. </varlistentry>
  43. </variablelist>
  44. <para>Compile the package:</para>
  45. <screen><userinput>make</userinput></screen>
  46. <para>To test the results, issue: <userinput>make check</userinput>.
  47. This takes quite some time, around 7 SBUs. The Gettext test suite is
  48. known to experience failures under certain host conditions, for
  49. example when it finds a Java compiler on the host. An experimental
  50. patch to disable Java is available from the LFS Patches project at
  51. <ulink url="&lfs-root;patches/"/>.</para>
  52. <para>Install the package:</para>
  53. <screen><userinput>make install</userinput></screen>
  54. </sect2>
  55. <sect2 role="content"><title/>
  56. <para>Details on this package are located in <xref linkend="contents-gettext" role="."/></para>
  57. </sect2>
  58. </sect1>