All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <rs@ti.com>, <raj.khem@gmail.com>,
	<richard.purdie@linuxfoundation.org>, <alex@linutronix.de>,
	<otavio@ossystems.com.br>, <kexin.hao@windriver.com>
Cc: <afd@ti.com>, <detheridge@ti.com>, <denis@denix.org>,
	<reatmon@ti.com>, <openembedded-core@lists.openembedded.org>,
	<vijayp@ti.com>
Subject: Re: [oe-core][PATCHv2] xuser-account: convert to standard-user-account
Date: Wed, 17 Jun 2026 18:00:03 +0200	[thread overview]
Message-ID: <DJBG6YVT3DHX.PTRABOQVTRAL@bootlin.com> (raw)
In-Reply-To: <DJBG5QOT7KD0.2G8XWYKZK99JY@bootlin.com>

On Wed Jun 17, 2026 at 5:58 PM CEST, Mathieu Dubois-Briand wrote:
> On Tue Jun 16, 2026 at 8:25 PM CEST, rs wrote:
>> From: Randolph Sapp <rs@ti.com>
>>
>> Change this single xuser account template into a generic
>> standard-user-account that uses distro level variables for
>> configuration.
>>
>> This allows for seamless configuration of multiple out-of-box scripts
>> and tests across layers without having to implicitly hope that the
>> username or groups haven't been changed by a bbappend or recipe
>> override.
>>
>> This also adds a class and a variable to allow recipes to assert that
>> the user is in requested groups.
>>
>> This was proposed specifically to remove some issues highlighted in:
>> https://lists.openembedded.org/g/openembedded-core/message/230665
>>
>> Signed-off-by: Randolph Sapp <rs@ti.com>
>> ---
>
> Hi Randolph,
>
> Thanks, it looks better now.
>
> Yet we have some test failures:
>
> AssertionError: ssh exited with status '255' for command '['ssh', '-l', 'root', '-o', 'ServerAliveCountMax=2', '-o', 'ServerAliveInterval=30', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '-o', 'LogLevel=ERROR', '192.168.7.2', 'export PATH=/usr/sbin:/sbin:/usr/bin:/bin; export XDG_RUNTIME_DIR=/run/user/`id -u weston`; export WAYLAND_DISPLAY=wayland-1; wayland-info']': this is likely an SSH failure
> id: unknown user weston
> failed to create display: No such file or directory
> ...
> RESULTS - weston.WestonTest.test_wayland_info: FAILED (0.47s)
> RESULTS - weston.WestonTest.test_weston_can_initialize_new_wayland_compositor: FAILED (0.27s)
> RESULTS - weston.WestonTest.test_weston_running: FAILED (0.73s)
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/25/builds/3950
>
> Also we have a failing selftest:
>
> 2026-06-17 11:32:17,460 - oe-selftest - INFO - incompatible_lic.NoGPL3InImagesTests.test_core_image_full_cmdline_weston (subunit.RemotedTestCase)
> 2026-06-17 11:32:17,465 - oe-selftest - INFO -  ... FAIL
> ...
> ERROR: weston-init-1.0-r0 do_package_write_rpm: File /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-953747/tmp/work/qemux86_64-poky-linux/weston-init/1.0/recipe-sysroot/etc/passwd doesn't exist in sysroot!
> ...
> File: '/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/classes-global/package_rpm.bbclass', lineno: 202, function: get_attr
>      0198:            def get_attr(path):
>      0199:                stat_f = os.stat(rootpath + "/" + path, follow_symlinks=False)
>      0200:                mode = stat.S_IMODE(stat_f.st_mode)
>      0201:                try:
>  *** 0202:                    owner = pwd.getpwuid(stat_f.st_uid).pw_name
>      0203:                except Exception as e:
>      0204:                    filename = d.getVar('RECIPE_SYSROOT') + '/etc/passwd'
>      0205:                    if os.path.exists(filename):
>      0206:                        bb.error("Content of /etc/passwd in sysroot:\n{}".format(
> Exception: KeyError: 'getpwuid(): uid not found: 1000'
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4139
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4061
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3911
>
> Can you have a look at the issue?
>
> Thanks,
> Mathieu

Sorry, we also have a dependency issue in the reproducibility test:

2026-06-17 12:32:19,348 - oe-selftest - INFO -       ERROR: Nothing PROVIDES 'standard-user-account' (but /srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/wayland/weston-init.bb DEPENDS on or otherwise requires it)
2026-06-17 12:32:19,348 - oe-selftest - INFO -       standard-user-account was skipped: Recipe standard-user-account, package standard-user-account: system groupname "disk" does not have a static ID defined. Add disk to one of these files: /srv/pokybuild/yocto-worker/reproducible/build/build-st/meta-selftest/files/static-group
2026-06-17 12:32:19,348 - oe-selftest - INFO -       ERROR: Nothing RPROVIDES 'weston-init' (but /srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/packagegroups/packagegroup-core-weston.bb, /srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/wayland/weston-init.bb, /srv/pokybuild/yocto-worker/reproducible/build/layers/openembedded-core/meta/recipes-graphics/wayland/weston_15.0.1.bb RDEPENDS on or otherwise requires it)
2026-06-17 12:32:19,348 - oe-selftest - INFO -       No eligible RPROVIDERs exist for 'weston-init'
2026-06-17 12:32:19,348 - oe-selftest - INFO -       NOTE: Runtime target 'weston-init' is unbuildable, removing...
2026-06-17 12:32:19,348 - oe-selftest - INFO -       Missing or unbuildable dependency chain was: ['weston-init']
2026-06-17 12:32:19,349 - oe-selftest - INFO -       NOTE: Runtime target 'packagegroup-core-weston' is unbuildable, removing...
2026-06-17 12:32:19,349 - oe-selftest - INFO -       Missing or unbuildable dependency chain was: ['packagegroup-core-weston', 'weston-init']
2026-06-17 12:32:19,349 - oe-selftest - INFO -       NOTE: Runtime target 'core-image-weston' is unbuildable, removing...
2026-06-17 12:32:19,349 - oe-selftest - INFO -       Missing or unbuildable dependency chain was: ['core-image-weston', 'packagegroup-core-weston', 'weston-init']
2026-06-17 12:32:19,349 - oe-selftest - INFO -       NOTE: Runtime target 'weston-xwayland' is unbuildable, removing...
2026-06-17 12:32:19,349 - oe-selftest - INFO -       Missing or unbuildable dependency chain was: ['weston-xwayland', 'weston-init']

https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/4185

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  reply	other threads:[~2026-06-17 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-16 18:25 [oe-core][PATCHv2] xuser-account: convert to standard-user-account rs
2026-06-17 15:58 ` Mathieu Dubois-Briand
2026-06-17 16:00   ` Mathieu Dubois-Briand [this message]
2026-06-17 19:36     ` Randolph Sapp

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=DJBG6YVT3DHX.PTRABOQVTRAL@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=afd@ti.com \
    --cc=alex@linutronix.de \
    --cc=denis@denix.org \
    --cc=detheridge@ti.com \
    --cc=kexin.hao@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=otavio@ossystems.com.br \
    --cc=raj.khem@gmail.com \
    --cc=reatmon@ti.com \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=rs@ti.com \
    --cc=vijayp@ti.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.