{"basehash":"a7164b522cce28a960170c0f3cec6e9c45b2d8c6122d7549886984e5b014eb8d","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","gdbm-native:do_create_spdx","libffi-native:do_create_spdx","libtool-native:do_create_spdx","libyaml-native:do_create_spdx","openssl-native:do_create_spdx","pkgconfig-native:do_create_spdx","readline-native:do_create_spdx","ruby-native:do_unpack","zlib-native:do_create_spdx"],"runtaskhashes":{"autoconf-native:do_create_spdx":"858a5462269dfd14b14ad47c5657a2008e125f0a59e856b39af077961d82f158","automake-native:do_create_spdx":"7be563c1e6411fb324de1cfc9d8194efa25e02c09aa4ab36b356cfde80b610cd","gdbm-native:do_create_spdx":"30e215374e67b848e476fd15d757231a42ccdc2b37c02dca3b77e3f66fe27118","libffi-native:do_create_spdx":"d2afbedc3c4751eeeea811981e0d0371a9c8bf9d540538f20d69d99942af4d88","libtool-native:do_create_spdx":"ba191c793da455995df2fa7ddd7342502b16a0d3f5085c07bc1d14c657583a6d","libyaml-native:do_create_spdx":"1e438956427e96663e9f0c45cdce19fbc7a8b4110a7eb88370d0d7aab924f155","openssl-native:do_create_spdx":"a9c592a2db76a2df4333684e663124266d129a4fc2cd8ea83fa3d501507218ab","pkgconfig-native:do_create_spdx":"9c45ee09c4d8afc645a7ef1c821a4412164000f1258c108dd32d77dcf102aab9","readline-native:do_create_spdx":"2480ddfcbb476c2d1226349e2137604566806575f90cab9fa01a68fbe8abbae1","ruby-native:do_unpack":"10263d45c81d99712cfc48f16d78b6d67c378848076fbcbddbc5ff98c742ec25","zlib-native:do_create_spdx":"bcc784e25b874ba6be11315ddfb1284da629c22febf10689218f4eb17fe32188"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"8449323ea03b9dd576c6b9ced7ce25b2a7493b8ad5a45d636b37a5b225863ea6","taskhash_ignore_tasks":null,"unihash":"8449323ea03b9dd576c6b9ced7ce25b2a7493b8ad5a45d636b37a5b225863ea6","varvals":{"DEPENDS":"pkgconfig-native autoconf-native automake-native libtool-native zlib-native openssl-native libyaml-native gdbm-native readline-native libffi-native","PN":"ruby-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"}}