mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-24 09:08:24 +00:00
std only provides AtomicU64 on targets with 64-bit atomics, so ruff fails to build for riscv32: error[E0432]: unresolved import `std::sync::atomic::AtomicU64` --> crates/ruff/src/cache.rs:7:25 Add a patch that uses portable-atomic's AtomicU64 for the cache timestamp on such targets, archived in the same on-disk format. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
22 lines
682 B
BlitzBasic
22 lines
682 B
BlitzBasic
DESCRIPTION = "An extremely fast Python linter and code formatter, written in Rust."
|
|
SUMMARY = "An extremely fast Python linter and code formatter"
|
|
HOMEPAGE = "https://docs.astral.sh/ruff/"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=e679ca4f742cbfa29ab6a499529c2d39"
|
|
|
|
DEPENDS += "python3-maturin-native"
|
|
|
|
SRC_URI += "file://0001-ruff-Use-portable-atomic-for-AtomicU64-on-targets-wi.patch"
|
|
|
|
SRC_URI[sha256sum] = "5bb796c5112e9fb9527f2ef2faa0a130d6312d19de92bcfaddd70dbb2d41020f"
|
|
|
|
inherit pypi python_setuptools3_rust cargo-update-recipe-crates
|
|
|
|
CARGO_SRC_DIR = "rust"
|
|
|
|
require ${BPN}-crates.inc
|
|
|
|
INSANE_SKIP:${PN} = "already-stripped"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|