|
@@ -67,7 +67,7 @@
|
|
|
<ulink url="&blfs-root;view/svn/general/libidn.html"/>).
|
|
|
Unpack the tarball from within the Glibc source directory:</para>
|
|
|
|
|
|
-<screen><userinput>tar -xvf ../glibc-libidn-&glibc-version;.tar.gz
|
|
|
+<screen><userinput remap="pre">tar -xvf ../glibc-libidn-&glibc-version;.tar.gz
|
|
|
mv glibc-libidn-&glibc-version; libidn</userinput></screen>
|
|
|
|
|
|
<para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
|
|
@@ -75,7 +75,7 @@ mv glibc-libidn-&glibc-version; libidn</userinput></screen>
|
|
|
Glibc problem. Disable installation of this locale in order to avoid the
|
|
|
problem:</para>
|
|
|
|
|
|
-<screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
|
|
|
+<screen><userinput remap="pre">sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
|
|
|
|
|
|
<para>When running <command>make install</command>, a script called
|
|
|
<filename>test-installation.pl</filename> performs a small sanity test on
|
|
@@ -84,7 +84,7 @@ mv glibc-libidn-&glibc-version; libidn</userinput></screen>
|
|
|
test would be carried out against the wrong Glibc. We can force the script
|
|
|
to check the Glibc we have just installed with the following:</para>
|
|
|
|
|
|
-<screen><userinput>DL=$(readelf -l /bin/sh | grep interpreter | \
|
|
|
+<screen><userinput remap="pre">DL=$(readelf -l /bin/sh | grep interpreter | \
|
|
|
awk '{print $4}' | sed -e 's@/tools@@' -e 's@]$@@')
|
|
|
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
|
|
|
scripts/test-installation.pl
|
|
@@ -96,22 +96,22 @@ unset DL</userinput></screen>
|
|
|
<ulink url="&blfs-root;view/svn/postlfs/shells.html">Shells</ulink>
|
|
|
chapter of the BLFS book:</para>
|
|
|
|
|
|
-<screen><userinput>sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in</userinput></screen>
|
|
|
+<screen><userinput remap="pre">sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in</userinput></screen>
|
|
|
|
|
|
<para>The Glibc documentation recommends building Glibc outside of the source
|
|
|
directory in a dedicated build directory:</para>
|
|
|
|
|
|
-<screen><userinput>mkdir -v ../glibc-build
|
|
|
+<screen><userinput remap="pre">mkdir -v ../glibc-build
|
|
|
cd ../glibc-build</userinput></screen>
|
|
|
|
|
|
<para>Again, add the needed compiler flag to CFLAGS for x86 machines:</para>
|
|
|
|
|
|
-<screen><userinput>uname -m | grep -q i?86 &&
|
|
|
+<screen><userinput remap="configure">uname -m | grep -q i?86 &&
|
|
|
echo "CFLAGS += -march=i486" > configparms</userinput></screen>
|
|
|
|
|
|
<para>Prepare Glibc for compilation:</para>
|
|
|
|
|
|
-<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
|
|
+<screen><userinput remap="configure">../glibc-&glibc-version;/configure --prefix=/usr \
|
|
|
--disable-profile --enable-add-ons \
|
|
|
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
|
|
|
|
|
@@ -132,7 +132,7 @@ echo "CFLAGS += -march=i486" > configparms</userinput></screen>
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
-<screen><userinput>make</userinput></screen>
|
|
|
+<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
|
<important>
|
|
|
<para>In this section, the test suite for Glibc is considered critical.
|
|
@@ -141,7 +141,7 @@ echo "CFLAGS += -march=i486" > configparms</userinput></screen>
|
|
|
|
|
|
<para>Test the results:</para>
|
|
|
|
|
|
-<screen><userinput>make -k check 2>&1 | tee glibc-check-log
|
|
|
+<screen><userinput remap="test">make -k check 2>&1 | tee glibc-check-log
|
|
|
grep Error glibc-check-log</userinput></screen>
|
|
|
|
|
|
<para>You will probably see an expected (ignored) failure in the
|
|
@@ -183,11 +183,11 @@ grep Error glibc-check-log</userinput></screen>
|
|
|
complain about the absence of <filename>/etc/ld.so.conf</filename>.
|
|
|
Prevent this warning with:</para>
|
|
|
|
|
|
-<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
|
|
|
+<screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
-<screen><userinput>make install</userinput></screen>
|
|
|
+<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
|
|
<para>The locales that can make the system respond in a different language
|
|
|
were not installed by the above command. None of the locales are required,
|
|
@@ -205,7 +205,7 @@ grep Error glibc-check-log</userinput></screen>
|
|
|
The following instructions will install the minimum set of
|
|
|
locales necessary for the optimal coverage of tests:</para>
|
|
|
|
|
|
-<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
|
|
|
+<screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
|
|
|
localedef -i de_DE -f ISO-8859-1 de_DE
|
|
|
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
|
|
localedef -i en_HK -f ISO-8859-1 en_HK
|
|
@@ -228,7 +228,7 @@ localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
|
|
(it includes every locale listed above and many more) at once with the
|
|
|
following time-consuming command:</para>
|
|
|
|
|
|
-<screen><userinput>make localedata/install-locales</userinput></screen>
|
|
|
+<screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
|
|
|
|
|
|
<para>Then use the <command>localedef</command> command to create and
|
|
|
install locales not listed in the
|