mbox series

[0/6] ide-sdk: various fixes

Message ID 20260406221133.2769152-1-adrian.freihofer@siemens.com
Headers show
Series ide-sdk: various fixes | expand

Message

AdrianF April 6, 2026, 10:10 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

This series collects small fixes found while backporting the devtool
ide-sdk work to scarthgap and while preparing LLDB support for clang
recipes (which will follow in a separate series).

Fixes in the ide-sdk self-tests: use stat instead of ls for ownership
checks (ls truncates long names), move the GDB breakpoint past the
std::vector constructor so it works with older GDB versions, use
assertRegex for meson's "Fail: 0" output to tolerate whitespace changes,
and enable static UIDs/GIDs in the test image build to avoid ownership
mismatches between cmake-example and meson-example.

The static-IDs fix revealed that devtool deploy-target silently installs
files with wrong ownership for any recipe using dynamic UIDs/GIDs, since
preinst scripts are never run. A warning is added to make this visible.

Finally, ide-sdk was reading TCOVERRIDE instead of the correct variable
TOOLCHAIN to identify the active toolchain.

Adrian Freihofer (6):
  devtool/deploy: warn when deploying a recipe with dynamic UID/GID
  oe-selftest: devtool: use stat for reading user/group names in ide-sdk
    tests
  oe-selftest: devtool: GDB breakpoint after std::vector is constructed
  oe-selftest: devtool: use assertRegex to match test output for meson
  oe-selftest/cpp-example: fix conf file ownership with static UIDs/GIDs
  devtool: ide-sdk: use TOOLCHAIN not TCOVERRIDE

 meta-selftest/files/static-group              |  2 ++
 meta-selftest/files/static-passwd             |  2 ++
 .../recipes-test/cpp/cpp-example.inc          |  6 +++-
 meta/lib/oeqa/selftest/cases/devtool.py       | 35 +++++++++++++------
 scripts/lib/devtool/deploy.py                 | 32 +++++++++++++++++
 scripts/lib/devtool/ide_sdk.py                |  6 ++--
 6 files changed, 69 insertions(+), 14 deletions(-)