{"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":"da60df9405883fbbbfe4dabc623f6be219a75feef1d162f7b616b3f46677be1f","attr-native:do_create_spdx":"c2396ba7d151c480314dae5367d8d5810f88c67e6ea2d81b9e157c11c644f5f1","autoconf-native:do_create_spdx":"9ef6d022f9f06c311519d0ffb704b4bb2a9a88ec8e27e5d8ce0c5d33795ad6b3","automake-native:do_create_spdx":"47c8948b4e0ad27ac769d9816565712973fe44018e5592496766db1981b1b066","bzip2-native:do_create_spdx":"2d98ab66fd1a495bf2a28dbc74cbcd374317836d2a2ad3ce5b3d830a06256d19","e2fsprogs-native:do_create_spdx":"a0e41f9a2d1a57453c38ec5e490db365995f08e129dcfe3df6b1b5a343eff2fd","libarchive-native:do_unpack":"b9fd88253b33f87ef8e00949ec2117a90e085d577da2e275a7ac032dce0b6a72","libtool-native:do_create_spdx":"56b8e7c523da9ae7b591dfa479b26ef2d7bdbb3ab00f212ec5bdbc1850f52977","pkgconfig-native:do_create_spdx":"d631fd0a13118ddea924908356f33f2814a822cf88982b92500e3bc3d2964f24","xz-native:do_create_spdx":"a2c2d1ec222d96601a547766dc70d6f7325f43fd7a65083cd8cba187e39c9465","zlib-native:do_create_spdx":"60aad9ccb8085c23a9f5429a621e8faf40ca9fdbbb2e001b98d4e89b6ff62915","zstd-native:do_create_spdx":"ecda73d7de26beff09255eae604348a854eaaa86f2e6db52c0ec5b31f6f9e7c7"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"c7f817b3c5f7377c0b5405c1f16105eb4612a91ef2f790c80bcaa2f55d6c8bb1","taskhash_ignore_tasks":null,"unihash":"c7f817b3c5f7377c0b5405c1f16105eb4612a91ef2f790c80bcaa2f55d6c8bb1","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"}}