Bug 16157

Summary: Failure when using conditional RM_WORK_EXCLUDE
Product: [Build System, Metadata & Runtime] BitBake Reporter: Matthias Pritschet <bugzilla.yoctoproject.org>
Component: bitbakeAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium CC: liezhi.yang, poky.bs.watcher, poky.watcher, randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 6.1   
Hardware: ARM   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
commandline log none

Description Matthias Pritschet 2026-02-03 19:51:38 UTC
Created attachment 5179 [details]
commandline log

How to reproduce:

git clone https://git.openembedded.org/bitbake
./bitbake/bin/bitbake-setup init --non-interactive poky-master poky distro/poky-tiny machine/qemuarm64
source bitbake-builds/poky-tiny-master/build/init-build-env
echo INHERIT += \"rm_work\" >> conf/local.conf
echo RM_WORK_EXCLUDE:qemuarm64 += \"bash\" >> conf/local.conf
bitbake core-image-minimal

See the attached logs for the actual bitbake error output.
It's independent of the actual recipe, being RM_WORK_EXCLUDEd, but the active override is important.
It also breaks on my current work project (scarthgap on x64 host) in a different location (gcc-source do_patch), so I've set the Version to unspecified.

I'm not sure if this is actually related to bitbake or to something else.
Comment 1 Randy MacLeod 2026-02-05 15:54:00 UTC
RM_WORK is known to have "interesting" edge conditions so if you can avoid the override, that may be best in the short term.
Comment 2 Randy MacLeod 2026-05-28 13:16:30 UTC
Bulk move of 6.0 Medium bugs to 6.1.