]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
sstatesig: be more precise and show the full path in exceptions
authorJose Quaresma <quaresma.jose@gmail.com>
Mon, 9 Oct 2023 08:40:51 +0000 (08:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Oct 2023 12:38:54 +0000 (13:38 +0100)
commit90f84e345950a02bf91f823cc9c6d893e7cd1100
tree3a36d8227cdbd84f067d1d7c437ce59234c8f7d3
parent3e86f72fc2e1cc2e5ea4b4499722d736941167ce
sstatesig: be more precise and show the full path in exceptions

Also remove the warning than doesn't make sense as the code will generate
an exception and bitbake will abort.

Before:
| WARNING: core-image-minimal-initramfs-1.0-r0 do_image_complete: KeyError in .
| Exception: Exception: KeyError: 'getpwuid(): uid not found: xxxxx'
| Path . is owned by uid xxxxx, gid yyy, which doesn't match any user/group on target. This may be due to host contamination.

After:
| Exception: Exception: KeyError: 'getpwuid(): uid not found: xxxxx'
| Path /build/tmp/work/intel_corei7_64-lmp-linux/core-image-minimal-initramfs/1.0-r0/sstate-build-image_complete is owned by uid xxxxx, gid yyy, which doesn't match any user/group on target. This may be due to host contamination.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/lib/oe/sstatesig.py