<div dir="ltr">Also, what is it that is supposed to create the $(BUILDDIR)/tmp/hosttools/hg symlink?<div><br></div><div>For some reason, this link is not created for me automatically. It works fine if I create it manually.</div><div><br></div><div>--Aaron</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 26, 2018 at 3:34 PM Aaron Cohen <<a href="mailto:aaron@assonance.org">aaron@assonance.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>I'm trying to write a recipe for a local repo that is kept in mercurial, and encountering the following problem:</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Traceback (most recent call last):<br>  File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py", line 808, in DataSmart.getVarFlag(var='PV', flag='_content', expand=True, noweakdefault=False, parsing=False, retparser=False):<br>  Â  Â  Â  Â  Â  Â if expand or retparser:<br>  Â  >  Â  Â  Â  Â  Â  parser = self.expandWithRefs(value, cachename)<br>  Â  Â  Â  Â  Â  Â if expand:<br>  File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py", line 416, in DataSmart.expandWithRefs(s='0.0.4+git${SRCPV}', varname='PV'):<br>  Â  Â  Â  Â  Â  Â  Â  Â try:<br>  Â  >  Â  Â  Â  Â  Â  Â  Â  s = __expand_var_regexp__.sub(varparse.var_sub, s)<br>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â try:<br>  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, 17), match='${SRCPV}'>):<br>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â raise Exception("variable %s references itself!" % self.varname)<br>  Â  >  Â  Â  Â  Â  Â  var = self.d.getVarFlag(key, "_content")<br>  Â  Â  Â  Â  Â  Â  Â  Â self.references.add(key)<br>  File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py", line 808, in DataSmart.getVarFlag(var='SRCPV', flag='_content', expand=True, noweakdefault=False, parsing=False, retparser=False):<br>  Â  Â  Â  Â  Â  Â if expand or retparser:<br>  Â  >  Â  Â  Â  Â  Â  parser = self.expandWithRefs(value, cachename)<br>  Â  Â  Â  Â  Â  Â if expand:<br>  File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py", line 430, in DataSmart.expandWithRefs(s='${@bb.fetch2.get_srcrev(d)}', varname='SRCPV'):<br>  Â  Â  Â  Â  Â  Â  Â  Â except Exception as exc:<br>  Â  >  Â  Â  Â  Â  Â  Â  Â  raise ExpansionError(varname, s, exc) from exc<br>  Â  Â <br>bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception AttributeError: 'FetchData' object has no attribute 'moddir'</blockquote><div><br></div><div>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?</div><div><br></div><div>Thanks for any help,</div><div>Aaron</div><div><br></div><div><br></div></div></div>
</blockquote></div>