Reduce commands for gettext in chapter 5. Thanks to Greg Schafer.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7152 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Jeremy Huntwork 2005-11-15 00:53:24 +00:00
parent ac1d807e5b
commit ba098b62b0
3 changed files with 18 additions and 26 deletions

View File

@ -114,6 +114,11 @@ First a summary, then a detailed log.</para>
</itemizedlist> </itemizedlist>
</listitem> </listitem>
<listitem><para>November 14, 2005 [jhuntwork]: Only install <command>msgfmt</command>
from gettext in chapter 5. This is all that is necessary and prevents gettext
from trying to pull in unnecessary elements from the host. Thanks to Greg Schafer
for pointing this out.</para></listitem>
<listitem><para>November 12, 2005 [matt]: Improve the heuristic for determining <listitem><para>November 12, 2005 [matt]: Improve the heuristic for determining
a locale that is supported by both Glibc and packages outside LFS (bug 1642). a locale that is supported by both Glibc and packages outside LFS (bug 1642).
Many thanks to Alexander Patrakov for highlighting the numerous issues and for Many thanks to Alexander Patrakov for highlighting the numerous issues and for

View File

@ -27,44 +27,31 @@
<sect2 role="installation"> <sect2 role="installation">
<title>Installation of Gettext</title> <title>Installation of Gettext</title>
<para>For our temporary set of tools, we only need to build and install one binary from gettext.</para>
<para>Prepare Gettext for compilation:</para> <para>Prepare Gettext for compilation:</para>
<screen><userinput>./configure --prefix=/tools --disable-libasprintf \ <screen><userinput>cd gettext-tools
--without-csharp</userinput></screen> ./configure --prefix=/tools --disable-shared</userinput></screen>
<para>The meaning of the configure options:</para> <para>The meaning of the configure options:</para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term><parameter>--disable-libasprintf</parameter></term> <term><parameter>--disable-shared</parameter></term>
<listitem><para>This flag tells Gettext not to build the <listitem><para>We are not installing any of the gettext libraries at this
<filename class="libraryfile">asprintf</filename> library. Because nothing in this time so we need to build <command>msgfmt</command> as a static binary.</para></listitem>
chapter or the next requires this library and Gettext gets rebuilt later,
exclude it to save time and space.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>--without-csharp</parameter></term>
<listitem><para>This ensures that Gettext does not build support for the C#
compiler which may be present on the host but will not be available once we
enter the <command>chroot</command> environment.</para></listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
<para>Compile the package:</para> <para>Compile the package:</para>
<screen><userinput>make</userinput></screen> <screen><userinput>make -C lib
make -C src msgfmt</userinput></screen>
<para>To test the results, issue: <userinput>make check</userinput>. <para>Install the single static binary:</para>
This takes quite some time, around 7 SBUs. The Gettext test suite is
known to experience failures under certain host conditions, for
example when it finds a Java compiler on the host. An experimental
patch to disable Java is available from the LFS Patches project at
<ulink url="&lfs-root;patches/"/>.</para>
<para>Install the package:</para> <screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
<screen><userinput>make install</userinput></screen>
</sect2> </sect2>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!ENTITY version "SVN-20051112"> <!ENTITY version "SVN-20051114">
<!ENTITY releasedate "November 12, 2005"> <!ENTITY releasedate "November 14, 2005">
<!ENTITY milestone "6.2"> <!ENTITY milestone "6.2">
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->