mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-21 12:49:21 +01:00
updated patch explanation
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2267 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
ada6eeb93c
commit
f991b54391
@ -36,14 +36,24 @@ username to userid resolving isn't working yet, so a
|
||||
if you use the numeric IDs (such as <userinput>chown 0
|
||||
file</userinput>).</para></listitem>
|
||||
|
||||
<listitem><para>Lastly, the patch also fixes a problem that causes
|
||||
statically linked binaries to crash that were linked against Glibc-2.2
|
||||
libraries. This patch is only needed temporarily because we have static
|
||||
programs in <filename class="directory">/static/bin</filename> that might
|
||||
be linked against an older Glibc version (the one from the host
|
||||
distribution). We will install Glibc again at the end of this chapter to
|
||||
remove this patch so you'll have a pristine Glibc as the developers
|
||||
intended it.</para></listitem>
|
||||
<listitem><para>It fixes a problem that causes statically linked binaries
|
||||
to crash that were linked against Glibc-2.2 libraries. Even though static
|
||||
binaries have all the necessary parts of Glibc built-in, they still rely
|
||||
on one external library: Glibc's NSS libraries. These libraries, among
|
||||
other things, tell programs where the system's password database is
|
||||
(/etc/password, or NIS, or whatever other scheme has been
|
||||
configured).</para>
|
||||
|
||||
<para>Glibc has undergone some changes since version
|
||||
2.2.x and the new NSS code is incompatible with the old one. So when Glibc
|
||||
is installed, it will install its new NSS libraries and static programs
|
||||
will load these new NSS libraries and start to abort with
|
||||
<emphasis>segmentation faults</emphasis>. This patch undoes a few of the
|
||||
changes to overcome the problem.</para>
|
||||
|
||||
<para>We will install Glibc again at the end of this chapter to remove this
|
||||
patch so you'll have a pristine Glibc as the developers intended
|
||||
it.</para></listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../glibc-&glibc-patch-version;.patch</userinput></screen></para>
|
||||
|
Loading…
Reference in New Issue
Block a user