From 972014586e742e763dda2347d614d38e0f82223b Mon Sep 17 00:00:00 2001 From: Timothy Bauscher Date: Sun, 11 May 2003 17:03:47 +0000 Subject: Added the rest of Zack's patches. Totally missed them before. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2561 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/bzip2-inst.xml | 3 ++- chapter06/coreutils-inst.xml | 32 +++++++++++++++++++++++++------- chapter06/gcc-inst.xml | 1 + chapter06/nettools-inst.xml | 10 +--------- chapter06/zlib-inst.xml | 17 +++++++++++------ 5 files changed, 40 insertions(+), 23 deletions(-) (limited to 'chapter06') diff --git a/chapter06/bzip2-inst.xml b/chapter06/bzip2-inst.xml index afbd5ee37..fdcee6fd4 100644 --- a/chapter06/bzip2-inst.xml +++ b/chapter06/bzip2-inst.xml @@ -5,7 +5,8 @@ Begin compiling the package: -make -f Makefile-libbz2_so +make -f Makefile-libbz2_so && +make clean The -f flag will cause bzip2 to be built using a different Makefile file, in this case the diff --git a/chapter06/coreutils-inst.xml b/chapter06/coreutils-inst.xml index d57a9b490..5947d38c9 100644 --- a/chapter06/coreutils-inst.xml +++ b/chapter06/coreutils-inst.xml @@ -3,18 +3,36 @@ Installation of Coreutils -./configure --prefix=/usr -make -make install -mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin && +Normally the functionality of uname is somewhat broken, in that +the -p switch always returns "unknown". This patch fixes that behaviour: + +patch -Np1 -i ../coreutils-&coreutils-patch-version;.patch + +Prepare Coreutils to be compiled: + +./configure --prefix=/usr + +Continue with compiling the package: + +make + +Install the package: + +make install + +Move files to their proper locations: + +mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin && mv /usr/bin/{dir,dircolors,du,date,echo,false,head} /bin && mv /usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} /bin && mv /usr/bin/{rm,rmdir,shred,sync,sleep,stty,su,test} /bin && mv /usr/bin/{touch,true,uname,vdir} /bin -mv /usr/bin/chroot /usr/sbin -ln -s test /bin/[ -ln -s ../../bin/install /usr/bin +mv /usr/bin/chroot /usr/sbin + +Finally, create a few necessary symlinks +ln -s test /bin/[ +ln -s ../../bin/install /usr/bin diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index 0d35d818c..c0c228afd 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -75,5 +75,6 @@ symlink: ln -s gcc /usr/bin/cc rm /usr/lib/libiberty.a +rm /usr/include/libiberty.h diff --git a/chapter06/nettools-inst.xml b/chapter06/nettools-inst.xml index 88a75637c..daeff400a 100644 --- a/chapter06/nettools-inst.xml +++ b/chapter06/nettools-inst.xml @@ -25,15 +25,7 @@ the questions generated by make by running Finish installing the package: -make update - -The update option to make -works similarly to the install option, with one -exception: it doesn't make backups of files it's replacing. - -If you decide to reinstall this package at some point in the -future, a make update won't backup all the files -from a previous net-tools installation. +make install diff --git a/chapter06/zlib-inst.xml b/chapter06/zlib-inst.xml index 1de4994c3..268b7c66c 100644 --- a/chapter06/zlib-inst.xml +++ b/chapter06/zlib-inst.xml @@ -14,18 +14,23 @@ so by applying this patch: CFLAGS="$CFLAGS -fPIC" \     ./configure --prefix=/usr --shared + make clean + ./configure --prefix=/usr + make + make install + The -fPIC flag helps to assure quality in the dynamic zlib library. -Some packages expect a static zlib library to be present -on the system. To satisfy those programs, compile both the -shared and static libraries: - -make LIBS="libz.so.1.1.4 libz.a" +make Install the libraries: -make LIBS="libz.so.1.1.4 libz.a" install +make install && +make clean && +./configure --prefix=/usr && +make && +make install The shared zlib library should be installed in the /lib directory. That way, in the event -- cgit v1.2.3-54-g00ecf