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

Nicolas Dechesne nicolas.dechesne at linaro.org
Tue Sep 6 15:34:04 UTC 2016


On Tue, Sep 6, 2016 at 5:26 PM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> 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

right. I am seeing it. The ERROR above happens when building
quilt-native , after I updated my layers. So it's probably a race
conditition. we need to rebuild quilt-native, so that we can rebuild
coreutils with the change you mention.. but with the --preserve=xattr
patch we can't rebuild quilt-native ;-)

so, i have removed coreutils from my sysroot and it is working now..
but we clearly have an 'upgrade' issue.. i am not going to be the only
one..



More information about the Openembedded-core mailing list