Aaron Cohen
2018-11-26 20:34:27 UTC
I'm trying to write a recipe for a local repo that is kept in mercurial,
fetcher to later in the urldata_init method, after some necessary variables
have been initialized. I'm not sure if I'm alone in seeing this problem or
not?
Thanks for any help,
Aaron
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
line 808, in DataSmart.getVarFlag(var='PV', flag='_content', expand=True,
line 108, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(9,
raise Exception("variable %s references itself!"
% self.varname)
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
line 808, in DataSmart.getVarFlag(var='SRCPV', flag='_content',
'FetchData' object has no attribute 'moddir'
I've fixed this with the following patch, which moves some code in the Hgline 808, in DataSmart.getVarFlag(var='PV', flag='_content', expand=True,
parser = self.expandWithRefs(value, cachename)
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",s = __expand_var_regexp__.sub(varparse.var_sub, s)
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",line 108, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(9,
raise Exception("variable %s references itself!"
% self.varname)
var = self.d.getVarFlag(key, "_content")
self.references.add(key)File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
line 808, in DataSmart.getVarFlag(var='SRCPV', flag='_content',
parser = self.expandWithRefs(value, cachename)
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",raise ExpansionError(varname, s, exc) from exc
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression'FetchData' object has no attribute 'moddir'
fetcher to later in the urldata_init method, after some necessary variables
have been initialized. I'm not sure if I'm alone in seeing this problem or
not?
Thanks for any help,
Aaron