poky/scripts/lib/recipetool
Saul Wold 3e6184adcf recipetool: Fix circular reference in SRC_URI
When creating a new recipe.bb file for a binary, don't use BP which
includes the version information, instead use BPN which is just the
name base Package Name.

Since PB is not specified, it takes the default:
PV = "1.0+git${SRCPV}"

But SRCPV is defined in terms of the SRC_URI, which leads to infinite
recursion (traceback below). Here are the pertinent variables which
cause the recursion:

SRC_URI = "git://github.com/lvc/abi-dumper;protocol=https;subdir=${BP}"
BP = "${BPN}-${PV}"
PV = "1.0+git${SRCPV}"
SRCPV = "${@bb.fetch2.get_srcrev(d)}"

def get_srcrev(d, method_name='sortable_revision'):
    # ... trimmed
    scms = []
    fetcher = Fetch(d.getVar('SRC_URI').split(), d)
    # ... trimmed

[YOCTO #14040]

(From OE-Core rev: 5e5874d9b8f954771edb4ee3725bb31c1c5a70f2)

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3b8d43fc53ee13d39abc3b2a1f706a97fcf752aa)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-20 15:32:27 +00:00
..
__init__.py scripts/recipetool: Add a recipe auto-creation script 2014-12-23 10:18:15 +00:00
append.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
create_buildsys_python.py recipetool: ignore zero-length setup.py files 2019-07-03 17:00:57 +01:00
create_buildsys.py recipetool: extend curl detection when creating recipes 2021-12-15 07:40:29 +00:00
create_kernel.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
create_kmod.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
create_npm.py recipetool: create: only add npmsw url if required 2021-01-16 22:39:36 +00:00
create.py recipetool: Fix circular reference in SRC_URI 2022-02-20 15:32:27 +00:00
edit.py recipetool: Fix list concatenation when using edit 2020-06-15 14:53:45 +01:00
newappend.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
setvar.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00