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 <raj.khem@gmail.com>

(From OE-Core rev: 10722a37bb7efa563425a7389100b9322d96492e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Riku Voipio 2013-08-26 12:51:01 +03:00 committed by Richard Purdie
parent a090406686
commit 6f25176581
1 changed files with 1 additions and 1 deletions

View 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