summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@gmail.com>2022-01-14 08:41:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-15 16:23:24 +0000
commitb57407fbdffa56741df45fbcbe9461293523d4d5 (patch)
treeb83eee40f2745237bdd65b116888348a22ad9273 /meta/classes/sstate.bbclass
parentf1af0c1f97cfb58017191ba9c703178270307213 (diff)
downloadpoky-b57407fbdffa56741df45fbcbe9461293523d4d5.tar.gz
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 <richard.purdie@linuxfoundation.org> (From OE-Core rev: 32f01e57e1e915e8121609fb48b0b0254e625957) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
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 () {
901 ZSTD="pzstd -p ${ZSTD_THREADS}" 901 ZSTD="pzstd -p ${ZSTD_THREADS}"
902 fi 902 fi
903 903
904 tar -I "$ZSTD" -xvf ${SSTATE_PKG} 904 tar -I "$ZSTD" -xvpf ${SSTATE_PKG}
905 # update .siginfo atime on local/NFS mirror if it is a symbolic link 905 # update .siginfo atime on local/NFS mirror if it is a symbolic link
906 [ ! -h ${SSTATE_PKG}.siginfo ] || touch -a ${SSTATE_PKG}.siginfo 2>/dev/null || true 906 [ ! -h ${SSTATE_PKG}.siginfo ] || touch -a ${SSTATE_PKG}.siginfo 2>/dev/null || true
907 # update each symbolic link instead of any referenced file 907 # update each symbolic link instead of any referenced file