{"basehash":"45350c24a29bd97f1c123b1d695cc549ccb1ddc3737c70a453130ae0369aebe8","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":["autoconf-native:do_create_spdx","automake-native:do_create_spdx","libcap-native:do_create_spdx","libgcrypt-native:do_unpack","libgpg-error-native:do_create_spdx","libtool-native:do_create_spdx","pkgconfig-native:do_create_spdx","texinfo-dummy-native:do_create_spdx"],"runtaskhashes":{"autoconf-native:do_create_spdx":"4131cdb401182d6aecaef123f4a900e8d7e90e2d7e314baae49b8caafa630d5c","automake-native:do_create_spdx":"090658f88cf07e4eae7e6e0a88f746f85601625742f592dbe9da10715b5cad5a","libcap-native:do_create_spdx":"1dc0df33019c68412e34460e014ac996a7e57019e64f67f513f984aa1dd3593d","libgcrypt-native:do_unpack":"ee8c3de82305eaa71b646cce6459198255b819baf7409e0b1e526b0833ba091b","libgpg-error-native:do_create_spdx":"0c33fe1cd4469e35e8b24cd1dfe4fb2bd2f3102f4e3235da9a3941cd3ff4af77","libtool-native:do_create_spdx":"27b259ae8687b369249f611e6e9ff7802bd57655a778113870368444f2fb26fb","pkgconfig-native:do_create_spdx":"1c8eff1d571d52ff2c5e7eeddde93722f14fcc2d373680b81fcf871cf73d495c","texinfo-dummy-native:do_create_spdx":"2fd08ab189238c0652db47446d09853313acfacddc025b7a29797a28aef3bc0b"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"d53533b1516a8b037bb7392b14005addced1ec1b58bc7a70fa76edc205366763","taskhash_ignore_tasks":null,"unihash":"d53533b1516a8b037bb7392b14005addced1ec1b58bc7a70fa76edc205366763","varvals":{"DEPENDS":"pkgconfig-native autoconf-native automake-native libtool-native libgpg-error-native texinfo-dummy-native libcap-native","PN":"libgcrypt-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"}}