| Summary: | For some reason using of same user in two recipes does not work properly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Piotr Łobacz <p.lobacz> | ||||
| Component: | oe-core other | Assignee: | Unassigned <unassigned> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | pavel, randy.macleod | ||||
| Version: | 4.0.9 | ||||||
| Target Milestone: | 5.2 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | Don't know | |||||
| Attachments: |
|
||||||
|
Description
Piotr Łobacz
2023-03-29 08:11:29 UTC
OK I have gladly been able to reproduce this issue without usage of this meta-iotedge meta layer and finally I know when it happens. BTW. Randy I'm sorry for adding you to CC list but I do not know if anybody has seen this bug, but I need some help so we could investigate it as it is related strictly to creation of sysroot on recipe build. Namely whenever we are appending a package name - which is adding new user and group which depends from another user(s) from different recipe(s) - to DEPENDS variable in our recipe, for some reason this user is not being created at all which is of course a bug probably in meta/classes/sstate.bbclass, but I haven't verified it yet. I have only seen that there was already a bug https://lore.kernel.org/all/fa38064e-eea8-8301-cb78-5e846b1341f2@emagii.com/T/ but it is already fixed. Generally the chain looks like this: Recipe A DEPENDS on recipe B, which DEPENDS alike but on recipe C and creates user and group to which is being added user from recipe C Known issue that may be related to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13419 https://bugzilla.yoctoproject.org/show_bug.cgi?id=13279 Pavel may take a look. Randy I have already found where it is and what is the cause of it I have written it on https://bugzilla.yoctoproject.org/show_bug.cgi?id=13904 Additionally we will try in Welotec team to solve this, because this issue is on one side trivial and on the other difficult. The difficulty in it is how to pass the proper order of executin these scripts into this for loop in basepasswd_sysroot_postinst bash script... Piotr, I'll leave to to you and Pavel to work out and set the ownership of the bug. Thanks for explaining what your plans are. Yeah, sounds great:) Pavel if it's possible please contact me and we can discuss the issue. Created attachment 4972 [details]
Fix user add temporarily
Correct order of posinsts execution passwd db
Run user add scripts in three passes, first for adding groups,
then users and at the end group memberships.
There were some changes in useradd recently. Need to check if the bug is still valid. Moving to M3 The issue is still valid as Richard has fixed only one part of it and it has been even discussed with him. I think that after this patch https://git.openembedded.org/openembedded-core/commit/?id=322ef726132a47d977d2c6ee41de5358f1e85994 merged to master, the bug is fixed, but I still need to test it with master release, which I haven't done yet... Bulk move of 5.1 bugs to 5.2. -- YP bug review (Randy) Seems to be resolved by: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15084#c11 |