lib64 is not removed when cleaning the LFS dir

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


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

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
-      sudo rm -rf 
+      sudo rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib{,64},media,mnt}
+      sudo rm -rf 
        echo "done"
        echo -n "Cleaning $JHALFSDIR ..."
        sudo rm -rf $JHALFSDIR

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


More information about the alfs-discuss mailing list