Bug 13829 - class devupstream interacts badly with devtool
Summary: class devupstream interacts badly with devtool
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.2 M1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-03-12 11:43 UTC by Chris Lord
Modified: 2020-05-07 15:02 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lord 2020-03-12 11:43:56 UTC
If you try to modify a recipe that has a devupstream variant selected as the preferred version, you get this error:

  File "Var <SRCPV>", line 1, in <module>
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 745, in get_srcrev
    fetcher = Fetch(d.getVar('SRC_URI').split(), d)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 604, in getVar
    return self.getVarFlag(var, "_content", expand, noweakdefault, parsing)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 409, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 97, in var_sub
    var = self.d.getVarFlag(key, "_content")
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 424, in expandWithRefs
    raise ExpansionError(varname, s, exc).with_traceback(tb) from exc
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 409, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 97, in var_sub
    var = self.d.getVarFlag(key, "_content")
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
    parser = self.expandWithRefs(value, cachename)
  File "/home/cwiiis/Projects/perf-browser-bsp/sources/poky/bitbake/lib/bb/data_smart.py", 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