public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/2] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set
@ 2026-04-08 15:00 Zk47T
  2026-04-08 15:00 ` [PATCH 1/2] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
  2026-04-08 15:00 ` [PATCH 2/2] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Zk47T
  0 siblings, 2 replies; 3+ messages in thread
From: Zk47T @ 2026-04-08 15:00 UTC (permalink / raw)
  To: openembedded-core; +Cc: zizuzacker

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, and adds a selftest recipe to exercise this
code path.

Fixes [YOCTO #15863]

Zk47T (2):
  useradd.bbclass: allow inheriting with only USERADD_DEPENDS set
  meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS
    only

 .../selftest-users/usegroup-deponly.bb        | 25 +++++++++++++++++++
 meta/classes/useradd.bbclass                  |  5 ++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb

-- 
2.34.1



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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08 15:00 [PATCH 0/2] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set Zk47T
2026-04-08 15:00 ` [PATCH 1/2] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Zk47T
2026-04-08 15:00 ` [PATCH 2/2] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Zk47T

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