{"basehash":"e432775eed99ae681b0a7e8e4cf3ae857cf1335e53c2f3af4c59233840bf7fab","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","bc-native:do_unpack","flex-native:do_create_spdx","libtool-native:do_create_spdx","readline-native:do_create_spdx","texinfo-dummy-native:do_create_spdx"],"runtaskhashes":{"autoconf-native:do_create_spdx":"858a5462269dfd14b14ad47c5657a2008e125f0a59e856b39af077961d82f158","automake-native:do_create_spdx":"7be563c1e6411fb324de1cfc9d8194efa25e02c09aa4ab36b356cfde80b610cd","bc-native:do_unpack":"0d5c4a29d6ce0cb1bd64ddba3ab3f04ead5e27d1a87b25ec84b7f8179477a79c","flex-native:do_create_spdx":"b9aaced6d1adeb2bae1631f1182209ce437b3ed0001a522dce12dcaca5127d0f","libtool-native:do_create_spdx":"ba191c793da455995df2fa7ddd7342502b16a0d3f5085c07bc1d14c657583a6d","readline-native:do_create_spdx":"56f437aa86b9a8e08ea7fc101b26a1a8b09a0243a47fa0861d2f9d60717350d9","texinfo-dummy-native:do_create_spdx":"52786c5b5a1009ddf76bc4fbb87c9d6f886c8c9f15d8dc683660bb1acea0cc0e"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"1886d9d3cf2d5cc85bd3bed544057f352cf98e9f2cfff440290dd6da33ac3a30","taskhash_ignore_tasks":null,"unihash":"1886d9d3cf2d5cc85bd3bed544057f352cf98e9f2cfff440290dd6da33ac3a30","varvals":{"DEPENDS":"autoconf-native automake-native libtool-native flex-native texinfo-dummy-native readline-native","PN":"bc-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"}}