Re: [PATCH 2/2] oe.path: preserve xattr in copytree() and copyhardlinktree()

Richard Purdie
2016-09-06T15:26:14Z

On Tue, 2016-09-06 at 17:22 +0200, Nicolas Dechesne wrote:
> What happens is that I am installing coreutils in my images, and i
> have a copy of 'cp' in my sysroot *and* I don't have xattrs in
> DISTRO_FEATURES. As a consequence the 'cp' command which is invoked
> does not have xattrs support, while my host 'cp' command has it...
>
> e.g.
>
> ~/work/oe-rpb-master/build-rpb$
> tmp-rpb-glibc/sysroots/x86_64-linux/usr/bin/cp -afl --preserve=xattr
> foo bar
> tmp-rpb-glibc/sysroots/x86_64-linux/usr/bin/cp: cannot preserve
> extended attributes, cp is built without xattr support
>
> while this one works fine:
>
> ~/work/oe-rpb-master/build-rpb$ cp -afl --preserve=xattr foo bar
>
> Should we revert these patches or am I missing anything?

Did you have:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=92fc3ef9738165300a4daed4c90526dbbad43149

Cheers,

Richard