bodnuti

Deterministic checks of Yocto Project & OpenEmbedded patches.


[PATCH] rust: Squash rust-cross-canadian.inc into the recipe

List
openembedded-core
Thread
lore
Author
Deepesh.Varatharajan@windriver.com
Last message
2026-10-12 10:18
Result
5 findings, 1 error
Checked against
openembedded-core master
Base
ae5cafacec8e

[PATCH] rust: Squash rust-cross-canadian.inc into the recipe

error oelint oelint.task.nomkdir meta/recipes-devtools/rust/rust-cross-canadian_1.99.0.bb:56
'mkdir' shall not be used in do_install. Use 'install'
53    create_sdk_wrapper "${SYS_BINDIR}/target-rust-ccld-wrapper" "CC"5455    ENV_SETUP_DIR=${D}${base_prefix}/environment-setup.d/${TARGET_ARCH}56    mkdir -p "${ENV_SETUP_DIR}"57    RUST_ENV_SETUP_SH="${ENV_SETUP_DIR}/rust.sh"5859    RUST_TARGET_TRIPLE=`echo ${RUST_TARGET_SYS} | tr '[:lower:]' '[:upper:]' | sed 's/-/_/g'`
warning oelint oelint.vars.dependsordered meta/recipes-devtools/rust/rust-cross-canadian_1.99.0.bb:13
'DEPENDS' entries should be ordered alphabetically
1011MODIFYTOS = "0"1213DEPENDS += "virtual/nativesdk-cross-cc virtual/nativesdk-libc virtual/nativesdk-compilerlibs"1415SRC_URI += "file://target-rust-ccld.c"16LIC_FILES_CHKSUM = "file://target-rust-ccld.c;md5=af4e0e29f81a34cffe05aa07c89e93e9;endline=7"
warning oelint oelint.tabs.notabs meta/recipes-devtools/rust/rust-cross-canadian_1.99.0.bb:20
Don't use tabs use spaces
17S = "${UNPACKDIR}"1819# Need to use our SDK's sh here, see #1487820create_sdk_wrapper () {21        file="$1"22        shift23        cat <<- EOF > "${file}"
warning oelint oelint.tabs.notabs meta/recipes-devtools/rust/rust-cross-canadian_1.99.0.bb:31
Don't use tabs use spaces
28        chmod +x "$file"29}3031do_install () {32    # Rust requires /usr/lib to contain the libs.33    # The required structure is retained for simplicity.34    SYS_LIBDIR=$(dirname ${D}${libdir})
info oelint oelint.task.docstrings meta/recipes-devtools/rust/rust-cross-canadian_1.99.0.bb:20
Every custom task should have a doc string set by task[doc] = '...'
17S = "${UNPACKDIR}"1819# Need to use our SDK's sh here, see #1487820create_sdk_wrapper () {21        file="$1"22        shift23        cat <<- EOF > "${file}"

patchtest: 10 pass, 0 fail, 5 skip

Text report