diff options
-rw-r--r-- | meta/classes/sstate.bbclass | 4 | ||||
-rw-r--r-- | meta/lib/oe/path.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index cd42db665c..402b9e9c5c 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -721,9 +721,9 @@ sstate_create_package () { | |||
721 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` | 721 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` |
722 | 722 | ||
723 | # Use pigz if available | 723 | # Use pigz if available |
724 | OPT="-cz" | 724 | OPT="-czS" |
725 | if [ -x "$(command -v pigz)" ]; then | 725 | if [ -x "$(command -v pigz)" ]; then |
726 | OPT="-I pigz -c" | 726 | OPT="-I pigz -cS" |
727 | fi | 727 | fi |
728 | 728 | ||
729 | # Need to handle empty directories | 729 | # Need to handle empty directories |
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index be02218c31..1e24d0586b 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py | |||
@@ -86,7 +86,7 @@ def copytree(src, dst): | |||
86 | # This way we also preserve hardlinks between files in the tree. | 86 | # This way we also preserve hardlinks between files in the tree. |
87 | 87 | ||
88 | bb.utils.mkdirhier(dst) | 88 | bb.utils.mkdirhier(dst) |
89 | cmd = "tar --xattrs --xattrs-include='*' -cf - -C %s -p . | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dst) | 89 | cmd = "tar --xattrs --xattrs-include='*' -cf - -S -C %s -p . | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dst) |
90 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) | 90 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) |
91 | 91 | ||
92 | def copyhardlinktree(src, dst): | 92 | def copyhardlinktree(src, dst): |
@@ -98,7 +98,7 @@ def copyhardlinktree(src, dst): | |||
98 | if (os.stat(src).st_dev == os.stat(dst).st_dev): | 98 | if (os.stat(src).st_dev == os.stat(dst).st_dev): |
99 | # Need to copy directories only with tar first since cp will error if two | 99 | # Need to copy directories only with tar first since cp will error if two |
100 | # writers try and create a directory at the same time | 100 | # writers try and create a directory at the same time |
101 | cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst) | 101 | cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -S -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst) |
102 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) | 102 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) |
103 | source = '' | 103 | source = '' |
104 | if os.path.isdir(src): | 104 | if os.path.isdir(src): |