From 6a3128f17bff0a086bcc8fbf28205a4de432013b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 6 Apr 2025 18:40:31 -0700 Subject: [PATCH] pydantic: Mark host incompatible on RISCV32 pydantic-core needs to be ported to work on rv32 Signed-off-by: Khem Raj --- .../recipes-core/packagegroups/packagegroup-meta-python.bb | 2 ++ .../recipes-devtools/python/python3-pydantic-core_2.33.1.bb | 3 +++ meta-python/recipes-devtools/python/python3-pydantic_2.11.2.bb | 3 +++ meta-python/recipes-devtools/python/python3-web3_7.10.0.bb | 3 +++ 4 files changed, 11 insertions(+) diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index 6866ed93cb..b8cb47538c 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -471,6 +471,8 @@ RDEPENDS:packagegroup-meta-python3 = "\ telepathy-python3 \ unattended-upgrades \ " +# Due to pydantic not being buildable on rv32 +RDEPENDS:packagegroup-meta-python3:remove:riscv32 = "python3-web3" RDEPENDS:packagegroup-meta-python3-ptest = "\ python3-ansicolors-ptest \ diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.33.1.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.33.1.bb index 687158815a..c7e57cff5b 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.33.1.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.33.1.bb @@ -46,3 +46,6 @@ do_install_ptest:append () { } BBCLASSEXTEND = "native nativesdk" + +# It needs bitvec to adopt radum 1.x see https://github.com/ferrilab/bitvec/pull/220 +COMPATIBLE_HOST:riscv32 = "null" diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.2.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.11.2.bb index c0b488cba4..896a8d6471 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.2.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.11.2.bb @@ -70,3 +70,6 @@ do_install_ptest:append() { } BBCLASSEXTEND = "native nativesdk" + +# Needs pydantic-core to be buildable +COMPATIBLE_HOST:riscv32 = "null" diff --git a/meta-python/recipes-devtools/python/python3-web3_7.10.0.bb b/meta-python/recipes-devtools/python/python3-web3_7.10.0.bb index e9f067aa96..f677585638 100644 --- a/meta-python/recipes-devtools/python/python3-web3_7.10.0.bb +++ b/meta-python/recipes-devtools/python/python3-web3_7.10.0.bb @@ -24,3 +24,6 @@ RDEPENDS:${PN} += " \ python3-websockets \ python3-pyunormalize \ " + +# Needs python3-pydantic to be buildable on rv32 +COMPATIBLE_HOST:riscv32 = "null"