public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set
@ 2026-04-20 16:39 Zk47T
  2026-04-20 16:39 ` [PATCH v2 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Zk47T @ 2026-04-20 16:39 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ross.Burton

When a recipe inherits useradd and only sets USERADD_DEPENDS (to depend
on users/groups created by another recipe) without creating any
users/groups itself, the parse-time sanity check in
update_useradd_after_parse() unconditionally throws a fatal error about
missing USERADD_PACKAGES.

This series fixes the issue by skipping the USERADD_PACKAGES validation
when USERADD_DEPENDS is set, adds a selftest recipe to exercise this
code path, and adds an oe-selftest case to verify the build succeeds.

Changes in v2:
- Added oe-selftest test case in usergrouptests.py (patch 3/3)
  as suggested by Ross Burton

Fixes [YOCTO #15863]

Nguyen Minh Tien (3):
  useradd.bbclass: allow inheriting with only USERADD_DEPENDS set
  meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS
    only
  oe-selftest: add test for useradd with only USERADD_DEPENDS

 .../selftest-users/usegroup-deponly.bb        | 25 +++++++++++++++++++
 meta/classes/useradd.bbclass                  |  5 ++++
 .../lib/oeqa/selftest/cases/usergrouptests.py |  6 +++++
 3 files changed, 36 insertions(+)
 create mode 100644 meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb

-- 
2.34.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-04-23 11:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 16:39 [PATCH v2 0/3] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set Zk47T
2026-04-20 16:39 ` [PATCH v2 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
2026-04-20 16:39 ` [PATCH v2 2/3] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Zk47T
2026-04-20 16:39 ` [PATCH v2 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS Zk47T
2026-04-23  6:44   ` [OE-core] " Mathieu Dubois-Briand
2026-04-23 10:04     ` [PATCH v3 0/3] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set Zk47T
2026-04-23 10:04       ` [PATCH v3 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
2026-04-23 10:04       ` [PATCH v3 2/3] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Zk47T
2026-04-23 10:04       ` [PATCH v3 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS Zk47T
2026-04-23 10:09         ` Zk47T

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox