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.
Created attachment 5035 [details] suggested patches
This isn't supported, the recipe providing the user/group should be a dependency, then it will exist in the passwd/group files.
Closing as this is clearly unsupported and can be easily worked around by creating user