Bug 15939

Summary: variable history for 'built-in' fragments could maybe be nicer
Product: [Build System, Metadata & Runtime] BitBake Reporter: Yoann Congal <yoann.congal>
Component: bitbakeAssignee: Yoann Congal <yoann.congal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, richard.purdie
Version: unspecified   
Target Milestone: 5.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yoann Congal 2025-07-24 14:48:38 UTC
In auto.conf:
OE_FRAGMENTS += "machine/qemux86-64 distro/poky core/yocto/sstate-mirror-cdn"

 $ bitbake-getvar MACHINE
# $MACHINE [2 operations]
#   set ast.py:367 [check_and_set_builtin_fragment]    <<<<
#     "qemux86-64"                                     <<<<
...
# pre-expansion value:
#   "qemux86-64"
MACHINE="qemux86-64"


the "<<<<" lines do not tell which fragment, and where it is.
Comment 1 Yoann Congal 2025-07-24 14:50:09 UTC
From: "Re: [PATCH 1/2] bitbake-setup: add the initial implementation"
https://lists.openembedded.org/g/bitbake-devel/message/17807
Comment 2 Yoann Congal 2025-10-06 17:34:09 UTC
Note: history can be improved for 'built-in' fragments (machine/..., distro/...). The file-based one are fine.
Comment 4 Yoann Congal 2025-10-13 15:16:38 UTC
Patch sent: [PATCH] ast: Better variable history for builtin fragments:
https://lists.openembedded.org/g/bitbake-devel/topic/patch_ast_better_variable/115735622