* [PATCH] sstate: Use -m option to tar when unpacking sstate
@ 2012-10-11 12:20 Richard Purdie
2012-10-11 13:32 ` Enrico Scholz
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2012-10-11 12:20 UTC (permalink / raw)
To: openembedded-core
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>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 3fcaa65..b60c766 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sstate: Use -m option to tar when unpacking sstate
2012-10-11 12:20 [PATCH] sstate: Use -m option to tar when unpacking sstate Richard Purdie
@ 2012-10-11 13:32 ` Enrico Scholz
0 siblings, 0 replies; 2+ messages in thread
From: Enrico Scholz @ 2012-10-11 13:32 UTC (permalink / raw)
To: openembedded-core; +Cc: Richard Purdie
Richard Purdie
<richard.purdie-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
writes:
> We've noticed failures on the project autobuilders where a shared
> sstate directory is used across multiple builders and the clocks
> become skewed.
I think, 'ntp' is a better way to solve this...
> This avoids modification times in the future and should make builds
> safer in shared environments sstate was designed for.
But this will remove information about the age of (packaged) files,
won't it? E.g. previously, I was able to see on the target machine,
when a file was modified. It is not a critical feature but often very
useful.
Now, the date on image will be either the former date or the date when
the staged tarball will be extracted (--> e.g. after 'bitbake -c clean').
Sounds confusing.
> - tar -xvzf ${SSTATE_PKG}
> + tar -xmvzf ${SSTATE_PKG}
Enrico
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-11 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11 12:20 [PATCH] sstate: Use -m option to tar when unpacking sstate Richard Purdie
2012-10-11 13:32 ` Enrico Scholz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox