* [PATCH] sstatesig: Anchor inherits class tests
@ 2014-03-30 22:53 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-03-30 22:53 UTC (permalink / raw)
To: openembedded-core
There was a nasty sstate hash corruption issue occurring where the
fact the testimage bbclass was inherited meant that the checksum
changed due to testimage.bbclass being confused with image.bbclass.
This patch anchors the bbclass names to avoid this confusion.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 8b0e344..aa25c3a 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -10,12 +10,12 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
return x.startswith("nativesdk-")
def isKernel(fn):
inherits = " ".join(dataCache.inherits[fn])
- return inherits.find("module-base.bbclass") != -1 or inherits.find("linux-kernel-base.bbclass") != -1
+ return inherits.find("/module-base.bbclass") != -1 or inherits.find("/linux-kernel-base.bbclass") != -1
def isPackageGroup(fn):
inherits = " ".join(dataCache.inherits[fn])
- return "packagegroup.bbclass" in inherits
+ return "/packagegroup.bbclass" in inherits
def isImage(fn):
- return "image.bbclass" in " ".join(dataCache.inherits[fn])
+ return "/image.bbclass" in " ".join(dataCache.inherits[fn])
# Always include our own inter-task dependencies
if recipename == depname:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-30 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30 22:53 [PATCH] sstatesig: Anchor inherits class tests Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox