| Summary: |
Using of uuid/guid of non-existing users causes KeyError |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Pavel Zhukov <pavel> |
| Component: |
core | Assignee: |
Pavel Zhukov <pavel> |
| Status: |
RESOLVED
INVALID
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Undecided
|
CC: |
meta.mr.watcher, meta.watcher, richard.purdie
|
| Version: |
5.0 | |
|
| Target Milestone: |
0.0.0 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
Don't know
|
| Attachments: |
|
do_install(){ install --owner=1234 --group=1234 -d -m 0755 ${D}/mydir } causes [1]. While the failure and the reasoning behind are clear however chown'ing to uuid/guid of nonexisting users is valid usecase and should be allowed (user may not exist at the moment of building of the package, network users, systemd sysusers, NFS etc etc). [1] File: '/mnt/builds/viso/viso-yocto-layer/oe-core/meta/lib/oe/sstatesig.py', lineno: 596, function: process 0592: else: 0593: add_perm(stat.S_IXOTH, 'x') 0594: 0595: try: *** 0596: update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name) 0597: update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name) 0598: except KeyError as e: 0599: msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match " 0600: "any user/group on target. This may be due to host contamination." % Exception: Exception: KeyError: 'getpwuid(): uid not found: 1234' Path /mnt/builds/viso/builds/build/tmp/work/core2-64-oe-linux/solutionmanager/git/sstate-build-package/package/mydir is owned by uid 1234, gid 1234, which doesn't match any user/group on target. This may be due to host contamination.