lib64 is not removed when cleaning the LFS dir

Pierre Labastie pierre.labastie at neuf.fr
Sun Dec 30 07:00:09 PST 2012


Hi,

In the current jhalfs, lib64 is not removed when cleaning the build 
directory.
This has the effect that the command ln -sv lib /lib64 creates a symlink 
`lib'
pointing to itself inside the directory /lib (that is, there is a file 
/lib/lib).

Here is a simple patch which corrects this (and makes two lines out of a 
long one):
Index: jhalfs/common/common-functions
===================================================================
--- jhalfs.orig/common/common-functions 2012-02-22 22:11:47.000000000 +0100
+++ jhalfs/common/common-functions      2012-12-30 15:51:37.000000000 +0100
@@ -71,7 +71,8 @@
        if [ -d $BUILDDIR/sys ] ; then
          sudo rmdir $BUILDDIR/sys || exit 1
        fi
-      sudo rm -rf 
$BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,tools,cross-tools,usr,var}
+      sudo rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib{,64},media,mnt}
+      sudo rm -rf 
$BUILDDIR/{opt,root,sbin,srv,tmp,tools,cross-tools,usr,var}
        echo "done"
        echo -n "Cleaning $JHALFSDIR ..."
        sudo rm -rf $JHALFSDIR

If no one speaks up, I'll commit it tomorrow.

Regards
Pierre



More information about the alfs-discuss mailing list