From ba098b62b0afc86a89e278aef2633a0c46dcf538 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Tue, 15 Nov 2005 00:53:24 +0000 Subject: [PATCH] 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 --- chapter01/changelog.xml | 5 +++++ chapter05/gettext.xml | 35 +++++++++++------------------------ general.ent | 4 ++-- 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 6f8833874..f6c39ab3b 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -114,6 +114,11 @@ First a summary, then a detailed log. +November 14, 2005 [jhuntwork]: Only install msgfmt +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. + 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 diff --git a/chapter05/gettext.xml b/chapter05/gettext.xml index 7957209ac..422ffb022 100644 --- a/chapter05/gettext.xml +++ b/chapter05/gettext.xml @@ -27,44 +27,31 @@ Installation of Gettext +For our temporary set of tools, we only need to build and install one binary from gettext. + Prepare Gettext for compilation: -./configure --prefix=/tools --disable-libasprintf \ - --without-csharp +cd gettext-tools +./configure --prefix=/tools --disable-shared The meaning of the configure options: ---disable-libasprintf -This flag tells Gettext not to build the -asprintf library. Because nothing in this -chapter or the next requires this library and Gettext gets rebuilt later, -exclude it to save time and space. - - - ---without-csharp -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 chroot environment. +--disable-shared +We are not installing any of the gettext libraries at this +time so we need to build msgfmt as a static binary. Compile the package: -make +make -C lib +make -C src msgfmt -To test the results, issue: make check. -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 -. +Install the single static binary: -Install the package: - -make install +cp -v src/msgfmt /tools/bin diff --git a/general.ent b/general.ent index bc4fc29ed..cd39cef33 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + +