From: Kevin Tian <kevin.tian@intel.com>
To: poky@pokylinux.org
Subject: [PATCH 3/3] siggen.py: remove path in 'runtaskdeps'
Date: Thu, 20 Jan 2011 19:24:01 +0800 [thread overview]
Message-ID: <b9dded$hn7bvd@orsmga002.jf.intel.com> (raw)
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
reply other threads:[~2011-01-20 11:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='b9dded$hn7bvd@orsmga002.jf.intel.com' \
--to=kevin.tian@intel.com \
--cc=poky@pokylinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox