Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23502C0218D for ; Tue, 28 Jan 2025 07:22:06 +0000 (UTC) Subject: [scarthgap] circular dependency in meta-raspberrypi #scarthgap #yocto #raspberrypi To: yocto@lists.yoctoproject.org From: "Ganesh Mahajan" X-Originating-Location: IN (165.225.124.181) X-Originating-Platform: Windows Chrome 131 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 27 Jan 2025 23:22:01 -0800 Message-ID: <58gF.1738048921468211634.1FDg@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="6Y3NCBw0XXreSNvrjZW7" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Jan 2025 07:22:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/64656 --6Y3NCBw0XXreSNvrjZW7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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/b= uild/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-c= ore/patch/20230602133453.229023-3-richard.purdie@linuxfoundation.org/ 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 =3D "do_" + d. getVar ( "BB_CURRENTTASK" ) pn =3D d. getVar ( "PN" ) taskdepdata =3D d. getVar ( "BB_TASKDEPDATA" , False ) for this_dep in taskdepdata. values (): if this_dep [ 0 ] =3D=3D pn and this_dep [ 1 ] =3D=3D current_task : break else : bb. fatal ( f "Unable to find this {pn}:{current_task} in taskdepdata" ) deps =3D set () for dep_name in this_dep [ 3 ]: dep_data =3D taskdepdata [ dep_name ] if dep_data [ 1 ] =3D=3D dep_task and dep_data [ 0 ] ! =3D pn : deps. add (( dep_data [ 0 ] , dep_data [ 7 ])) return sorted ( deps ) collect_direct_deps [ vardepsexclude ] +=3D "BB_TASKDEPDATA" collect_direct_deps [ vardeps ] +=3D "DEPENDS" And the commit has def collect_direct_deps(d, dep_task): current_task =3D "do_" + d.getVar("BB_CURRENTTASK") pn =3D d.getVar("PN") taskdepdata =3D d.getVar("BB_TASKDEPDATA", False) for this_dep in taskdepdata.values(): if this_dep[0] =3D=3D pn and this_dep[1] =3D=3D current_task: break else: bb.fatal(f"Unable to find this {pn}:{current_task} in taskdepdata") deps =3D set() for dep_name in this_dep[3]: dep_data =3D taskdepdata[dep_name] if dep_data[1] =3D=3D dep_task and dep_data[0] !=3D pn: deps.add((dep_data[0], dep_data[7])) return sorted(deps) collect_direct_deps[vardepsexclude] +=3D "BB_TASKDEPDATA" collect_direct_deps[vardeps] +=3D "DEPENDS" I this causing the issue? Ganesh Mahajan --6Y3NCBw0XXreSNvrjZW7 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Trying to build scarthgap image facing below error.

ERROR: = Task /home/build/project/meta-raspberrypi/recipes-kernel/linux/linux-raspbe= rrypi_6.6.bb:do_collect_spdx_deps has circular dependency on /home/build/pr= oject/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_6.6.bb:do_cre= ate_spdx
ERROR: Command execution failed: 1

Their is a comm= it for error https://patchwork.yoctoproject.org/project/oe-= core/patch/20230602133453.229023-3-richard.purdie@linuxfoundation.org/&= nbsp;
but for scarthgap it has been updated.
i.e. the function na= mes have been changed in scarthgap and the commit made.

Scarthga= p has below func
def collect_direct_deps(d= , dep_task):
    current_task <= span style=3D"color: #d4d4d4;">=3D <= /span>"do_" + d.getVar("BB_CURRENT= TASK")
    pn =3D d.getVar("PN")

    taskdepdata =3D dgetVar("BB_TASKDEPDATA"= , False)

    for this_dep in= taskdepdata.values():
        if this_dep[0] =3D=3D pn and this_dep[1] =3D=3D <= span style=3D"color: #9cdcfe;">current_task:
          &nb= sp; break
    else:
        bb.fatal(f"Unable to find this {pn}:{current_task} in taskdepdata")

    deps =3D set()<= /span>
    for dep_name in= this_dep[3]:
        dep_data =3D taskdepdata[dep_name]
        if dep_data[1] =3D=3D dep_task = and dep_data[0] !=3D pn:
          &nb= sp; deps.add((dep_data<= span style=3D"color: #cccccc;">[0], dep_data[7]))

    return sorted(deps)

collect_direct_deps[vardepsexclude= ] +=3D "BB_TASKDEPDATA"
collect_direct_deps[vardeps= ] += =3D "DEPENDS"

And the commit has

def collect_direct_deps(d, dep_task):
current_task =3D "do_" + d.= getVar("BB_CURRENTTASK")
    pn =3D d.getVar("PN")
    taskdepdata =3D d.getVar("BB_TASKDEPDATA", False)
    for this_dep in taskdepdata.values():
   =     if this_dep[0] =3D=3D pn and this_dep[1] =3D=3D current_task= :
            break
    e= lse:
        bb.fatal(f"Unable to find this {pn}:{= current_task} in taskdepdata")
    deps =3D set()
    for dep_name in this_d= ep[3]:
        dep_data =3D taskdepdata[dep_name]<= br />        if dep_data[1] =3D=3D dep_task and dep_dat= a[0] !=3D pn:
            deps.add((dep_= data[0], dep_data[7]))
    return sorted(deps)
collect_direct_deps[vardepsexclude] +=3D "BB_TASKDEPDATA"
collect= _direct_deps[vardeps] +=3D "DEPENDS"

I this causing the issue?

Ganesh Mahajan
--6Y3NCBw0XXreSNvrjZW7--