On Sun, 2021-03-21 at 05:37 -0400, Robert P. J. Day wrote:
>   perusing some of the content in meta/classes/utility-tasks.bbclass,
> and i see the snippet:
> 
>   T_task-clean = "${LOG_DIR}/cleanlogs/${PN}"
> 
> which takes one all the way back to 2012:
> 
>   commit eef9d6c2d52f5264a6e7a9d882f8323f9793fd7f
>   Author: Richard Purdie <[email protected]>
>   Date:   Fri Aug 17 14:19:22 2012 +0100
> 
>     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.
> 
> does that race condition still exist?

Yes.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#149725): 
https://lists.openembedded.org/g/openembedded-core/message/149725
Mute This Topic: https://lists.openembedded.org/mt/81496480/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to