Bug 15939 - variable history for 'built-in' fragments could maybe be nicer
Summary: variable history for 'built-in' fragments could maybe be nicer
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.3
Assignee: Yoann Congal
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-07-24 14:48 UTC by Yoann Congal
Modified: 2025-11-13 12:30 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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