Bug 12961

Summary: Files from COPY_LIC_DIRS have wrong owner on target
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ernst Persson <ernstp>
Component: deploymentAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ross.burton
Version: 2.4.5   
Target Milestone: 2.7   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ernst Persson 2018-10-16 13:04:59 UTC
The files installed on the target image by COPY_LIC_DIRS are owned by my local user that doesn't exist on target.
Looks like some missing fakeroot.
Comment 1 Ernst Persson 2018-10-16 13:10:48 UTC
For example the file
/usr/share/common-licenses/systemd/recipeinfo
Comment 2 Ross Burton 2018-10-17 12:20:17 UTC
Had a quick look at this: the code is using os.link to get files into the rootfs *from the deploy dir* which is why the ownership is wrong.