All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sstatesig: don't squash dependencies of useradd packages
@ 2016-12-12 13:48 Maxin B. John
  2017-01-23 14:55 ` Maxin B. John
  0 siblings, 1 reply; 4+ messages in thread
From: Maxin B. John @ 2016-12-12 13:48 UTC (permalink / raw)
  To: openembedded-core

Without this change, sstate dependency filter squashes dependencies
of packages which inherits useradd class. That causes failures while
rebuilding it for another MACHINE.

Fixes [YOCTO #8078]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 meta/lib/oe/sstatesig.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 8224e3a..88b2290 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -17,6 +17,9 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
     def isAllArch(fn):
         inherits = " ".join(dataCache.inherits[fn])
         return "/allarch.bbclass" in inherits
+    def isUserAdd(fn):
+        inherits = " ".join(dataCache.inherits[fn])
+        return "/useradd.bbclass" in inherits
     def isImage(fn):
         return "/image.bbclass" in " ".join(dataCache.inherits[fn])
 
@@ -39,6 +42,10 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
 
     # Only target packages beyond here
 
+    # Don't squash the dependencies of packages inheritting useradd class
+    if  isUserAdd(fn):
+        return True
+
     # allarch packagegroups are assumed to have well behaved names which don't change between architecures/tunes
     if isPackageGroup(fn) and isAllArch(fn) and not isNative(depname):
         return False  
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-25 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-12 13:48 [PATCH] sstatesig: don't squash dependencies of useradd packages Maxin B. John
2017-01-23 14:55 ` Maxin B. John
2017-01-23 15:59   ` Richard Purdie
2017-01-25 14:43     ` Maxin B. John

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.