From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8565.1796392242967945260 for ; Fri, 04 Dec 2026 05:50:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@pbarker.dev header.s=fm2 header.b=ooBWZagx; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dIpGqGIO; spf=pass (domain: pbarker.dev, ip: 103.168.172.154, mailfrom: paul@pbarker.dev) Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3C69414001DB for ; Fri, 4 Dec 2026 08:50:42 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Fri, 04 Dec 2026 08:50:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pbarker.dev; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1796392242; x=1796478642; bh=2KDvZq6y0Tft7xMG9LnCTr8oxMDTrQIpZyv1mszFEGA=; b= ooBWZagxViCSjiNd5P2FBeYLPjJbNrxjuJ9y9VQpyIjQSy+FUQxLJApqrF3PIk5Y vPP7EtU1yMPaBzVyfpfqC/qwPHy4NM0/QhDzVS2DusnSAGB6NFStkMGrM6o+vX6a YhpagUMMRbFkPQ2nW1NOdu8Vic3L+zmqqs/1LGvkeCYDi59dW5pyZDqsBE7viPpG uJTFEqCFcFaN2aguD5nFNGqa1iOQsKEKHvvnzXci/AfXiOfs1tqcKw4K+G4TUda6 jrgYyBuBqOO+flFapsHBu8ah+x8nDlxdA2hF71CNBCiJmtxsLVTpwoiJeiPLjtyj JKXUjg2xxqxlCvtEWFVj6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1796392242; x=1796478642; bh=2 KDvZq6y0Tft7xMG9LnCTr8oxMDTrQIpZyv1mszFEGA=; b=dIpGqGIObywJxIg7R 6K4qOFI1dGIaKtFRsaXO3vo1mJNOkTRmzeyvXmrcuunya+o3g9k7KWzqD8Y4aO06 VXx+TBBoMC+0nplqMYMe9PNd3UordbvTsV4z1g4mdPIwWQ0ZMI+bx/PgMgqApTNI vZcZcsNqty98PN9asTUwUT3vkGkz1KQi9qaqgiTuMxyZROcOxP/tOEHHHbVhUImV 4+rFhRWww+SGiZM3tFwIoTlbCleXcqToz89Zt/Uab2oV7g7sOU1RGeE2HAAqUhtI SAX/p4F8B2q1qWmvzKxd5pEyvq97Znjn20gB+j/8klj3Gx0gsFEBuc7AlY8Ah96K qzg0Q== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pbarker.dev a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796392242; d=pbarker.dev; mf=PHBhdWxAcGJhcmtlci5kZXY+; rt=PG9wZW5lbWJlZGRlZC1jb3JlQGxpc3RzLm9wZW5lbWJlZGRlZC5vcmc+; s=fm2:rsa-sha256:nICHlHEZDH3uJ/NafPJRvhbw9qYX6o1O+yb01I3I6fkFjjl uhg/SA3S5tf9t/PVvG/EQlFCVSkrW3E30f98Ljl+kmbLrtBEOTwDJNpgO/BWAXgj v8OPtWyVL4KW3Gfpht4t5GK5J1OVunLMJ/lAljnkZ5parE0SyavwwzY0TMatuZri glMcvtc31JEs1xcCSVivZhTGWtyn6CNNZkb4CSsHSvCfj8mkhe5w0COzCaXP89DP a79wWJBE+3iOsYHXzfJE62aPslyvoN0VXH0CEtjPIbwI07XMl7cO0y1PKzwSAY4z qBCwJjfPiq07V36F/V0k0W974/1yVxYE+2n0rzw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=content-transfer-encoding,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:8fSE7vIp+JD09WmAxy5oIAk/Ms1hMJ8s5Btwcx7wUL4=:F8OcFPo28B5TajwKwbR4HTAjZv7tHZCqmhm7+zfOlvI=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGwCTz0BWYKjR1cPXES6SvUXi99NYoMs5kpWQcplKCu3rbyUrzJZJ8gyKRymau/LL aO30sYE/CWKSNL6nPaNPbMJ3M6MnfPpnABtZX2EI5jE9tSt+7Ru+itzsxjQdoa4+yFyNCP 4RPzT8w8KfMHxYv7vGJmKGxS6kOXAOuhRaTrvVeX1hnnE3ZW9x9t8HFii9xpIqtoaXwW6X 5KGRuaLkGh2CLFeLTaqkkkxeIcNuuShqudO54Mlsh1fej85REKliHJt8FGBK1TW0HtLdkf Emhw+hXAToPcR2zdUdpsGgq4A7iZyRcnb+8230kgwxjcHiFBIM4yGoBUq6TZidu7UI3tCK BBOSxCyhsnMnnzbVgCY/hGptcrvM68peU3FOhGHPTAH6vB0/R+BO1UH+GpHSCkWf3ayKU7 pMzETEliLXqRzPcx4SKby8M55FHvxPqnoOeoobm+uu010kCWa1qc1c+n16GY0TGQGFxrgu PSQHRwg//2ynEUgW6gmPSiYn/WCn0Oxd39/xkERrnG2sMU+Kdk4t4HqaWgrRIUEFuHNzSf WIa2mMUkIHYuE+cJIT7V0bvIxYpAGB2fJJQmK6ADhTr+6zyDmXxcfc6N+wHNVNoryOU0P7 hCMYB6eyhz2+XY0DxB08pO/sM4llQgvCknNMJO27C+IiuIADCcYvKUAYljMw X-ME-Proxy: Feedback-ID: i51494658:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Dec 2026 08:50:41 -0500 (EST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Dec 2026 13:50:40 +0000 Message-Id: Subject: Re: [PATCH] rm_work: don't remove WORKDIR while do_populate_sdk is running From: "Paul Barker" To: "Sean Nyekjaer" , X-Mailer: aerc 0.22.0 References: <20261204083254.1215409-1-sean@geanix.com> In-Reply-To: <20261204083254.1215409-1-sean@geanix.com> List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:50:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251988 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 :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 > --- > 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 par= t > 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@pb= arker.dev/ Best regards, --=20 Paul Barker