lib64 is not removed when cleaning the LFS dir

Pierre Labastie pierre.labastie at neuf.fr
Sun Dec 30 07:08:16 PST 2012


Le 30/12/2012 16:00, Pierre Labastie a écrit :
> 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
My mailer has split lines, sorry. I join the patch as an attached file.

Pierre

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: remove-lib64
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20121230/42d1ecce/attachment.ksh>


More information about the alfs-discuss mailing list