{"basehash":"b1599a8ac2365d267ffa3cdfb2091351d15fdf14aa97674b9b4c42efe766be2f","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":["python3-build-native:do_create_spdx","python3-editables-native:do_create_spdx","python3-hatchling-native:do_unpack","python3-installer-native:do_create_spdx","python3-native:do_create_spdx","python3-packaging-native:do_create_spdx","python3-pathspec-native:do_create_spdx","python3-pluggy-native:do_create_spdx","python3-trove-classifiers-native:do_create_spdx"],"runtaskhashes":{"python3-build-native:do_create_spdx":"09a8186e7a0c619731a49233ba3eda632c66bdb8487d0d3f7a6df94c3dee826e","python3-editables-native:do_create_spdx":"c375db361053aeff9130666752c88c3c5d458e1ce2e3d098b9fd6812ca0ef716","python3-hatchling-native:do_unpack":"f7f1f1c239a8a48ebb11f006f605ba1136bc01bebcc5b72119a207c71c1b9d5d","python3-installer-native:do_create_spdx":"5b3f5d939c7476e29f1acec08afd13f314c46f0859f8ca727798298ebd73c68f","python3-native:do_create_spdx":"7237d94477047aaaad3a3ea1bfc66cb0d47b76fda6923a93ebd709cff13e6b49","python3-packaging-native:do_create_spdx":"7f99e8353063aa5340b2bd551cf649c77da97b612225cf0b726501a908909f53","python3-pathspec-native:do_create_spdx":"5f08c9c1f0804748a7e86611dedca9ec25f453f0ec8a1d6ac26846555338333b","python3-pluggy-native:do_create_spdx":"b156faf90824d1e88ef5cc2c611f2bb73caf33f68fd2bbc40245eb74e61cb0fc","python3-trove-classifiers-native:do_create_spdx":"9c3e95dff7c4db0d92bcd8c3632592e44488cf6bb99ea0f6cacad9f08f46970c"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"33dbb0130bbd6ea1bb122f0ff91a94784bad5e29f626cd31c934e0271b44b29a","taskhash_ignore_tasks":null,"unihash":"33dbb0130bbd6ea1bb122f0ff91a94784bad5e29f626cd31c934e0271b44b29a","varvals":{"DEPENDS":"python3-pluggy-native python3-pathspec-native python3-packaging-native python3-editables-native python3-trove-classifiers-native python3-build-native python3-installer-native python3-native","PN":"python3-hatchling-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"}}