bodnuti: [PATCH v4 0/4] spdx30: identity and purls of dependency downloads base: 39019629a4ad [PATCH v4 2/4] spdx30: Record the lifecycle scope of dependencies WARNING oelint oelint.vars.mispell.unknown meta/classes-recipe/cargo.bbclass:54 'SPDX_DEPENDENCY_SCOPE_FUNCS' is unknown. Consider adding it via --constantmods 51 | fi 52 | } 53 | addtask cargo_metadata after do_configure before do_compile do_create_spdx > 54 | SPDX_DEPENDENCY_SCOPE_FUNCS += "oe.rust.cargo_dependency_scopes" 55 | 56 | cargo_do_install () { 57 | local have_installed=false [PATCH v4 3/4] spdx30: Add the PURLs of the source downloads to the output packages ERROR ruff F821 meta/lib/oe/spdx30_tasks.py:1844 Undefined name `bb` 1841 | ) 1842 | root = objset.find_root(oe.spdx30.software_Package) 1843 | if root is None: > 1844 | bb.fatal("Unable to find %s rootfs artifact" % sdk_type) 1845 | rootfs_objsets.append(objset) 1846 | rootfs.append(root) 1847 | ERROR ruff F821 meta/lib/oe/spdx30_tasks.py:1902 Undefined name `bb` 1899 | files, 1900 | ) 1901 | else: > 1902 | bb.warn(f"No SDK output files found in {sdk_deploydir}") 1903 | 1904 | objset, sbom = oe.sbom30.create_sbom( 1905 | d, toolchain_outputname, sorted(list(files)), rootfs_objsets ERROR ruff F821 meta/lib/oe/spdx30_tasks.py:1970 Undefined name `bb` 1967 | if ( 1968 | d.getVar("SPDX_DEPLOY_ALLOW_EMPTY:task-" + d.getVar("BB_CURRENTTASK")) or "" 1969 | ) != "1": > 1970 | bb.fatal(f"No deployed artifacts found in {artifactsdir}") 1971 | return 1972 | 1973 | create_deploy_package( style WARNING oelint oelint.tabs.notabs meta/classes-recipe/cargo.bbclass:56 Don't use tabs use spaces 53 | addtask cargo_metadata after do_configure before do_compile do_create_spdx 54 | SPDX_DEPENDENCY_SCOPE_FUNCS += "oe.rust.cargo_dependency_scopes" 55 | > 56 | cargo_do_install () { 57 | local have_installed=false 58 | for tgt in "${B}/target/${CARGO_TARGET_SUBDIR}/"*; do 59 | case $tgt in INFO oelint oelint.task.docstrings meta/classes-recipe/cargo.bbclass:36 Every custom task should have a doc string set by task[doc] = '...' 33 | # feature uses it on the target. 34 | CARGO_METADATA_FILE = "${WORKDIR}/cargo-metadata.json" 35 | > 36 | do_cargo_metadata () { 37 | rm -f "${CARGO_METADATA_FILE}" 38 | # Some recipes inherit cargo without being a cargo project 39 | if [ ! -f "${CARGO_MANIFEST_PATH}" ]; then patchtest: 40 pass, 0 fail, 20 skip 4 findings: 3 errors, 1 warnings, 0 info (2 style, not counted)