Poky Project Discussions
 help / color / mirror / Atom feed
* [PATCH 3/3] siggen.py: remove path in 'runtaskdeps'
@ 2011-01-20 11:24 Kevin Tian
  0 siblings, 0 replies; only message in thread
From: Kevin Tian @ 2011-01-20 11:24 UTC (permalink / raw)
  To: poky

the absolute path brings trouble when comparing .siginfo generated from different
src tree, since they always differ. Actually what we require is just the fn+task,
so remove path info from 'runtaskdeps' to make it relocatable.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
---
 bitbake/lib/bb/siggen.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index a101ce8..c876b3c 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -174,10 +174,14 @@ class SignatureGeneratorBasic(SignatureGenerator):
             data['varvals'][dep] = self.lookupcache[fn][dep]
 
         if runtime:
-            data['runtaskdeps'] = self.runtaskdeps[k]
+            data['runtaskdeps'] = []
             data['runtaskhashes'] = {}
-            for dep in data['runtaskdeps']:
-                data['runtaskhashes'][dep] = self.taskhash[dep]
+            for dep in self.runtaskdeps[k]:
+                # keep "virtual:native:" and "fn.task". remove the path.
+                dep1 = dep.split('/')
+                dep2 = dep1[0] + dep1[-1]
+                data['runtaskdeps'].append(dep2)
+                data['runtaskhashes'][dep2] = self.taskhash[dep]
 
         p = pickle.Pickler(file(sigfile, "wb"), -1)
         p.dump(data)
-- 
1.6.0.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-20 11:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-20 11:24 [PATCH 3/3] siggen.py: remove path in 'runtaskdeps' Kevin Tian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox