From 711166645184366f4d0b09b34cbbeebae9ae5cd3 Mon Sep 17 00:00:00 2001 From: Jim Gifford Date: Mon, 6 Dec 2004 18:24:50 +0000 Subject: Updates to findutils, util-linux, and iproute2. More library changes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4359 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 11 +++++++++-- chapter03/patches.xml | 7 +++++++ chapter06/iproute2.xml | 6 ++++++ chapter06/readline.xml | 5 +++++ chapter06/shadow.xml | 9 +++++---- chapter06/zlib.xml | 5 +++++ 6 files changed, 37 insertions(+), 6 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 94c192baa..7ffe304ae 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -20,10 +20,11 @@ of the LFS Book. Upgraded to: binutils-2.15.94.0.1 -findutils-4.2.8 +findutils-4.2.9 gcc-3.4.3 glibc-20041122 perl-5.8.6 +util-linux-2.12j @@ -40,10 +41,16 @@ of the LFS Book. --> +December 6th, 2004 [jim]: Fixes a few typo's done by me. +Added a patch for IPRoute2 to fix usage with the newer findutils. +Updated Readline and Zlib library location changes. +Bumped findutils to 4.2.9 and util-linux 2.12j. +Used the same methodology used on zlib and readline on shadow. + December 4th, 2004 [jeremy]: Added binutils fix_strip patch December 3rd, 2004 [jim]: Changed readline and zlib instructions -to use --libdir for the libraries. Dumped perl to 5.8.6. Corrected wording in +to use --libdir for the libraries. Bumped perl to 5.8.6. Corrected wording in readline. December 1st, 2004 [jeremy]: Minor entity revisions in the XML diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 582f30486..dfdec7ea3 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -106,6 +106,13 @@ following: + +IPRoute2 Find Update Patch - 1 KB: + + + + + Man 80-Columns Patch - 1 KB: diff --git a/chapter06/iproute2.xml b/chapter06/iproute2.xml index f3ddc2699..0401b4701 100644 --- a/chapter06/iproute2.xml +++ b/chapter06/iproute2.xml @@ -42,6 +42,12 @@ patch -Np1 -i ../iproute2-&iproute2-patch-version;-remove_db-1.patch + The patch below fixes the issue with the newer versions of findutils, + the issue will give an error message it options are not in the proper order. + This patch corrects this issue for IPRoute2. + + patch -Np1 -i ../iproute2-&iproute2-patch-version;-find_update-1.patch + Prepare iproute2 for compilation: ./configure diff --git a/chapter06/readline.xml b/chapter06/readline.xml index 482c356a3..e437e3adc 100644 --- a/chapter06/readline.xml +++ b/chapter06/readline.xml @@ -53,6 +53,11 @@ sometimes will only show 33 characters on a line and then wrap to the next line. mv /lib/lib{readline,history}.a /usr/lib +Now we will remove the old, .so files in /lib and relink them into /usr/lib. + +rm /lib/lib{readline,history}.so +ln -sf ../../lib/libreadline.so.5 /usr/lib/libreadline.so +ln -sf ../../lib/libhistory.so.5 /usr/lib/libhistory.so diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml index a753e7ce3..c469fb3e8 100644 --- a/chapter06/shadow.xml +++ b/chapter06/shadow.xml @@ -31,7 +31,7 @@ Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed Prepare Shadow for compilation: -./configure --libdir=/usr/lib --enable-shared +./configure --libdir=/lib --enable-shared Compile the package: @@ -64,14 +64,15 @@ sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ mv /usr/bin/passwd /bin -And move Shadow's dynamic libraries to a more appropriate location: +And move Shadow's static library to a more appropriate location: -mv /usr/lib/libshadow.so.0* /lib +mv /lib/libshadow.*a /usr/lib As some packages expect to find the just-moved libraries in /usr/lib, create the following symlinks: -ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so +rm /usr/lib/libshadow.so +ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so The -D option of the useradd program requires this directory for it to work properly: diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index f32d235e8..f907e1455 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -49,6 +49,11 @@ afterwards. make install +Now we will remove the old, .so files in /lib and relink them into /usr/lib. + +rm /lib/libz.so +ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so + Now also build the non-shared (static) library: make clean -- cgit v1.2.3-54-g00ecf