{"basehash":"db75bc3fb092d87bf9e39494cf002a7ec79bc4a963c0100363c0a65942af2dec","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":["asciidoc-native:do_unpack","docbook-xml-dtd4-native:do_create_spdx","docbook-xsl-stylesheets-native:do_create_spdx","libxml2-native:do_create_spdx","libxslt-native:do_create_spdx","python3-build-native:do_create_spdx","python3-installer-native:do_create_spdx","python3-native:do_create_spdx","python3-setuptools-native:do_create_spdx","python3-wheel-native:do_create_spdx"],"runtaskhashes":{"asciidoc-native:do_unpack":"5e7dfcd39af60f9d03c1ae4a07e4342661041bc4fc41b8153e0317124266090a","docbook-xml-dtd4-native:do_create_spdx":"18f8b892086c649ba0bbb59b0150a60829209d1cd7dc9cd29e6eb41a137ae23b","docbook-xsl-stylesheets-native:do_create_spdx":"9f575aea1b2e28aa296dc4eeb59692b711f4eb39666d1d3d1ab954344720b238","libxml2-native:do_create_spdx":"9f1a46e2bef64095500bb7f93a9c896a021a4b9b5f9df5813f0ff839516d3746","libxslt-native:do_create_spdx":"0ca6fd0c4e496d0c0c527aa5148b21e177918aad4c104ebd0b1b554c1d1aafa7","python3-build-native:do_create_spdx":"09a8186e7a0c619731a49233ba3eda632c66bdb8487d0d3f7a6df94c3dee826e","python3-installer-native:do_create_spdx":"5b3f5d939c7476e29f1acec08afd13f314c46f0859f8ca727798298ebd73c68f","python3-native:do_create_spdx":"7237d94477047aaaad3a3ea1bfc66cb0d47b76fda6923a93ebd709cff13e6b49","python3-setuptools-native:do_create_spdx":"8e03630ec8670d9378815c65c02fe464a2e5d6099968d0d4d0470a2a6954104d","python3-wheel-native:do_create_spdx":"b804c2984a11b5fbdaf8b2b52feddf185f64ece77a8f8fb900578a73eabecf58"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"2ddf2d3f53c95992cd5aeac1acf4206017238bfe5de16bb7ce9e019cd93f89b6","taskhash_ignore_tasks":null,"unihash":"2ddf2d3f53c95992cd5aeac1acf4206017238bfe5de16bb7ce9e019cd93f89b6","varvals":{"DEPENDS":"libxml2-native libxslt-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native python3-setuptools-native python3-wheel-native python3-native python3-build-native python3-installer-native","PN":"asciidoc-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"}}