From: Nguyen Minh Tien <zizuzacker@gmail.com>
To: bitbake-devel@lists.openembedded.org
Cc: zizuzacker@gmail.com
Subject: [PATCH 0/1] data_smart: fix key expansion in conditional overrides
Date: Sat, 25 Jul 2026 21:30:01 +0700 [thread overview]
Message-ID: <20260725143002.23596-1-zizuzacker@gmail.com> (raw)
An :append whose override name still contains a variable is silently
dropped. From the report:
RDEPENDS:${PN}:append:pn-packagegroup-cross-canadian-${MACHINE} = " ..."
Still reproduces on master (c251833d2). The mechanism is in the patch;
briefly, renameVar() rebuilds dependent override keys with a string
replace, so renaming RDEPENDS:${PN} leaves the ${MACHINE} behind and the
append lands on a key no override can ever match.
The part worth flagging is the '${' not in newkey guard. Expanding
unconditionally looks like the obvious fix but regresses parsing:
native.bbclass renames to a key that is itself still unexpanded, before
expandKeys() runs, and expanding the dependent keys there turns the later
rename into a no-op. oe-core then parses with three warnings master does
not have, in dbus and python3-psutil. The second of the two added tests
covers this and fails without the guard.
Tested against bitbake c251833d2 and oe-core 9d89b3b802:
- bitbake-selftest: 790 tests, no failures. Six bb.tests.fetch errors
remain, host issues that occur identically on master
- all 952 oe-core recipes parse with no warnings, same as master
- bitbake -e for dbus-native and python3-psutil-native, the two recipes
that hit this path, identical to master
- same parse with multilib enabled, exercising multilib_global.bbclass
- core-image-minimal builds for qemux86-64, 5275 tasks
Nguyen Minh Tien (1):
data_smart: fix operations lost when an override name contains a
variable
lib/bb/data_smart.py | 11 +++++++++--
lib/bb/tests/data.py | 25 +++++++++++++++++++++++++
2 files changed, 34 insertions(+), 2 deletions(-)
--
2.34.1
next reply other threads:[~2026-07-25 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-25 14:30 Nguyen Minh Tien [this message]
2026-07-25 14:30 ` [PATCH 1/1] data_smart: fix operations lost when an override name contains a variable Nguyen Minh Tien
2026-07-26 12:21 ` [bitbake-devel] " Richard Purdie
2026-07-26 14:53 ` Minh Tiến Nguyễn
2026-07-26 20:11 ` Richard Purdie
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=20260725143002.23596-1-zizuzacker@gmail.com \
--to=zizuzacker@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
/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