Openembedded Core Discussions
 help / color / mirror / Atom feed
* utility-tasks: Set T to alternate location during do_clean
@ 2012-08-17 13:19 Richard Purdie
  2012-08-17 13:33 ` Jack Mitchell
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2012-08-17 13:19 UTC (permalink / raw)
  To: openembedded-core

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>
---
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index d150ec5..bb26eb7 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -12,6 +12,7 @@ python do_listtasks() {
 
 CLEANFUNCS ?= ""
 
+T_task-clean = "${LOG_DIR}/cleanlogs/${PN}"
 addtask clean
 do_clean[nostamp] = "1"
 python do_clean() {





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: utility-tasks: Set T to alternate location during do_clean
  2012-08-17 13:19 utility-tasks: Set T to alternate location during do_clean Richard Purdie
@ 2012-08-17 13:33 ` Jack Mitchell
  0 siblings, 0 replies; 2+ messages in thread
From: Jack Mitchell @ 2012-08-17 13:33 UTC (permalink / raw)
  To: openembedded-core

On 17/08/12 14:19, Richard Purdie wrote:
> +T_task-clean = "${LOG_DIR}/cleanlogs/${PN}"

Cheers Richard, this does the trick!

Regards,

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-17 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 13:19 utility-tasks: Set T to alternate location during do_clean Richard Purdie
2012-08-17 13:33 ` Jack Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox