<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13829</bug_id>
          
          <creation_ts>2020-03-12 11:43:56 +0000</creation_ts>
          <short_desc>class devupstream interacts badly with devtool</short_desc>
          <delta_ts>2020-05-07 15:02:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Lord">chrislord.net</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86703</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Lord">chrislord.net</who>
    <bug_when>2020-03-12 11:43:56 +0000</bug_when>
    <thetext>If you try to modify a recipe that has a devupstream variant selected as the preferred version, you get this error:

  File &quot;Var &lt;SRCPV&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py&quot;, line 745, in get_srcrev
    fetcher = Fetch(d.getVar(&apos;SRC_URI&apos;).split(), d)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 604, in getVar
    return self.getVarFlag(var, &quot;_content&quot;, expand, noweakdefault, parsing)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 409, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 97, in var_sub
    var = self.d.getVarFlag(key, &quot;_content&quot;)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 424, in expandWithRefs
    raise ExpansionError(varname, s, exc).with_traceback(tb) from exc
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 409, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 97, in var_sub
    var = self.d.getVarFlag(key, &quot;_content&quot;)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File &quot;/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py&quot;, line 404, in expandWithRefs
    varparse = VariableParse(varname, self)
bb.data_smart.ExpansionError: Failure expanding variable PV, expression was trunk+git${SRCPV} which triggered exception RecursionError: maximum recursion depth exceeded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87175</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2020-05-07 15:02:06 +0000</bug_when>
    <thetext>The following commits in master (and dunfell) should fix this problem:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d53958766e2c766b95b3947f69b64c409ed433d8
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=25f1f4644d736108737846022231d21952e90d84
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4e7d13232a97f18fc99f96081292aec3ea3a5d94
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1f0d37436f031aceaf9561d424c342d92afd91a4
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=70ee928f8f4152f198f4db61517c958d54f1c0a7
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=03826c61fdb9949d6812c586e5407249fbb9bee9

Unfortunately I think this is too invasive to backport to previous releases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>