Bläddra i källkod

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
Jeremy Huntwork 20 år sedan
förälder
incheckning
ba098b62b0
3 ändrade filer med 18 tillägg och 26 borttagningar
  1. 5 0
      chapter01/changelog.xml
  2. 11 24
      chapter05/gettext.xml
  3. 2 2
      general.ent

+ 5 - 0
chapter01/changelog.xml

@@ -114,6 +114,11 @@ First a summary, then a detailed log.</para>
 </itemizedlist>
 </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
 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

+ 11 - 24
chapter05/gettext.xml

@@ -27,44 +27,31 @@
 <sect2 role="installation">
 <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>
 
-<screen><userinput>./configure --prefix=/tools --disable-libasprintf \
-    --without-csharp</userinput></screen>
+<screen><userinput>cd gettext-tools
+./configure --prefix=/tools --disable-shared</userinput></screen>
 
 <para>The meaning of the configure options:</para>
 
 <variablelist>
 <varlistentry>
-<term><parameter>--disable-libasprintf</parameter></term>
-<listitem><para>This flag tells Gettext not to build the
-<filename class="libraryfile">asprintf</filename> library. Because nothing in this 
-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>
+<term><parameter>--disable-shared</parameter></term>
+<listitem><para>We are not installing any of the gettext libraries at this
+time so we need to build <command>msgfmt</command> as a static binary.</para></listitem>
 </varlistentry>
 </variablelist>
 
 <para>Compile the package:</para>
 
-<screen><userinput>make</userinput></screen>
-
-<para>To test the results, issue: <userinput>make check</userinput>.
-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>
+<screen><userinput>make -C lib
+make -C src msgfmt</userinput></screen>
 
-<para>Install the package:</para>
+<para>Install the single static binary:</para>
 
-<screen><userinput>make install</userinput></screen>
+<screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
 
 </sect2>
 

+ 2 - 2
general.ent

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