From 4028929287b97b607b89392384eead98aaad9b9d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 18 Feb 2014 18:46:43 +0000 Subject: Add a patch to glibc for FHS compatibility. More text/whitespace changes. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10482 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter03/patches.xml | 8 ++++++++ chapter05/xz.xml | 6 +++--- chapter06/flex.xml | 8 ++++---- chapter06/glibc.xml | 18 ++++++++++++++++-- chapter06/mpfr.xml | 6 +++--- chapter06/xz.xml | 4 ++-- patches.ent | 4 ++++ 7 files changed, 40 insertions(+), 14 deletions(-) diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 705542e34..d026cbc74 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -42,6 +42,14 @@ + + Glibc FHS Patch - &glibc-fhs-patch-size;: + + Download: + MD5 sum: &glibc-fhs-patch-md5; + + + Kbd Backspace/Delete Fix Patch - &kbd-backspace-patch-size;: diff --git a/chapter05/xz.xml b/chapter05/xz.xml index 45be49fb6..ea1ea4966 100644 --- a/chapter05/xz.xml +++ b/chapter05/xz.xml @@ -6,10 +6,10 @@ ]> - + - xz-utils + xz &xz-version;
&xz-url;
@@ -41,7 +41,7 @@ - Installation of Xz-Utils + Installation of Xz Prepare Xz for compilation: diff --git a/chapter06/flex.xml b/chapter06/flex.xml index 8ec53658b..28d50e9a9 100644 --- a/chapter06/flex.xml +++ b/chapter06/flex.xml @@ -140,12 +140,12 @@ chmod -v 755 /usr/bin/lex
- - libfl.so + + libfl The flex library - - libfl.so + + libfl diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index c88b6a6b0..d64b81219 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -58,6 +58,13 @@ sed -i 's/\\$$(pwd)/`pwd`/' timezone/Makefile + Some of the Glibc programs use non-FHS compilant + /var/db directory to store + their runtime data. Apply the following patch to make such programs + store their runtime data in the FHS-compliant locations: + +patch -Np1 -i ../&glibc-fhs-patch; + The Glibc build system is self-contained and will install perfectly, even though the compiler specs file and linker are still pointing at /tools. The specs @@ -168,6 +175,12 @@ grep Error glibc-check-log make install + Install the configuration file and runtime directory for + nscd: + +cp -v ../glibc-&glibc-version;/nscd/nscd.conf /etc/nscd.conf +mkdir -pv /var/cache/nscd + 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 @@ -413,8 +426,9 @@ mkdir -pv /etc/ld.so.conf.d /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket, /usr/include/netrom, /usr/include/netrose, /usr/include/nfs, /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc, - /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/glibc, - /usr/lib/locale, /usr/share/i18n, /usr/share/zoneinfo, /var/db + /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale, + /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo, + /var/cache/nscd, and /var/lib/nss_db diff --git a/chapter06/mpfr.xml b/chapter06/mpfr.xml index 00bb8e164..708101891 100644 --- a/chapter06/mpfr.xml +++ b/chapter06/mpfr.xml @@ -43,9 +43,9 @@ Prepare MPFR for compilation: -./configure --prefix=/usr \ - --enable-thread-safe \ - --docdir=/usr/share/doc/mpfr-&mpfr-version; +./configure --prefix=/usr \ + --enable-thread-safe \ + --docdir=/usr/share/doc/mpfr-&mpfr-version; Compile the package: diff --git a/chapter06/xz.xml b/chapter06/xz.xml index c90409a16..67594d2d4 100644 --- a/chapter06/xz.xml +++ b/chapter06/xz.xml @@ -6,10 +6,10 @@ ]> - + - xz-utils + xz &xz-version;
&xz-url;
diff --git a/patches.ent b/patches.ent index 9294ff8de..cb833999e 100644 --- a/patches.ent +++ b/patches.ent @@ -14,6 +14,10 @@ + + + + -- cgit v1.2.3-54-g00ecf