diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 3454ddd05..ee5f8662f 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -36,7 +36,22 @@
-->
- 2013-02-06
+ 2013-02-11
+
+
+ [krejzi] - Added a patch to Glibc that removes
+ references to /var/db and replaces it with FHS-compliant
+ location.
+
+
+ [krejzi] - Added instructions to install nscd configuration
+ file and runtime directory.
+
+
+
+
+
+ 2013-02-10
[krejzi] - Modified Util-Linux instructions to
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml
index 80bd4cf60..aa8bc2f73 100644
--- a/chapter06/glibc.xml
+++ b/chapter06/glibc.xml
@@ -61,6 +61,13 @@
Glibc autoconf tests would give false results and defeat the goal
of achieving a clean build.
+ 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 documentation recommends building Glibc outside of the source
directory in a dedicated build directory:
@@ -69,22 +76,26 @@ cd ../glibc-build
Prepare Glibc for compilation:
-../glibc-&glibc-version;/configure \
- --prefix=/usr \
- --disable-profile \
- --enable-kernel=2.6.25 \
- --libexecdir=/usr/lib/glibc
+
+../glibc-&glibc-version;/configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --disable-profile \
+ --enable-kernel=2.6.25
The meaning of the new configure options:
- --libexecdir=/usr/lib/glibc
+ --libexecdir=/usr/lib
This changes the location of the pt_chown
- program from its default of getconf directory
+ from their default install location of /usr/libexec to /usr/lib/glibc.
+ class="directory">/usr/lib.
@@ -162,6 +173,12 @@ grep Error glibc-check-log
cp -v ../glibc-&glibc-version;/sunrpc/rpcsvc/*.h /usr/include/rpcsvc
cp -v ../glibc-&glibc-version;/nis/rpcsvc/*.h /usr/include/rpcsvc
+ Install the configuration file and runtime directory for
+ nscd:
+
+install -v -m644 ../glibc-&glibc-version;/nscd/nscd.conf /etc/nscd.conf &&
+install -v -dm755 /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
@@ -425,8 +442,9 @@ mkdir /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/getconf,
+ /usr/lib/locale, /usr/share/i18n, /usr/share/zoneinfo, /var/cache/nscd,
+ and /var/lib/nss_db
diff --git a/general.ent b/general.ent
index 160ac7935..02ba59fdb 100644
--- a/general.ent
+++ b/general.ent
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/patches.ent b/patches.ent
index 31a933e4e..5601e86c9 100644
--- a/patches.ent
+++ b/patches.ent
@@ -26,6 +26,10 @@
+
+
+
+