From 75138806e2b83bf659fed8046d3109750175c842 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 1 Aug 2025 01:41:56 +0000 Subject: python3-pydantic-core: Upgrade to 2.37.2 Add a patch to fix with rust 1.88+ Signed-off-by: Khem Raj --- .../python/python3-pydantic-core/atomic.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/atomic.patch (limited to 'meta-python/recipes-devtools/python/python3-pydantic-core/atomic.patch') diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core/atomic.patch b/meta-python/recipes-devtools/python/python3-pydantic-core/atomic.patch new file mode 100644 index 0000000000..1a6a55737c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic-core/atomic.patch @@ -0,0 +1,39 @@ +Fix ambiguous import of marker::Atomic crate + +The problem is that Atomic is being imported from two different places: + +As a type alias from sync::atomic::* +As a trait from crate::marker::* + +This creates ambiguity when the code tries to use T: Atomic + PartialEq as a trait bound. +adds explicit imports to radium-1.1.0/src/lib.rs + +Fixes +error[E0404]: expected trait, found type alias `Atomic` +error[E0659]: `Atomic` is ambiguous + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +Index: radium-1.1.0/src/lib.rs +=================================================================== +--- radium-1.1.0.orig/src/lib.rs ++++ radium-1.1.0/src/lib.rs +@@ -12,6 +12,8 @@ use core::{ + }; + + use crate::marker::*; ++use crate::marker::Atomic as AtomicTrait; ++ + pub use crate::types::{ + Atom, + Isotope, +@@ -801,7 +803,7 @@ radium! { + + unsafe impl Radium for Atom + where +- T: Atomic + PartialEq, ++ T: AtomicTrait + PartialEq, + T::Atom: Radium, + { + type Item = T; -- cgit v1.2.3-54-g00ecf