mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-06 11:40:20 +00:00
Update python3-orjson-crates.inc Add patches to fix compilation for arm64/riscv64 by gating x86/x86_64 only AVX512 feature(s). The approach has thus far been rejected by upstream: https://github.com/ijl/orjson/pull/609. Release Notes: https://github.com/ijl/orjson/blob/master/CHANGELOG.md#3116---2026-01-29 * orjson now includes code licensed under the Mozilla Public License 2.0 (MPL-2.0). * Drop support for Python 3.9. * ABI compatibility with CPython 3.15 alpha 5. * Build now depends on Rust 1.89 or later instead of 1.85. * Fix sporadic crash serializing deeply nested list of dict. * Show simple error message instead of traceback when attempting to build on unsupported Python versions. * ABI compatibility with CPython 3.15 alpha 1. * Publish PyPI wheels for 3.14 and manylinux i686, manylinux arm7, manylinux ppc64le, manylinux s390x. * Build now requires a C compiler. * Fix PyPI project metadata when using maturin 1.9.2 or later. * Fix build using Rust 1.89 on amd64. * Build now depends on Rust 1.85 or later instead of 1.82. * Publish PyPI wheels for CPython 3.14. * Fix str on big-endian architectures. This was introduced in 3.11.0. * Use a deserialization buffer allocated per request instead of a shared buffer allocated on import. * ABI compatibility with CPython 3.14 beta 4. * Fix incorrect escaping of the vertical tabulation character. This was introduced in 3.10.17. Comparing changes: https://github.com/ijl/orjson/compare/3.10.17...3.11.6 Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
27 lines
753 B
BlitzBasic
27 lines
753 B
BlitzBasic
SUMMARY = "orjson is a fast, correct JSON library for Python"
|
|
HOMEPAGE = "https://pypi.org/project/orjson/"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d"
|
|
|
|
SRC_URI[sha256sum] = "0a54c72259f35299fd033042367df781c2f66d10252955ca1efb7db309b954cb"
|
|
|
|
CVE_PRODUCT = "orjson"
|
|
|
|
require ${BPN}-crates.inc
|
|
|
|
inherit pypi python_maturin cargo-update-recipe-crates
|
|
|
|
SRC_URI += " \
|
|
file://0001-Guard-avx512-module-with-x86-target-cfg.patch \
|
|
file://0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch \
|
|
"
|
|
DEPENDS = "python3-maturin-native"
|
|
|
|
RDEPENDS:${PN} += "python3-maturin python3-mypy"
|
|
|
|
do_compile:prepend() {
|
|
sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|