gettext.xml 2.6 KB

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