{"basehash":"939fc304bded1e578fa4c15ed986a0d833e2d213db0287026ee1063e3ca2e64b","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-native:do_create_spdx","cmake-native:do_create_spdx","ninja-native:do_create_spdx","python3-native:do_create_spdx","ros-environment-native:do_create_spdx","rosidl-generator-c-native:do_create_spdx","rosidl-generator-rs-native:do_unpack","rosidl-pycommon-native:do_create_spdx","rosidl-typesupport-c-native:do_create_spdx","rosidl-typesupport-interface-native:do_create_spdx"],"runtaskhashes":{"ament-cmake-native:do_create_spdx":"48539cecd874f3fe4a3fb55fbc41c4908ec823b9a581d165fc7ec859ef334ae9","cmake-native:do_create_spdx":"93eeb33c180c5ce2953907857e3476cd75916b9607eb5122661d534348ed2b06","ninja-native:do_create_spdx":"1cb474ddcfdd57c01faf36057cdf1eb5825716a42c33f9819267540e65c2b9bc","python3-native:do_create_spdx":"7d6be2473f006a939a0ab215621e5a462b0f3412c4422b37d598e3f1b827f31c","ros-environment-native:do_create_spdx":"6385ab164457db840327cddd53f36986edc5bb6d08566523bc47a532817ab4a5","rosidl-generator-c-native:do_create_spdx":"8651f6d10e22f83e5ac012b798a90cf00ea555019161adc89f934249fde473b8","rosidl-generator-rs-native:do_unpack":"1dfc9b0ac121ee9b101ca8330e940f3431cef06ab24848dff8e6ba8c20eb008b","rosidl-pycommon-native:do_create_spdx":"04dfee25fba7414413d372bd1d702abd713feaf88fe40389c088a8e5aaeee0d8","rosidl-typesupport-c-native:do_create_spdx":"38f73bab820a8a93da82368e7e272b40a79750552c8c13da1c7577b2f3d8b4fe","rosidl-typesupport-interface-native:do_create_spdx":"c514cfb8d6b1887a8345e879dbfc0b7d93e66e56c70a6256a9a27234b2c62097"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"4450d031ef213ec14efbd356756843e8f5f1aa2f607f3c19e1aea38877405637","taskhash_ignore_tasks":null,"unihash":"4450d031ef213ec14efbd356756843e8f5f1aa2f607f3c19e1aea38877405637","varvals":{"DEPENDS":"cmake-native ament-cmake-native ros-environment-native rosidl-generator-c-native ament-cmake-native ros-environment-native rosidl-pycommon-native rosidl-typesupport-c-native rosidl-typesupport-interface-native python3-native ninja-native","PN":"rosidl-generator-rs-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"}}