]> code.ossystems Code Review - openembedded-core.git/commitdiff
e2fsprogs: Cope with ${libdir} and ${base_libdir} being the same
authorMike Crowe <mac@mcrowe.com>
Thu, 16 Feb 2012 15:13:35 +0000 (15:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 23:59:16 +0000 (23:59 +0000)
${libdir} and ${base_libdir} may be the same. If they are don't try and
move files onto themselves.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.bb

index 2d36f697a044ab6515273981b7a4f83b747f9f60..6e3f7b83770cc3f03ba04452cbe1c5354047c957 100644 (file)
@@ -1,6 +1,6 @@
 require e2fsprogs.inc
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI += "file://fallocate.patch \
             file://acinclude.m4 \
@@ -34,9 +34,11 @@ do_install () {
 
 do_install_append () {
        # e2initrd_helper and the pkgconfig files belong in libdir
-       install -d ${D}${libdir}
-       mv ${D}${base_libdir}/e2initrd_helper ${D}${libdir}
-       mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
+       if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
+               install -d ${D}${libdir}
+               mv ${D}${base_libdir}/e2initrd_helper ${D}${libdir}
+               mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
+       fi
 }
 
 # blkid used to be part of e2fsprogs but is useful outside, add it