From: Riku Voipio Date: Mon, 26 Aug 2013 09:51:01 +0000 (+0300) Subject: eglibc: fix directory cleanup for 2.17 X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~36199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10722a37bb7efa563425a7389100b9322d96492e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git eglibc: fix directory cleanup for 2.17 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 Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc index c36d16c0ce1..3adf1a9ef94 100644 --- a/meta/recipes-core/eglibc/eglibc-package.inc +++ b/meta/recipes-core/eglibc/eglibc-package.inc @@ -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