[OE-core] [PATCH] sstate.bbclass: preserve time when unstaging files

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Mon Oct 29 15:11:05 UTC 2012


When packages are recreated after a 'bitbake -c clean', files will get
wrong date because tar has been invoked with the '-m' option.

Correct timestamps are useful for bug hunting and there are better
ways (e.g. using of ntp) than using '-m'.

Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
---
 meta/classes/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index cbb14e1..d7c4e11 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -551,7 +551,7 @@ sstate_create_package () {
 sstate_unpack_package () {
 	mkdir -p ${SSTATE_INSTDIR}
 	cd ${SSTATE_INSTDIR}
-	tar -xmvzf ${SSTATE_PKG}
+	tar -xvzf ${SSTATE_PKG}
 }
 
 # Need to inject information about classes not in the global configuration scope
-- 
1.7.11.7





More information about the Openembedded-core mailing list