Details on this package are located in Section 10.93.2, “Contents of Gettext.”
The Gettext package contains utilities for internationalization and localization. These allow programs to be compiled with NLS (Native Language Support), enabling them to output messages in the user's native language.
Many packages' installation procedures use the msgfmt program for i18n support,
so we will compile and install it into /tools
. Attr also needs msgmerge and xgettext, so we will install
those as well.
Only the programs in the gettext-tools
directory need to be installed for
the temp-system:
cd gettext-tools
When cross-compiling, the Gettext configure script assumes we don't have a working wcwidth even when when we do. The following will fix possible compilation errors because of this assumption:
echo "gl_cv_func_wcwidth_works=yes" > config.cache
Prepare Gettext for compilation:
./configure --prefix=/tools \ --build=${CLFS_HOST} --host=${CLFS_TARGET} \ --disable-shared --cache-file=config.cache
Compile the required programs and support library:
make -C gnulib-lib make -C src msgfmt msgmerge xgettext
Install the msgfmt, msgmerge and xgettext binaries:
cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin
Details on this package are located in Section 10.93.2, “Contents of Gettext.”