From ac55dee003da1b562812df6af4b1d9f5bb4f7939 Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Wed, 12 May 2004 19:58:19 +0000 Subject: Fixed bug #307 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3562 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/coreutils.xml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'chapter06') diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index 0a98f0ff2..c65ca6a34 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -30,11 +30,10 @@ architectures: patch -Np1 -i ../coreutils-&coreutils-version;-uname-2.patch -We do not want Coreutils to install its version of the -hostname program, because it is inferior to the version -provided by Net-tools. Prevent its installation by applying a patch: +Prevent Coreutils from installing binaries that will be later be installed +by other programs: -patch -Np1 -i ../coreutils-&coreutils-version;-hostname-1.patch +patch -Np1 -i ../coreutils-&coreutils-version;-dupes-1.patch Now prepare Coreutils for compilation: @@ -50,13 +49,6 @@ therefore have to set up a few things before being able to run the tests. If you choose not to run these tests, skip down to Install the package. -To be able to run the full test suite, the su program -needs to be installed. We didn't bother to install this little program in - because it requires root privileges, -so do it now: - -make install-root - Create two dummy groups and a dummy user name: echo "dummy1:x:1000" >> /etc/group @@ -71,7 +63,7 @@ are meant to be run as root: Then run the remainder of the tests as the dummy user: -su dummy -c "make RUN_EXPENSIVE_TESTS=yes check" +src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check" When you're done testing, remove the dummy user and groups: @@ -86,15 +78,9 @@ user: mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin mv /usr/bin/{date,echo,false,head,install,ln,ls} /bin mv /usr/bin/{mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin -mv /usr/bin/{sleep,stty,su,test,touch,true,uname} /bin +mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin mv /usr/bin/chroot /usr/sbin -We'll be using the kill program from the Procps -package (installed as /bin/kill later in the chapter). -Remove the one installed by Coreutils: - -rm /usr/bin/kill - Finally, create a symlink to be FHS-compliant: ln -s ../../bin/install /usr/bin -- cgit v1.2.3-54-g00ecf