sstatesig: don't squash dependencies of useradd packages
PATCH 1/1 sstatesig: don't squash dependencies of useradd packages
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]
--- meta/lib/oe/sstatesig.py | 7 +++++++ 1 file changed, 7 insertions(+)
meta/lib/oe/sstatesig.py +7 -0
@@ -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
Signature · 1 line
2.4.0
Ping.
Quoted 44 lines · Maxin B. John
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 <[email protected]>--- meta/lib/oe/sstatesig.py | 7 +++++++ 1 file changed, 7 insertions(+)meta/lib/oe/sstatesig.py +7
-0@@ -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 FalseSignature · 7 lines
2.4.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 1 line · Maxin B. John
Ping.
This never merged as I was never 100% convinced this was the correct way to solve this problem. I'd be interested to understand if the sstatesig tests in oe-selftest worked after this.
I'm hoping this issue has also now been resolved in a different way though the switch to recipe specific sysroots. Would you be able test if recipe specific sysroots have addressed this issue?
Cheers,
Richard
Hi RP,
Quoted 10 lines · Richard Purdie
Quoted 1 line · Maxin B. John
Ping.
This never merged as I was never 100% convinced this was the correct way to solve this problem. I'd be interested to understand if the sstatesig tests in oe-selftest worked after this.
I'm hoping this issue has also now been resolved in a different way though the switch to recipe specific sysroots. Would you be able test if recipe specific sysroots have addressed this issue?
Thanks for looking into this. Tested this (bug #8078) on the latest master with recipe specific sysroots modification and found that the error still exists.
Quoted 2 lines
Cheers,
Richard
Best Regards,
Maxin