summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-12 22:29:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:31 +0100
commit5784b20d132f00c92caae8f2c40525bd19a92d61 (patch)
tree33c8b762851141c6abf3590ce71ba1932a134ee2 /meta/classes/package.bbclass
parent735f1394710aed860f8117002f13183be0321a84 (diff)
downloadpoky-5784b20d132f00c92caae8f2c40525bd19a92d61.tar.gz
package: Fix file copying to preserve sparse files
We want to preserve sparse files when building the system, add the option to tar to ensure we do this when copying files. (From OE-Core rev: d86da5ae386a8129a966a53901de160823f4d250) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 8459d39b27..a116948952 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -649,7 +649,7 @@ python perform_packagecopy () {
649 # Start by package population by taking a copy of the installed 649 # Start by package population by taking a copy of the installed
650 # files to operate on 650 # files to operate on
651 # Preserve sparse files and hard links 651 # Preserve sparse files and hard links
652 cmd = 'tar -cf - -C %s -p . | tar -xf - -C %s' % (dest, dvar) 652 cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (dest, dvar)
653 subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) 653 subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
654 654
655 # replace RPATHs for the nativesdk binaries, to make them relocatable 655 # replace RPATHs for the nativesdk binaries, to make them relocatable