{"basehash":"8e5bd39d84c8b7907b6c63ac0d153caa88f4950e22d17bdcb92a1596f764bc7a","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":["apr-native:do_create_spdx","apr-util-native:do_unpack","autoconf-native:do_create_spdx","automake-native:do_create_spdx","expat-native:do_create_spdx","gdbm-native:do_create_spdx","libtool-native:do_create_spdx","openssl-native:do_create_spdx"],"runtaskhashes":{"apr-native:do_create_spdx":"624b8963a23e2c3ae534d43e17750694018254e98e918c8669694c2e995084cb","apr-util-native:do_unpack":"b878830178be5a35cf5904e92129150a3dfd6f10317be07e45db04e06e61b53d","autoconf-native:do_create_spdx":"9ef6d022f9f06c311519d0ffb704b4bb2a9a88ec8e27e5d8ce0c5d33795ad6b3","automake-native:do_create_spdx":"47c8948b4e0ad27ac769d9816565712973fe44018e5592496766db1981b1b066","expat-native:do_create_spdx":"51e75b4b3c99e1cb17cd87f9ba7a2b4f739b591ed1f7b56c84bc4694dc21ef9a","gdbm-native:do_create_spdx":"1430c54cc00c11e74f14b97e73bb60b37280a81cf86ef48642b944f32e83aecc","libtool-native:do_create_spdx":"56b8e7c523da9ae7b591dfa479b26ef2d7bdbb3ab00f212ec5bdbc1850f52977","openssl-native:do_create_spdx":"2c3550cad0e10b9a8fc3db416202e6be2bd9e0e14a96a25b03514db545eb527a"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"b7c76484c03b91213b283a67427071d6d799137ede2e99e5f9b5ec5d281f8d24","taskhash_ignore_tasks":null,"unihash":"b7c76484c03b91213b283a67427071d6d799137ede2e99e5f9b5ec5d281f8d24","varvals":{"DEPENDS":"autoconf-native automake-native libtool-native apr-native expat-native openssl-native gdbm-native","PN":"apr-util-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"}}