{"basehash":"e75ef098b9a717fb2c8935d5e83d44cd7dfb474d2f8b9d1cd0e28830f159e1b8","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":["cmake-native:do_create_spdx","cpptoml-native:do_create_spdx","iceoryx-hoofs-native:do_create_spdx","iceoryx-posh-native:do_unpack","ninja-native:do_create_spdx"],"runtaskhashes":{"cmake-native:do_create_spdx":"7cb9a3aa39a79a944248a688f599d53cf19375691b7dd5b29ca0fa98098c0a7e","cpptoml-native:do_create_spdx":"7d1f00fd1b3c408a098ed3b935d2bdc84ee0ee5f61d1fb1dc386dd12de464dd5","iceoryx-hoofs-native:do_create_spdx":"63a74a470a00432ec7680182f65d8aa3f3db386ec8be8b6fc734b75cda281aef","iceoryx-posh-native:do_unpack":"d9d5e5c4c825f6b8df44d6ef2c1066a09235149765edf893502164214a4d62ca","ninja-native:do_create_spdx":"499dff10207242720c78d8c20e4a17a050b30e8e95d19f57ea494534845f2cb0"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"1ec31553754d4dae2d7b837bcef2f403cdd1c6219761a6c1ce6c800c3401b368","taskhash_ignore_tasks":null,"unihash":"1ec31553754d4dae2d7b837bcef2f403cdd1c6219761a6c1ce6c800c3401b368","varvals":{"DEPENDS":"cmake-native cpptoml-native cmake-native git-native iceoryx-hoofs-native ninja-native","PN":"iceoryx-posh-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"}}