]> code.ossystems Code Review - openembedded-core.git/commit
sstate: Remove stale objects before the main build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Mar 2021 17:57:45 +0000 (17:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Mar 2021 11:39:55 +0000 (11:39 +0000)
commit60e77b1777c6c304aa1d629c4cfdabe0daa22eb1
tree1117cd2384da52550cacc74b7dd8a6f636f576ba
parente5f457cb81698a517a11df48131169b3a40105ce
sstate: Remove stale objects before the main build

The split of util-linux-uuid out from util-linux caused some interesting
sstate file overlap errors on existing build directories. This is a
challenge to handle since util-linux depends on util-linux-uuid and has
overlapping files in package data and deploy/packages directories.
The util-linux build happens later and is what would clean up those files
but it happens too late for uuid.

Fixing this is hard as we don't know the taskhashes until the task
graph is calculated. Once that is ready, we can compare the hashes
with the existing hashes and know which sstate tasks are "stale".

This patch adds a handler which iterates the sstate manifests looking
for matching stamp paths and then removes the manifests along with the
associated stamp files.

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