{"basehash":"b94a1471788d59e4cb7b56089179b62373553feed7f03d36699def2d51f12e4f","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":["ament-cmake-gmock-native:do_create_spdx","ament-cmake-gtest-native:do_create_spdx","ament-cmake-native:do_create_spdx","ament-cmake-pytest-native:do_create_spdx","ament-cmake-ros-native:do_unpack","cmake-native:do_create_spdx","domain-coordinator-native:do_create_spdx","ninja-native:do_create_spdx","python3-native:do_create_spdx"],"runtaskhashes":{"ament-cmake-gmock-native:do_create_spdx":"f583e1141360898b8844cbbc2d465d7290cc9e78ba1b87459441389d77f31c0d","ament-cmake-gtest-native:do_create_spdx":"02d82fc18e3e71c30bf8de92511169e99ae8fcc86ead1ec17d8998b90159efc9","ament-cmake-native:do_create_spdx":"fc460d8e810443e6eee04da7fd726144751f1af5652a19bcd1ac1e51e47a09bd","ament-cmake-pytest-native:do_create_spdx":"924ebd775374a698b7c777af4fc652b3929bc242e1044febec4e9823dcc7fb23","ament-cmake-ros-native:do_unpack":"9ca2b534e413951b3df33b4373ecf4b9694dc6b91dcf795c2f0b309cff3fc945","cmake-native:do_create_spdx":"51ec0d338ee3b629927b0d3d9faf2e36a1b9203d1076b5fcd81505af39d36f38","domain-coordinator-native:do_create_spdx":"af325b803425e37c2bbbdcb3735600ce13258b4c396019d2c6add025be5f1318","ninja-native:do_create_spdx":"df185efbb6d494e0559a7f944941405e0a2af6996a4553e2a3ec007b78abea34","python3-native:do_create_spdx":"7237d94477047aaaad3a3ea1bfc66cb0d47b76fda6923a93ebd709cff13e6b49"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"094091ae173ab5843bf928b7d7aadc684b4402a30db29deebd4b0bc50dbf1553","taskhash_ignore_tasks":null,"unihash":"094091ae173ab5843bf928b7d7aadc684b4402a30db29deebd4b0bc50dbf1553","varvals":{"DEPENDS":"cmake-native domain-coordinator-native ament-cmake-native domain-coordinator-native ament-cmake-gmock-native ament-cmake-gtest-native ament-cmake-native ament-cmake-pytest-native python3-native ninja-native","PN":"ament-cmake-ros-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"}}