]> code.ossystems Code Review - openembedded-core.git/commit
utility-tasks: Set T to alternate location during do_clean
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Aug 2012 13:19:22 +0000 (14:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 18 Aug 2012 15:23:56 +0000 (16:23 +0100)
commiteef9d6c2d52f5264a6e7a9d882f8323f9793fd7f
tree12ac59e6f9ab176994fa36046bf5abd9c50be090
parentbb74035190c7794fcebaa7f6ba247672a4c34cde
utility-tasks: Set T to alternate location during do_clean

There is a race where do_clean tries to clean WORKDIR but there are logfiles
written into ${T} by bitbake and this can lead to exceptions due to open files.

The easiest solution is to redirect T to a different location for the do_clean
task, hence avoiding the errors and also allowing the logfiles to be visible
somewhere. ${LOG_DIR} seems an appropriate place for this.

[YOCTO #2846]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/utility-tasks.bbclass