]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Use -m option to tar when unpacking sstate
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Oct 2012 12:20:20 +0000 (13:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Oct 2012 11:03:26 +0000 (12:03 +0100)
We've noticed failures on the project autobuilders where a shared sstate
directory is used across multiple builders and the clocks become skewed.

Most of the time this causes harmless building but if this happens where
an environment is changed (make install vs make in qt4-x11-free for example),
the build can fail.

This avoids modification times in the future and should make builds safer
in shared environments sstate was designed for.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 3fcaa659ea6f33bfbd4a74a7c35b6cda3e28fdfe..b60c7660934f28beaafb10a8a21ee43bfa7f698f 100644 (file)
@@ -544,7 +544,7 @@ sstate_create_package () {
 sstate_unpack_package () {
        mkdir -p ${SSTATE_INSTDIR}
        cd ${SSTATE_INSTDIR}
-       tar -xvzf ${SSTATE_PKG}
+       tar -xmvzf ${SSTATE_PKG}
 }
 
 # Need to inject information about classes not in the global configuration scope