[yocto] 1.1.2 Full Pass consolidated Test Report
McClintock Matthew-B29882
B29882 at freescale.com
Tue Jul 17 10:35:49 PDT 2012
On Tue, Jul 17, 2012 at 9:57 AM, Matthew McClintock <msm at freescale.com> wrote:
> On Tue, Jul 17, 2012 at 12:51 AM, Khem Raj <raj.khem at gmail.com> wrote:
>> On Mon, Jul 16, 2012 at 10:31 PM, McClintock Matthew-B29882
>> <B29882 at 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
More information about the yocto
mailing list