From 055402e5504f041c346571e243c7cf0894955cad Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 14 Aug 2018 17:23:10 +0000 Subject: sstate/lib.oe.path: Ensure file sparseness is preserved Files when restored from sstate were missing their sparseness. Fix up various functions to preserve this and make things more deterministic. Signed-off-by: Richard Purdie --- meta/classes/sstate.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes/sstate.bbclass') 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 () { TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` # Use pigz if available - OPT="-cz" + OPT="-czS" if [ -x "$(command -v pigz)" ]; then - OPT="-I pigz -c" + OPT="-I pigz -cS" fi # Need to handle empty directories -- cgit 1.2.3-korg