Discussion:
[yocto] Mercurial fetcher doesn't work for me (patch included)
Aaron Cohen
2018-11-26 20:34:27 UTC
Permalink
I'm trying to write a recipe for a local repo that is kept in mercurial,
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
line 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'
I've fixed this with the following patch, which moves some code in the Hg
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
Aaron Cohen
2018-11-26 20:42:21 UTC
Permalink
Also, what is it that is supposed to create the
$(BUILDDIR)/tmp/hosttools/hg symlink?

For some reason, this link is not created for me automatically. It works
fine if I create it manually.

--Aaron
Post by Aaron Cohen
I'm trying to write a recipe for a local repo that is kept in mercurial,
File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
line 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,
AttributeError: 'FetchData' object has no attribute 'moddir'
I've fixed this with the following patch, which moves some code in the Hg
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
Loading...