mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-05 02:57:19 +00:00
python3-pydantic-core: Upgrade 2.46.4 -> 2.46.5
Upgrade to release 2.46.5 and keep all crates encapsulated in file python3-pydantic-core-crates.inc. Drop the patch that enables getrandom on all musl platforms because it has been merged in the upstrea. Release 2.46.5 brings the following changes: - Fix missing GC traversal in pydantic-core for GeneralFieldsSerializer - Fix missing GC traversal on some pydantic-core struct fields - Count validated model fields once in smart unions This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
fb5c40cf69
commit
cafc18e150
5 files changed
+56
-262
No files matched your search
+3
-6
@@ -1,4 +1,4 @@
|
||||
From ca6400743a86fa334936d9984dcd40e90bb06e60 Mon Sep 17 00:00:00 2001
|
||||
From d75df9ca49a825b67b53db9505b2aef2a79e3c76 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 19 Apr 2025 00:09:42 -0700
|
||||
Subject: [PATCH] cargo.toml: Update bitvec to use radium 1.x
|
||||
@@ -13,7 +13,7 @@ Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
|
||||
2 files changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Cargo.lock b/Cargo.lock
|
||||
index 6f26c8a..91ceade 100644
|
||||
index 22a8524..1f97c2d 100644
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -55,7 +55,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
@@ -49,7 +49,7 @@ index 6f26c8a..91ceade 100644
|
||||
[[package]]
|
||||
name = "regex"
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 1fb5dcc..4949c8a 100644
|
||||
index dd453c5..d120608 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -25,6 +25,8 @@ include = [
|
||||
@@ -61,6 +61,3 @@ index 1fb5dcc..4949c8a 100644
|
||||
# TODO it would be very nice to remove the "py-clone" feature as it can panic,
|
||||
# but needs a bit of work to make sure it's not used in the codebase
|
||||
pyo3 = { version = "0.28", features = ["generate-import-lib", "num-bigint", "py-clone", "smallvec"] }
|
||||
--
|
||||
2.47.3
|
||||
|
||||
-81
@@ -1,81 +0,0 @@
|
||||
From 4253e25b7f31d207c69b9997f403b6e4e560e258 Mon Sep 17 00:00:00 2001
|
||||
From: Tamir Duberstein <tamird@gmail.com>
|
||||
Date: Thu, 20 Mar 2025 11:45:08 -0400
|
||||
Subject: [PATCH] musl: enable `getrandom` on all musl platforms
|
||||
|
||||
The existing bindings were added in #1399 and limited to targets where
|
||||
rustc used musl version >= 1.1.20 which was not all musl targets at that
|
||||
time. Since https://github.com/rust-lang/rust/pull/107129 all musl
|
||||
targets use musl 1.2.3. Hence, move the binding to the module root so it
|
||||
is available for all musl targets.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/rust-lang/libc/pull/4346]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/unix/linux_like/linux/musl/b32/arm/mod.rs | 4 ----
|
||||
src/unix/linux_like/linux/musl/b32/powerpc.rs | 4 ----
|
||||
src/unix/linux_like/linux/musl/b32/x86/mod.rs | 4 ----
|
||||
src/unix/linux_like/linux/musl/b64/mod.rs | 4 ----
|
||||
src/unix/linux_like/linux/musl/mod.rs | 2 ++
|
||||
5 files changed, 2 insertions(+), 16 deletions(-)
|
||||
|
||||
--- a/src/unix/linux_like/linux/musl/b32/arm/mod.rs
|
||||
+++ b/src/unix/linux_like/linux/musl/b32/arm/mod.rs
|
||||
@@ -841,10 +841,6 @@ pub const SYS_process_mrelease: ::c_long
|
||||
pub const SYS_futex_waitv: ::c_long = 449;
|
||||
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
|
||||
|
||||
-extern "C" {
|
||||
- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
|
||||
-}
|
||||
-
|
||||
cfg_if! {
|
||||
if #[cfg(libc_align)] {
|
||||
mod align;
|
||||
--- a/src/unix/linux_like/linux/musl/b32/powerpc.rs
|
||||
+++ b/src/unix/linux_like/linux/musl/b32/powerpc.rs
|
||||
@@ -796,7 +796,3 @@ pub const SYS_memfd_secret: ::c_long = 4
|
||||
pub const SYS_process_mrelease: ::c_long = 448;
|
||||
pub const SYS_futex_waitv: ::c_long = 449;
|
||||
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
|
||||
-
|
||||
-extern "C" {
|
||||
- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
|
||||
-}
|
||||
--- a/src/unix/linux_like/linux/musl/b32/x86/mod.rs
|
||||
+++ b/src/unix/linux_like/linux/musl/b32/x86/mod.rs
|
||||
@@ -956,10 +956,6 @@ pub const EFL: ::c_int = 14;
|
||||
pub const UESP: ::c_int = 15;
|
||||
pub const SS: ::c_int = 16;
|
||||
|
||||
-extern "C" {
|
||||
- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
|
||||
-}
|
||||
-
|
||||
cfg_if! {
|
||||
if #[cfg(libc_align)] {
|
||||
mod align;
|
||||
--- a/src/unix/linux_like/linux/musl/b64/mod.rs
|
||||
+++ b/src/unix/linux_like/linux/musl/b64/mod.rs
|
||||
@@ -134,10 +134,6 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usi
|
||||
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
|
||||
pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32;
|
||||
|
||||
-extern "C" {
|
||||
- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
|
||||
-}
|
||||
-
|
||||
cfg_if! {
|
||||
if #[cfg(target_arch = "aarch64")] {
|
||||
mod aarch64;
|
||||
--- a/src/unix/linux_like/linux/musl/mod.rs
|
||||
+++ b/src/unix/linux_like/linux/musl/mod.rs
|
||||
@@ -885,6 +885,8 @@ extern "C" {
|
||||
|
||||
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
|
||||
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
|
||||
+ // Addded in `musl` 1.1.20
|
||||
+ pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
|
||||
}
|
||||
|
||||
// Alias <foo> to <foo>64 to mimic glibc's LFS64 support
|
||||
Reference in new issue
Block a user