[bitbake-devel] [PATCH 0/2] Signature-based rebuild improvements

Paul Eggleton paul.eggleton at linux.intel.com
Tue Jun 19 13:02:19 UTC 2012


On Tuesday 19 June 2012 06:43:53 Jason Wessel wrote:
> While the use cases described in the defect work, there is a new side
> effect.  The sstate dir starts to fill up with new sums for the what ever
> package you compile.  Perhaps this is some kind of trade off we have to
> live with, but I do thing it is worth discussing.
> 
> I start with a fully populated sstate.  I didn't make any code changes at
> all to any package, I just wanted to see the compile log from acl in this
> case.
> 
>     bitbake -f -c compile acl
>     bitbake acl

> The sstate sum is completely different due to the hash injection, but the
> code compiled for everything is the same.  There is probably no easy, cheap
> (as in cpu/wall time) way to have the best of both worlds.

Agreed, I think this is the simplest way to implement this feature in a way 
that the system remains consistent with shared state. Fortunately these days 
disk space is cheap, and there's always the sstate-cache-management.sh script 
in OE-Core/Poky which can help clean up the cache if buildup is a concern.

We could look at some code to try to clean up older files in the sstate cache 
on the fly, but I'd like to let the dust settle on some of these changes (and 
have a chance to work on some of the more pressing issues) before looking at 
that in detail if that's OK.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the bitbake-devel mailing list