From: Antonio Ospite Date: Sat, 13 Feb 2010 09:32:37 +0000 (+0000) Subject: meta-toolchain: Run rmdir only if empty dirs are actually found. X-Git-Tag: Release-2010-05/1~491^2~259 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4658a3fca9935187e267c4bb6e62f8bd5e497835;p=openembedded.git meta-toolchain: Run rmdir only if empty dirs are actually found. Prevent a failure in do_populate_sdk when there are no empty directories: /bin/rmdir: missing operand Try `/bin/rmdir --help' for more information. See also http://tinderbox.openembedded.net/packages/478437/ Signed-off-by: Antonio Ospite Acked-by: Denys Dmytriyenko Acked-by: Stefan Schmidt --- diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb index a8c27ecfda..3169425ebf 100644 --- a/recipes/meta/meta-toolchain.bb +++ b/recipes/meta/meta-toolchain.bb @@ -67,7 +67,7 @@ do_populate_sdk() { rm -Rf ${SDK_OUTPUT}/usr/lib # Clean up empty directories from excluded packages - find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -0 /bin/rmdir + find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -r0 /bin/rmdir install -d ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir} install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir}/