summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-07 17:47:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-08 11:14:31 +0000
commit01a61c8e6e50c647eb6da198cdded29a65d94e12 (patch)
tree2429c6bca00e2d49dd3f77aa320c97919007f9ba /bitbake/lib/bb
parent2db07ca8a33e776f19f928a5e2d2700a8c2b3714 (diff)
downloadpoky-01a61c8e6e50c647eb6da198cdded29a65d94e12.tar.gz
bitbake: siggen: Fix shared work checksum mismatch/rebuild issues
Similar to the last shared work task signature bug, we've found another one. Looking at the improved output of diffsigs in this case: runtaskdeps changed from [ 'autoconf_2.69.bb.do_populate_sysroot:virtual:native', 'gnu-config_20120814.bb.do_populate_sysroot:virtual:native', 'libgcc-initial_4.9.bb.do_patch:virtual:nativesdk' ] to [ 'autoconf_2.69.bb.do_populate_sysroot:virtual:native', 'gcc-crosssdk-initial_4.9.bb.do_patch', 'gnu-config_20120814.bb.do_populate_sysroot:virtual:native' ] so we can get a different task hash since libgcc sorts before gnu-config and gcc sorts after it. We could do with a way of fixing this, the best I can come up with is to include a single parent directory. Since recipes are never at the top of any metadata trees I've seen, this should suffice for now. I'm planning to burn the concept of shared work within bitbake and do something at the metadata level in the 1.8 timeframe as its just too fragile as things stand and hard to fix well. (Bitbake rev: d753644c67d163f338f2bdc3d600203e8b1a5734) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/siggen.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index e92a9c48a7..5103073539 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -295,10 +295,9 @@ def dump_this_task(outfile, d):
295 bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile") 295 bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile")
296 296
297def clean_basepath(a): 297def clean_basepath(a):
298 b = a.rsplit("/", 2)[1] + a.rsplit("/", 2)[2]
298 if a.startswith("virtual:"): 299 if a.startswith("virtual:"):
299 b = a.rsplit("/", 1)[1] + ":" + a.rsplit(":", 1)[0] 300 b = b + ":" + a.rsplit(":", 1)[0]
300 else:
301 b = a.rsplit("/", 1)[1]
302 return b 301 return b
303 302
304def clean_basepaths(a): 303def clean_basepaths(a):