From f991b5439179665973ed7f38a72dac4c3c5178f6 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Thu, 2 Jan 2003 21:03:15 +0000 Subject: updated patch explanation git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2267 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/glibc-inst.xml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index ff2840477..99960aca5 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -36,14 +36,24 @@ username to userid resolving isn't working yet, so a if you use the numeric IDs (such as chown 0 file). -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 /static/bin 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. +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). + +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 +segmentation faults. This patch undoes a few of the +changes to overcome the problem. + +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. patch -Np1 -i ../glibc-&glibc-patch-version;.patch -- cgit v1.2.3-54-g00ecf