]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: fix parallel building issue
authorRoy.Li <rongqing.li@windriver.com>
Tue, 13 Aug 2013 08:20:18 +0000 (16:20 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Sep 2013 15:48:38 +0000 (16:48 +0100)
commit4b3e353a532c7b68b0bb86df4a2fcc44f8bb3ef2
tree4f1e82521dd06f1aeb311fefb9120ff28906e66b
parentb26157a8b575aa7b5c96ffe782fc23ec0920311c
sstate.bbclass: fix parallel building issue

sstate_package creates hardlink from sysroot to SSTATE_BUILDDIR, then
sstate_create_package will store SSTATE_BUILDDIR into a archive file by
tar, but once other packages install the same file into sysroot, the
creating the archive file will fail with below error:

    DEBUG: Executing shell function sstate_create_package
    tar: x86_64-linux/usr/share/aclocal/xorg-macros.m4: file changed as we read it

This kind of error is harmless, use --ignore-failed-read to ignore it.
The error in tar occurs when the timestamp of the file changes and this
can happen when the number of symlinks change. The file will be included
in the archive.

[YOCTO #5122]

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass