summaryrefslogtreecommitdiffstats
path: root/meta/classes/recipe_sanity.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-02-19 00:48:35 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-21 09:32:41 +0000
commitbee556aa0d40215e4ad24cd7ee496adb710ba39b (patch)
treed7bb4b80d293f8d8983b7f59c5a451c2aa481a7b /meta/classes/recipe_sanity.bbclass
parent2d293bd8b308961f93a7d0033c245a5784a0fa5d (diff)
downloadpoky-bee556aa0d40215e4ad24cd7ee496adb710ba39b.tar.gz
recipe_sanity.bbclass: skip DataSmart in recipe_sanity_eh()
Fixed: $ bitbake quilt -crecipe_sanity File "/path/to/poky/bitbake/lib/bb/siggen.py", line 261, in dump_sigtask p = pickle.dump(data, stream, -1) PicklingError: Can't pickle <COWDict Level: 1 Current Keys: 0>: attribute lookup bb.COW.C failed This is because of: cfgdata[k] = d.getVar(k, 0) If d.getVar(k, 0) is a DataSmart (for example, BB_ORIGENV), it won't have the attribute of bb.COW.C, so the error happend. (From OE-Core rev: 9979f8ad588564cd9d177e24a28ceefefec4df7d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/recipe_sanity.bbclass')
-rw-r--r--meta/classes/recipe_sanity.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/recipe_sanity.bbclass b/meta/classes/recipe_sanity.bbclass
index ee04e333db..295611f0f8 100644
--- a/meta/classes/recipe_sanity.bbclass
+++ b/meta/classes/recipe_sanity.bbclass
@@ -143,9 +143,8 @@ python recipe_sanity_eh () {
143 143
144 cfgdata = {} 144 cfgdata = {}
145 for k in d.keys(): 145 for k in d.keys():
146 #for k in ["S", "PR", "PV", "PN", "DESCRIPTION", "LICENSE", "DEPENDS", 146 if not isinstance(d.getVar(k, 0), bb.data_smart.DataSmart):
147 # "SECTION"]: 147 cfgdata[k] = d.getVar(k, 0)
148 cfgdata[k] = d.getVar(k, 0)
149 148
150 d.setVar("__recipe_sanity_cfgdata", cfgdata) 149 d.setVar("__recipe_sanity_cfgdata", cfgdata)
151 #d.setVar("__recipe_sanity_cfgdata", d) 150 #d.setVar("__recipe_sanity_cfgdata", d)