From: "Paul Barker" <paul@pbarker.dev>
To: "Sean Nyekjaer" <sean@geanix.com>,
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] rm_work: don't remove WORKDIR while do_populate_sdk is running
Date: Fri, 04 Dec 2026 13:50:40 +0000 [thread overview]
Message-ID: <DNBZWILSF3WO.33F42JXMK9OCD@pbarker.dev> (raw)
In-Reply-To: <20261204083254.1215409-1-sean@geanix.com>
On Fri Dec 4, 2026 at 8:32 AM GMT, Sean Nyekjaer wrote:
> When an image and its SDK are built in the same run, e.g.
> "bitbake <image> <image>:do_populate_sdk", nothing orders the image's
> do_rm_work against do_populate_sdk(_ext), so do_rm_work can remove the
> work directory while the SDK is being populated:
>
> Package foobar:core2-64 disappeared on us!
>
> Serialize them with a lock in ${T}, which do_rm_work keeps. Ordering
> do_rm_work after do_populate_sdk isn't an option, as that would build
> the SDK with every image. The SDK tasks take the lock from a
> TaskStarted handler, so it also covers their prefuncs and postfuncs,
> which [lockfiles] does not.
>
> AI-Generated: Uses Claude Code (Claude Opus 5.5)
> Signed-off-by: Sean Nyekjaer <sean@geanix.com>
> ---
> I was suggested to order do_rm_work after do_populate_sdk instead.
> A plain "after" would build the SDK with every image, what is
> missing is a weak ordering in bitbake, i.e. "run after X only if X is part
> of this build".
> Any suggestions?
Hi Sean,
As I mentioned in my other email [1], the proper fix is a full
re-implementation of how rm_work is triggered. We need to be able to say
"run task X after any of tasks A,B,C if any of them run" and "run task X
after all of tasks A,B,C if any of them run".
The design needs to be right, and this will mess with the internals of
the bitbake runqueue, so I'd advise against simply throwing Claude at
it.
[1]: https://lore.kernel.org/openembedded-core/DNBZKJXOGF60.CX6AUK6Y1PFK@pbarker.dev/
Best regards,
--
Paul Barker
prev parent reply other threads:[~2026-12-04 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 8:32 [PATCH] rm_work: don't remove WORKDIR while do_populate_sdk is running Sean Nyekjaer
2026-12-04 13:50 ` Paul Barker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNBZWILSF3WO.33F42JXMK9OCD@pbarker.dev \
--to=paul@pbarker.dev \
--cc=openembedded-core@lists.openembedded.org \
--cc=sean@geanix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox