On Fri, 2022-05-27 at 14:07 +0200, Kristian Amlie via
lists.openembedded.org wrote:
> Hey all,
> 
> I have a problem on kirkstone where using the "externalsrc" class wipes 
> out the directory mentioned in EXTERNALSRC, in other words my personal 
> development repository.
> 
> I have traced it down to the "do_unpack[cleandirs]" variable flag. This 
> flag is supposed to be removed here [1] when using "externalsrc", and 
> indeed I have verified that this is the case. But when the function is 
> about to be executed, the "cleandirs" variable flag has somehow been 
> restored [2]. This causes the directory to be removed after all, despite 
> the attempt at avoiding it.
> 
> At this point I'm a bit lost, I don't really know what happens between 
> those two steps. Does anyone have any idea what might be happening? It 
> sounds like a pretty serious bug to me, wiping out things in the home 
> directory of the user.
> 
> [1] 
> https://git.yoctoproject.org/poky/tree/meta/classes/externalsrc.bbclass?h=kirkstone#n93
> [2] 
> https://git.yoctoproject.org/poky/tree/bitbake/lib/bb/build.py?h=kirkstone#n191

That certainly isn't supposed to happen. As you say, the code is
supposed to disable that and isn't behaving as intended. It is hard to
say more though.

Is there a test case you can share with us so we can reproduce the
issue? Without some way to replicate of more details of the environment
this occurred in, debugging it will be very hard.

Cheers,

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

Reply via email to