summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2013-08-13 16:20:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-14 08:20:59 +0100
commit0acde33c75f90e06516c0b9ce4291921aa9d4e58 (patch)
treeaeb3697516f1e39117e8775a32299c96e8b5c8a4 /meta
parentca1b5ddb8621132634cad421d4eb86f4b82d47bd (diff)
downloadpoky-0acde33c75f90e06516c0b9ce4291921aa9d4e58.tar.gz
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] (From OE-Core rev: 4b3e353a532c7b68b0bb86df4a2fcc44f8bb3ef2) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index b088e58d98..37ade3f7a6 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -566,7 +566,7 @@ sstate_create_package () {
566 TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` 566 TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
567 # Need to handle empty directories 567 # Need to handle empty directories
568 if [ "$(ls -A)" ]; then 568 if [ "$(ls -A)" ]; then
569 tar -czf $TFILE * 569 tar --ignore-failed-read -czf $TFILE *
570 else 570 else
571 tar -cz --file=$TFILE --files-from=/dev/null 571 tar -cz --file=$TFILE --files-from=/dev/null
572 fi 572 fi