{"basehash":"4f7e4797d2b114e245dda127249500c75af97b1773f41082261a219d072e37b8","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":["backward-cpp-native:do_create_spdx","cmake-native:do_create_spdx","doxygen-native:do_create_spdx","gz-cmake3-native:do_create_spdx","gz-tools2-native:do_unpack","jsoncpp-native:do_create_spdx","libyaml-native:do_create_spdx","libzip-native:do_create_spdx","ninja-native:do_create_spdx","pkgconfig-native:do_create_spdx"],"runtaskhashes":{"backward-cpp-native:do_create_spdx":"797c5d80d1d101da0114d999c587b214be7cf968f1d8c1dc1da4ae79e2f63c87","cmake-native:do_create_spdx":"93eeb33c180c5ce2953907857e3476cd75916b9607eb5122661d534348ed2b06","doxygen-native:do_create_spdx":"9a6e51c219943c8feedc5d9161e7ab46389c8cd36e373477c642143c36442c6a","gz-cmake3-native:do_create_spdx":"fbe89439533ed8dc970e062a1b4625a4823200b2a24493fa076ce0cd087a6d38","gz-tools2-native:do_unpack":"ab5789f62f76db8d79f753c3b1aaf06fa745f92b45613a486f69ee604473f3ce","jsoncpp-native:do_create_spdx":"7efa53a5acc44cae1645f97eae0fd39fedb84a473ec4998b864aa09178c3451d","libyaml-native:do_create_spdx":"be77ad0042aaa2e141ae4d57c8c8a720f4dbb2f172223ead4a20c6d007289155","libzip-native:do_create_spdx":"de89715290bfdb6fa934a40a18bba59835ceb894dce9e1b532b8335c6eb1a008","ninja-native:do_create_spdx":"1cb474ddcfdd57c01faf36057cdf1eb5825716a42c33f9819267540e65c2b9bc","pkgconfig-native:do_create_spdx":"1c8eff1d571d52ff2c5e7eeddde93722f14fcc2d373680b81fcf871cf73d495c"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"3708711059bb8238a57401befcc33d182a3d6f487be936b68cab82402a0063a3","taskhash_ignore_tasks":null,"unihash":"3708711059bb8238a57401befcc33d182a3d6f487be936b68cab82402a0063a3","varvals":{"DEPENDS":"pkgconfig-native cmake-native doxygen-native jsoncpp-native libyaml-native libzip-native backward-cpp-native gz-cmake3-native ninja-native","PN":"gz-tools2-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"}}