From 5784b20d132f00c92caae8f2c40525bd19a92d61 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 12 Aug 2018 22:29:49 +0000 Subject: 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 --- meta/classes/package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/package.bbclass') 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 () { # Start by package population by taking a copy of the installed # files to operate on # Preserve sparse files and hard links - cmd = 'tar -cf - -C %s -p . | tar -xf - -C %s' % (dest, dvar) + cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (dest, dvar) subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) # replace RPATHs for the nativesdk binaries, to make them relocatable -- cgit v1.2.3-54-g00ecf