{"basehash":"ac0e0b759a19bcaf4aa6edcf06df99016eaf237076277f7d62fbeb6f74cba9fc","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":["acl-native:do_create_spdx","attr-native:do_create_spdx","autoconf-native:do_create_spdx","automake-native:do_create_spdx","bzip2-native:do_create_spdx","e2fsprogs-native:do_create_spdx","libarchive-native:do_unpack","libtool-native:do_create_spdx","pkgconfig-native:do_create_spdx","xz-native:do_create_spdx","zlib-native:do_create_spdx","zstd-native:do_create_spdx"],"runtaskhashes":{"acl-native:do_create_spdx":"60a1cfcad854c22adc5c65caab342ffa88b7482ebc99cdc67c572e0d227eec98","attr-native:do_create_spdx":"9524cdd7f026e80941db00c59511ff0d2a27729cb11abfdfaffbd0f5f0c9eb6a","autoconf-native:do_create_spdx":"858a5462269dfd14b14ad47c5657a2008e125f0a59e856b39af077961d82f158","automake-native:do_create_spdx":"7be563c1e6411fb324de1cfc9d8194efa25e02c09aa4ab36b356cfde80b610cd","bzip2-native:do_create_spdx":"4fdacf1d6c45d19b40d32ddb8a2cb106f4a799f4d2ca59603db7ca58f156396d","e2fsprogs-native:do_create_spdx":"1b8c39922d5b4e991f8a13ce1bdd77b5b54657dac16f79606038221424735a0c","libarchive-native:do_unpack":"c9014230bf9c1001ffe36842742e10b2b821048ea3bad03f01f181766c720958","libtool-native:do_create_spdx":"ba191c793da455995df2fa7ddd7342502b16a0d3f5085c07bc1d14c657583a6d","pkgconfig-native:do_create_spdx":"9c45ee09c4d8afc645a7ef1c821a4412164000f1258c108dd32d77dcf102aab9","xz-native:do_create_spdx":"d6c90d2506b3f2e2e02fea8eaef5ae047141e6cd5d212ca305bd133681dddf1e","zlib-native:do_create_spdx":"bcc784e25b874ba6be11315ddfb1284da629c22febf10689218f4eb17fe32188","zstd-native:do_create_spdx":"b7c30fd89ef551384470ec8d6344d62d61ce3308eee72111940bd987e217424b"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"79c2d19837ca0ba1b179bdd0740cb42835c713dc05dc5d12de8d38ef6f0f1c42","taskhash_ignore_tasks":null,"unihash":"79c2d19837ca0ba1b179bdd0740cb42835c713dc05dc5d12de8d38ef6f0f1c42","varvals":{"DEPENDS":"pkgconfig-native autoconf-native automake-native libtool-native e2fsprogs-native acl-native bzip2-replacement-native attr-native xz-native zlib-native zstd-native","PN":"libarchive-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"}}