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
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.