|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
<title>Installation of Glibc</title>
|
|
|
-
|
|
|
+<!--
|
|
|
<note>
|
|
|
<para>Some packages outside of LFS suggest installing GNU libiconv in
|
|
|
order to translate data from one encoding to another. The project's
|
|
@@ -53,6 +53,13 @@
|
|
|
an <function>iconv()</function> implementation and can convert from/to
|
|
|
Unicode, therefore libiconv is not required on an LFS system.</para>
|
|
|
</note>
|
|
|
+-->
|
|
|
+ <note><para>The Glibc build system is self-contained and will install
|
|
|
+ perfectly, even though the compiler specs file and linker are still
|
|
|
+ pointing to <filename class="directory">/tools</filename>. The specs
|
|
|
+ and linker cannot be adjusted before the Glibc install because the
|
|
|
+ Glibc autoconf tests would give false results and defeat the goal
|
|
|
+ of achieving a clean build.</para></note>
|
|
|
|
|
|
<para>Some of the Glibc programs use non-FHS compilant
|
|
|
<filename class="directory">/var/db</filename> directory to store
|
|
@@ -61,26 +68,6 @@
|
|
|
|
|
|
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
|
|
|
|
|
|
- <para>The Glibc build system is self-contained and will install
|
|
|
- perfectly, even though the compiler specs file and linker are still
|
|
|
- pointing at <filename class="directory">/tools</filename>. The specs
|
|
|
- and linker cannot be adjusted before the Glibc install because the
|
|
|
- Glibc autoconf tests would give false results and defeat the goal
|
|
|
- of achieving a clean build.</para>
|
|
|
-<!--
|
|
|
- <para>Now fix a build problem that affects i386 systems:</para>
|
|
|
-
|
|
|
-<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen>
|
|
|
-
|
|
|
- <para>The most recent stable version of Glibc does not handle large files
|
|
|
- correctly. Fix the problem with this patch:</para>
|
|
|
-
|
|
|
-<screen><userinput remap="pre">patch -Np1 -i ../&glibc-largefile-patch;</userinput></screen>
|
|
|
-
|
|
|
- <para>Finally, update some recent changes from the upstream repository:</para>
|
|
|
-
|
|
|
-<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch2;</userinput></screen>
|
|
|
--->
|
|
|
<para>The Glibc documentation recommends building Glibc
|
|
|
in a dedicated build directory:</para>
|
|
|
|
|
@@ -138,27 +125,7 @@ cd build</userinput></screen>
|
|
|
<emphasis>nptl/tst-thread-affinity-{pthread,pthread2,sched}</emphasis>
|
|
|
tests may fail for reasons that have not been determined. </para>
|
|
|
</listitem>
|
|
|
-<!--
|
|
|
- <listitem>
|
|
|
- <para>The <emphasis>elf/tst-protected1a</emphasis> and
|
|
|
- <emphasis>elf/tst-protected1b</emphasis> tests are known to
|
|
|
- fail with the current stable version of binutils.</para>
|
|
|
- </listitem>
|
|
|
|
|
|
- <listitem>
|
|
|
- <para>When running on older and slower hardware or on systems under
|
|
|
- load, some tests can fail because of test timeouts being exceeded.
|
|
|
- Modifying the make check command to set a TIMEOUTFACTOR is reported to
|
|
|
- help eliminate these errors (e.g. <command>TIMEOUTFACTOR=16
|
|
|
- make -k check</command>).</para>
|
|
|
- </listitem>
|
|
|
--->
|
|
|
-<!--
|
|
|
- <listitem>
|
|
|
- <para>libio/tst-ftell-partial-wide.out fails because it needs a locale
|
|
|
- that has not yet been generated.</para>
|
|
|
- </listitem>
|
|
|
--->
|
|
|
<listitem>
|
|
|
<para>Other tests known to fail on some architectures are
|
|
|
malloc/tst-malloc-usable and nptl/tst-cleanupx4. </para>
|
|
@@ -182,10 +149,10 @@ cd build</userinput></screen>
|
|
|
<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
|
|
|
mkdir -pv /var/cache/nscd</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,
|
|
|
- but if some of them are missing, test suites of the future packages would
|
|
|
- skip important testcases.</para>
|
|
|
+ <para>Next, install the locales that can make the system respond in a
|
|
|
+ different language. None of the locales are required, but if some of them
|
|
|
+ are missing, the test suites of future packages would skip important
|
|
|
+ testcases.</para>
|
|
|
|
|
|
<para>Individual locales can be installed using the
|
|
|
<command>localedef</command> program. E.g., the first
|