]> code.ossystems Code Review - openembedded-core.git/commitdiff
eglibc: fix directory cleanup for 2.17
authorRiku Voipio <riku.voipio@linaro.org>
Mon, 26 Aug 2013 09:51:01 +0000 (12:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Aug 2013 12:17:18 +0000 (13:17 +0100)
Commit e0c2dd275827a4b37b8116d0f0119333638461af broke building
eglibc 2.17, which still ships pt_chown under eglibc/ directory.

Fix by only deleting directory when pt_chown is not there.

Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/eglibc/eglibc-package.inc

index c36d16c0ce176b3be6151b2dd497fafb531064cc..3adf1a9ef94b6106f6fbe06a12962beb852b3575 100644 (file)
@@ -75,7 +75,7 @@ do_install_append () {
        rm -rf ${D}${localstatedir}
 
        # remove empty eglibc dir
-       if [ -d ${D}${libdir}/eglibc ]; then
+       if [ -d ${D}${libdir}/eglibc -a ! -e ${D}${libdir}/eglibc/pt_chown ]; then
                rmdir ${D}${libdir}/eglibc
        fi
        oe_multilib_header bits/syscall.h