From 6c19c5e0d4464f1ccad183f0ef5f65c9fcd8a7e8 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Tue, 3 Feb 2026 11:13:50 -0800 Subject: python3-orjson: upgrade 3.10.17 -> 3.11.6 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 Signed-off-by: Khem Raj --- .../python/python3-orjson_3.11.6.bb | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb (limited to 'meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb') diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb new file mode 100644 index 0000000000..e26ca77d91 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb @@ -0,0 +1,26 @@ +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" -- cgit v1.2.3-54-g00ecf