From: adrian.freihofer@gmail.com
To: alex.kanavin@gmail.com, Qi.Chen@windriver.com
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v3 01/13] useradd_base.bbclass: do not use awk
Date: Mon, 26 Jan 2026 15:01:30 +0100 [thread overview]
Message-ID: <a791396b22547baabda7c43fc2b2c4e57e1a2103.camel@gmail.com> (raw)
In-Reply-To: <CANNYZj9GrL4UTaMKz2gsmUFimRkFCqjyNmy8SPa8i_o9BqfNjg@mail.gmail.com>
On Mon, 2026-01-26 at 13:28 +0100, Alexander Kanavin via
lists.openembedded.org wrote:
> On Mon, 26 Jan 2026 at 09:18, Chen Qi via lists.openembedded.org
> <Qi.Chen=windriver.com@lists.openembedded.org> wrote:
> >
> > I have concern on this patch.
> >
> > You're modifying a basic bbclass to fix one case without finding
> > out the
> > root cause.
> > By doing this, you're putting unnecessary restriction on the use of
> > commands in this bbclass. Other commands with similar dependencies
> > could
> > potentially encounter the same issue in the future.
> > I think if you find out the root cause, you'll come up with a
> > better
> > fix. This would not only resolve the current case but also prevent
> > similar issues.
>
> I agree, even before the search for the root cause, this does need
> steps to reproduce, so others can also look properly into what the
> issue is.
>
> Alex
I think the root cause is that awk is called without having a
dependency on it. A proper fix would be adding this dependency.
Question is: where? I guess it is from the build-sysroots-1.0-r0
do_build_target_sysroot task on itself.
How to reproduce this is more or less described in the commit message.
My patches add:
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM:${PN} = "--system ${BPN}"
+USERADD_PARAM:${PN} = "--system --home /var/lib/${BPN}
--no-create-home --shell /bin/false --gid ${BPN} ${BPN}"
to a package.
Then the test case
devtool.DevtoolIdeSdkTests.test_devtool_ide_sdk_shared_sysroots
creates an dynamic SDK including this package.
That means, in the context of
build-sysroots-1.0-r0 do_build_target_sysroot
postinst-base-passwd explodes like this:
Exception: subprocess.CalledProcessError: Command
'/srv/pokybuild/yocto-worker/oe-selftest-debian/build/
build-st-254283/tmp/sysroots/qemux86-64/usr/bin/
postinst-base-passwd' returned non-zero exit status 1.
awk: error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory
https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/4983396/raw_inline
I'm not sure if this is solvable in a better way because my
understanding is that the dependency is circular.
If the task gets restarted, it works because the missing libraries are
then available.
Another fix is removing this dependency by not calling awk, what I
propose here.
Adrian
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#229983):
> https://lists.openembedded.org/g/openembedded-core/message/229983
> Mute This Topic: https://lists.openembedded.org/mt/117464897/4454582
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-core/unsub [
> adrian.freihofer@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2026-01-26 14:01 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 7:37 [PATCH v3 00/13] IDE SDK Improvements AdrianF
2026-01-26 7:37 ` [PATCH v3 01/13] useradd_base.bbclass: do not use awk AdrianF
2026-01-26 8:18 ` [OE-core] " ChenQi
2026-01-26 12:28 ` Alexander Kanavin
2026-01-26 14:01 ` adrian.freihofer [this message]
2026-01-26 20:18 ` Alexander Kanavin
2026-01-26 17:41 ` Peter Kjellerstedt
2026-01-30 14:01 ` Freihofer, Adrian
2026-01-26 7:37 ` [PATCH v3 02/13] devtool: ide-sdk find bitbake-setup init-build-env AdrianF
2026-01-26 7:37 ` [PATCH v3 03/13] oe-selftest: devtool: DevtoolIdeSdkTests debug logging AdrianF
2026-01-26 7:37 ` [PATCH v3 04/13] cpp-example: run as a service AdrianF
2026-01-26 7:37 ` [PATCH v3 05/13] oe-selftest: devtool: check example services are running AdrianF
2026-01-26 7:37 ` [PATCH v3 06/13] devtool: ide-sdk: add gdbserver attach mode support AdrianF
2026-01-26 7:37 ` [PATCH v3 07/13] devtool: ide-sdk: move code to ide_none AdrianF
2026-01-26 7:37 ` [PATCH v3 08/13] devtool: ide-sdk: make install_and_deploy script pass target arg AdrianF
2026-01-26 7:37 ` [PATCH v3 09/13] devtool: ide-sdk: vscode replace scripts AdrianF
2026-01-26 7:37 ` [PATCH v3 10/13] oe-selftest: devtool ide-sdk cover vscode remote debugging AdrianF
2026-01-26 7:37 ` [PATCH v3 11/13] devtool: ide-sdk: evaluate DEBUG_PREFIX_MAP AdrianF
2026-01-26 7:37 ` [PATCH v3 12/13] cpp-example: Add std::vector example AdrianF
2026-01-26 7:37 ` [PATCH v3 13/13] devtool: ide-sdk: Support GDB pretty-printing for C++ STL types AdrianF
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=a791396b22547baabda7c43fc2b2c4e57e1a2103.camel@gmail.com \
--to=adrian.freihofer@gmail.com \
--cc=Qi.Chen@windriver.com \
--cc=alex.kanavin@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