Skip to content

bitbake: fix ??= operator for variable flags and test

Louis Rannou bitbake-devel 2 versions – New

Get series with b4
b4 am [email protected] change-id 20250212-varflags-7e56f73a3966

Versions newest first

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- update first patch for a prettier solution
- change the place for tests to data.py as it is not testing parsing
- add tests for internalflags, delVarFlags and delVar
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bitbake: data_smart: fix ??= operator for variable flagslib/bb/data_smart.py+11 -40 replies
2/2bitbake: tests/data: add tests for variable flagslib/bb/tests/data.py+48 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] bitbake: fix ??= operator for variable flags and test

Since commit 0329a7e3ac694737f2d2c1861f65492551360663, weak default values are omitted in getVarFlags while they were only incorrect before. They were also not removed by delVarFlag.

The first patch fixes the issue, the second adds some tests around getVarFlags, delVarFlag en delVar.

Note that delVar blows all flags. Please check that is expected.

Fixes [YOCTO #15685]

---
Changes in v2:
- update first patch for a prettier solution
- change the place for tests to data.py as it is not testing parsing
- add tests for internalflags, delVarFlags and delVar
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Louis Rannou (2):
bitbake: data_smart: fix ??= operator for variable flags
bitbake: tests/data: add tests for variable flags

 lib/bb/data_smart.py | 15 +++++++++++----
 lib/bb/tests/data.py | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 59 insertions(+), 5 deletions(-)

---
base-commit: bcf090ed631bbd523a5341baebba0765f1a847f8
change-id: 20250212-varflags-7e56f73a3966

Best regards,

Signature · 1 line
Louis Rannou <[email protected]>