]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: Detect overwriting files in sstate controlled directories
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Aug 2012 15:48:14 +0000 (15:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 Aug 2012 00:29:13 +0000 (17:29 -0700)
commit1f1b6f93d6b7aa8c9bd9bb5b1826997812e36932
tree149a7710d637a2111d00c282d333ae414c21077c
parent4337545ea05ec9d9f64244bb6be83fab329478d1
sstate.bbclass: Detect overwriting files in sstate controlled directories

We have a potential problem where two sstate packages try and touch the same
file. This adds code which will print a warning whenever this happens.

The implementation does but by maintaining a master file list and comparing
file accesses against this. There are a number of places we have duplicate
accesses which are harmless, mostly in the deploy directory so these
are whitelisted.

For now the code prints warnings, this could be strengthened in future to
become error messages. Whilst working on this code on and off over the past
few months various issues were uncovered, some serious.

[YOCTO #238]

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