circular dependency in meta-raspberrypi #scarthgap #yocto #raspberrypi
Trying to build scarthgap image facing below error.
ERROR: Task /home/build/project/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_6.6.bb:do_collect_spdx_deps has circular dependency on /home/build/project/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_6.6.bb:do_create_spdx
ERROR: Command execution failed: 1
Their is a commit for error https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/
but for scarthgap it has been updated.
i.e. the function names have been changed in scarthgap and the commit made.
Scarthgap has below func
def collect_direct_deps ( d , dep_task ):current_task = "do_" + d. getVar ( "BB_CURRENTTASK" ) pn = d. getVar ( "PN" )
taskdepdata = d. getVar ( "BB_TASKDEPDATA" , False )
for this_dep in taskdepdata. values ():
if this_dep [ 0 ] == pn and this_dep [ 1 ] == current_task :
break
else :
bb. fatal ( f "Unable to find this {pn}:{current_task} in taskdepdata" )
deps = set ()
for dep_name in this_dep [ 3 ]:dep_data = taskdepdata [ dep_name ]
if dep_data [ 1 ] == dep_task and dep_data [ 0 ] ! = pn :
deps. add (( dep_data [ 0 ] , dep_data [ 7 ]))
return sorted ( deps )
collect_direct_deps [ vardepsexclude ] += "BB_TASKDEPDATA" collect_direct_deps [ vardeps ] += "DEPENDS"
And the commit has
def collect_direct_deps(d, dep_task):current_task = "do_" + d.getVar("BB_CURRENTTASK")
pn = d.getVar("PN")
taskdepdata = d.getVar("BB_TASKDEPDATA", False)
for this_dep in taskdepdata.values():
if this_dep[0] == pn and this_dep[1] == current_task:
break
else:bb.fatal(f"Unable to find this {pn}:{current_task} in taskdepdata") deps = set()
for dep_name in this_dep[3]:dep_data = taskdepdata[dep_name]
if dep_data[1] == dep_task and dep_data[0] != pn:deps.add((dep_data[0], dep_data[7]))
return sorted(deps)
collect_direct_deps[vardepsexclude] += "BB_TASKDEPDATA" collect_direct_deps[vardeps] += "DEPENDS"
I this causing the issue?
Ganesh Mahajan