[poky] [PATCH 3/3] siggen.py: remove path in 'runtaskdeps'

Kevin Tian kevin.tian at intel.com
Thu Jan 20 03:24:01 PST 2011


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 at 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




More information about the poky mailing list