From: Jacob Kroon Date: Fri, 14 Jan 2022 07:41:38 +0000 (+0100) Subject: sstate: Preserve permissions when extracting tar archive X-Git-Tag: uninative-3.5~252 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=32f01e57e1e915e8121609fb48b0b0254e625957;p=openembedded-core.git sstate: Preserve permissions when extracting tar archive This is done by default when tar is run by the superuser, but for native recipes the corresponding task is not run as root under pseudo, so pass the flag explicitly. Suggested-by: Richard Purdie Signed-off-by: Jacob Kroon Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 645377fdd8..8ee32dba2d 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -901,7 +901,7 @@ sstate_unpack_package () { ZSTD="pzstd -p ${ZSTD_THREADS}" fi - tar -I "$ZSTD" -xvf ${SSTATE_PKG} + tar -I "$ZSTD" -xvpf ${SSTATE_PKG} # update .siginfo atime on local/NFS mirror if it is a symbolic link [ ! -h ${SSTATE_PKG}.siginfo ] || touch -a ${SSTATE_PKG}.siginfo 2>/dev/null || true # update each symbolic link instead of any referenced file