{"basehash":"b90bc3882164327248645952e627d18d4df09980051891e0f254c879a000e1a3","basehash_ignore_vars":{"_set_object":["BBPATH","BBSERVER","BB_CURRENTTASK","BB_HASHSERVE","BB_LIMITEDDEPS","BB_TASKHASH","BB_UNIHASH","BB_WORKERCONTEXT","BUILDHISTORY_DIR","BUILD_ARCH","CCACHE","CCACHE_DIR","CCACHE_NOHASHDIR","CCACHE_TOP_DIR","COREBASE","DEPLOY_DIR","DL_DIR","EXTERNAL_TOOLCHAIN","FILE","FILESEXTRAPATHS","FILESPATH","FILE_DIRNAME","GIT_CEILING_DIRECTORIES","HOME","LICENSE_PATH","LOGNAME","OMP_NUM_THREADS","PARALLEL_MAKE","PATH","PKGDATA_DIR","PLNX_SCRIPTS_PATH","PRSERV_DUMPDIR","PRSERV_DUMPFILE","PRSERV_HOST","PRSERV_LOCKDOWN","PSEUDO_IGNORE_PATHS","PWD","RUST_BUILD_SYS","RUST_HOST_SYS","RUST_TARGET_SYS","SDKPKGSUFFIX","SHELL","SOURCE_DATE_EPOCH","SSTATE_DIR","SSTATE_HASHEQUIV_METHOD","SSTATE_HASHEQUIV_OWNER","SSTATE_HASHEQUIV_REPORT_TASKDATA","SSTATE_PKGARCH","STAGING_DIR_HOST","STAGING_DIR_TARGET","STAMPCLEAN","STAMPS_DIR","THISDIR","TMPDIR","USER","WARN_QA","WORKDIR","extend_recipe_sysroot"]},"file_checksum_values":[],"gendeps":{"DEPENDS":{"_set_object":[]},"PN":{"_set_object":[]},"SPDXDEPS":{"_set_object":["SPDXDIR"]},"SPDXDIR":{"_set_object":[]},"collect_direct_deps":{"_set_object":["DEPENDS","PN"]}},"runtaskdeps":["attr-native:do_create_spdx","lz4-native:do_create_spdx","lzo-native:do_create_spdx","squashfs-tools-native:do_unpack","xz-native:do_create_spdx","zlib-native:do_create_spdx","zstd-native:do_create_spdx"],"runtaskhashes":{"attr-native:do_create_spdx":"af344eb1cd44128321dbc554f8d29f7e7b9f18f65339b0211d2a76d5e44f3bbb","lz4-native:do_create_spdx":"b0e8ac42d27cfe07850241cfd682fe8163bc584106a2950cf44c28715d6866ec","lzo-native:do_create_spdx":"33e4c7d9c55dc4a8b1b328b7056efcb0a9beea0adeb3f92c9cbc5a5b190b884c","squashfs-tools-native:do_unpack":"22ffab9c608fc11e01f053e5c9c1e5bde976f19385099a42193031d050d67fe1","xz-native:do_create_spdx":"609122245eb19f4ae4a0eb81c7c04bd154e2fc07497fd2042c613c1f7d058380","zlib-native:do_create_spdx":"68cf4d5f773a7cab76d4194be1108ecfa9a0df6314f481b679124bcf776682ae","zstd-native:do_create_spdx":"fa7205b3648afe82375d7df11012efe4729ec35fa8c6ea81f9d7cbf6086c13f7"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"b90e0572ec9713ad10b2b60f91a59e92b44d15798b9dbbadac6fd6d6e1e7e541","taskhash_ignore_tasks":null,"unihash":"b90e0572ec9713ad10b2b60f91a59e92b44d15798b9dbbadac6fd6d6e1e7e541","varvals":{"DEPENDS":" zlib-native lz4-native xz-native lzo-native attr-native xz-native zstd-native","PN":"squashfs-tools-native","SPDXDEPS":"${SPDXDIR}/deps.json","SPDXDIR":"${WORKDIR}/spdx","collect_direct_deps":"def collect_direct_deps(d, dep_task):\n    current_task = \"do_\" + d.getVar(\"BB_CURRENTTASK\")\n    pn = d.getVar(\"PN\")\n\n    taskdepdata = d.getVar(\"BB_TASKDEPDATA\", False)\n\n    for this_dep in taskdepdata.values():\n        if this_dep[0] == pn and this_dep[1] == current_task:\n            break\n    else:\n        bb.fatal(f\"Unable to find this {pn}:{current_task} in taskdepdata\")\n\n    deps = set()\n    for dep_name in this_dep[3]:\n        dep_data = taskdepdata[dep_name]\n        if dep_data[1] == dep_task and dep_data[0] != pn:\n            deps.add((dep_data[0], dep_data[7]))\n\n    return sorted(deps)\n","do_collect_spdx_deps":"    # This task calculates the build time dependencies of the recipe, and is\n    # required because while a task can deptask on itself, those dependencies\n    # do not show up in BB_TASKDEPDATA. To work around that, this task does the\n    # deptask on do_create_spdx and writes out the dependencies it finds, then\n    # do_create_spdx reads in the found dependencies when writing the actual\n    # SPDX document\n    import json\n    from pathlib import Path\n\n    spdx_deps_file = Path(d.getVar(\"SPDXDEPS\"))\n\n    deps = collect_direct_deps(d, \"do_create_spdx\")\n\n    with spdx_deps_file.open(\"w\") as f:\n        json.dump(deps, f)\n"}}