From: Richard Purdie Date: Sat, 5 Aug 2023 10:04:47 +0000 (+0100) Subject: sstatesig: Update to match bitbake changes to runtaskdeps X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f1148eeab2500022d7e17feadf80027a01a51f1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git sstatesig: Update to match bitbake changes to runtaskdeps Bitbake has changes to runtaskdeps in siginfo files to fix bugs in being able to locate them for sstate and hash debugging purposes. This patch updates to match the changes to the format. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index f943df181e6..633a0fd4502 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py @@ -215,6 +215,9 @@ class SignatureGeneratorOEBasicHashMixIn(object): def dump_lockedsigs(self, sigfile, taskfilter=None): types = {} for tid in self.runtaskdeps: + # Bitbake changed this to a tuple in newer versions + if isinstance(tid, tuple): + tid = tid[1] if taskfilter: if not tid in taskfilter: continue @@ -321,11 +324,12 @@ def find_siginfo(pn, taskname, taskhashlist, d): if not taskname: # We have to derive pn and taskname key = pn - splitit = key.split('.bb:') - taskname = splitit[1] - pn = os.path.basename(splitit[0]).split('_')[0] - if key.startswith('virtual:native:'): - pn = pn + '-native' + if key.startswith("mc:"): + # mc::: + _, _, pn, taskname = key.split(':', 3) + else: + # : + pn, taskname = key.split(':', 1) hashfiles = {} filedates = {}