On Tue, Jul 17, 2012 at 9:57 AM, Matthew McClintock <m...@freescale.com> wrote: > On Tue, Jul 17, 2012 at 12:51 AM, Khem Raj <raj.k...@gmail.com> wrote: >> On Mon, Jul 16, 2012 at 10:31 PM, McClintock Matthew-B29882 >> <b29...@freescale.com> wrote: >>> } >>> - rm -rf ${SSTATE_BUILDDIR} >>> + strace rm -rf ${SSTATE_BUILDDIR} >> >> strace is probably eating the return value > > And you would be right.... > > I want to point out running the > ./tmp/work/ppc603e-poky-linux/eglibc-locale-2.13-r16/temp/run.sstate_create_package.17463 > generated script directly does not fail (without the strace > modification)
Also, the follow does work: diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index d2a45c3..92a1e4d 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -463,7 +463,14 @@ sstate_create_package () { mv $TFILE ${SSTATE_PKG} cd ${WORKDIR} - rm -rf ${SSTATE_BUILDDIR} + for i in `find ${SSTATE_BUILDDIR} -type f`; do + bbnote "deleting $i" + rm -rf $i + done + for i in `find ${SSTATE_BUILDDIR} -type d -depth`; do + bbnote "rmdir $i" + rmdir $i + done } Still debugging.... -M _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto