[OE-core] [PATCH 5/5] package.bbclass: fixup_perms - symlink bug fix

Phil Blundell philb at gnu.org
Mon Jul 25 14:15:22 UTC 2011


On Mon, 2011-07-25 at 16:14 +0200, Enrico Scholz wrote:
> Phil Blundell <philb-mXXj517/zsQ at public.gmane.org> writes:
> 
> >> We don't want to change the owner/mode of symlinks, as this may
> >> affect the target of the link.  Also broken links will fail as well.
> >
> > This seems like it will cause links themselves to end up getting shipped
> > under the UID/GID that was used for building
> 
> there should be used 'os.lchown()' instead of 'os.chown()' in fix_perms()
> and the 'os.chmod()' call must be omitted for links.

Right, exactly.  I think that would be a much better change.

p.






More information about the Openembedded-core mailing list