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
> <[email protected]> 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 (#230008):
https://lists.openembedded.org/g/openembedded-core/message/230008
Mute This Topic: https://lists.openembedded.org/mt/117464897/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-