From: "Zk47T" <zizuzacker@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: zizuzacker@gmail.com
Subject: [PATCH 0/2] useradd.bbclass: fix parse error when only USERADD_DEPENDS is set
Date: Wed, 8 Apr 2026 22:00:01 +0700 [thread overview]
Message-ID: <20260408150003.18063-1-zizuzacker@gmail.com> (raw)
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
next reply other threads:[~2026-04-08 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-08 15:00 Zk47T [this message]
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
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=20260408150003.18063-1-zizuzacker@gmail.com \
--to=zizuzacker@gmail.com \
--cc=openembedded-core@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