[oe-commits] Roy.Li : sstate.bbclass: fix parallel building issue
git at git.openembedded.org
git at git.openembedded.org
Thu Sep 12 15:38:46 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 4b3e353a532c7b68b0bb86df4a2fcc44f8bb3ef2
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4b3e353a532c7b68b0bb86df4a2fcc44f8bb3ef2
Author: Roy.Li <rongqing.li at windriver.com>
Date: Tue Aug 13 16:20:18 2013 +0800
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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/sstate.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index b088e58..37ade3f 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -566,7 +566,7 @@ sstate_create_package () {
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
# Need to handle empty directories
if [ "$(ls -A)" ]; then
- tar -czf $TFILE *
+ tar --ignore-failed-read -czf $TFILE *
else
tar -cz --file=$TFILE --files-from=/dev/null
fi
More information about the Openembedded-commits
mailing list