diff mbox series

[meta-python,3/7] pydantic: Mark host incompatible on RISCV32

Message ID 20250407052037.502341-3-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/7] python3-pydantic-core: Upgrade to 2.33.1 | expand

Commit Message

Khem Raj April 7, 2025, 5:20 a.m. UTC
pydantic-core needs to be ported to work on rv32

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../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 mbox series

Patch

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"