diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch | 81 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb | 1 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb (renamed from meta-python/recipes-devtools/python/python3-twitter_4.15.0.bb) | 4 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb | 1 |
4 files changed, 85 insertions, 2 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch new file mode 100644 index 0000000000..fd94526686 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch | |||
@@ -0,0 +1,81 @@ | |||
1 | From 4253e25b7f31d207c69b9997f403b6e4e560e258 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tamir Duberstein <tamird@gmail.com> | ||
3 | Date: Thu, 20 Mar 2025 11:45:08 -0400 | ||
4 | Subject: [PATCH] musl: enable `getrandom` on all musl platforms | ||
5 | |||
6 | The existing bindings were added in #1399 and limited to targets where | ||
7 | rustc used musl version >= 1.1.20 which was not all musl targets at that | ||
8 | time. Since https://github.com/rust-lang/rust/pull/107129 all musl | ||
9 | targets use musl 1.2.3. Hence, move the binding to the module root so it | ||
10 | is available for all musl targets. | ||
11 | |||
12 | Upstream-Status: Backport [https://github.com/rust-lang/libc/pull/4346] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/unix/linux_like/linux/musl/b32/arm/mod.rs | 4 ---- | ||
16 | src/unix/linux_like/linux/musl/b32/powerpc.rs | 4 ---- | ||
17 | src/unix/linux_like/linux/musl/b32/x86/mod.rs | 4 ---- | ||
18 | src/unix/linux_like/linux/musl/b64/mod.rs | 4 ---- | ||
19 | src/unix/linux_like/linux/musl/mod.rs | 2 ++ | ||
20 | 5 files changed, 2 insertions(+), 16 deletions(-) | ||
21 | |||
22 | --- a/src/unix/linux_like/linux/musl/b32/arm/mod.rs | ||
23 | +++ b/src/unix/linux_like/linux/musl/b32/arm/mod.rs | ||
24 | @@ -841,10 +841,6 @@ pub const SYS_process_mrelease: ::c_long | ||
25 | pub const SYS_futex_waitv: ::c_long = 449; | ||
26 | pub const SYS_set_mempolicy_home_node: ::c_long = 450; | ||
27 | |||
28 | -extern "C" { | ||
29 | - pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
30 | -} | ||
31 | - | ||
32 | cfg_if! { | ||
33 | if #[cfg(libc_align)] { | ||
34 | mod align; | ||
35 | --- a/src/unix/linux_like/linux/musl/b32/powerpc.rs | ||
36 | +++ b/src/unix/linux_like/linux/musl/b32/powerpc.rs | ||
37 | @@ -796,7 +796,3 @@ pub const SYS_memfd_secret: ::c_long = 4 | ||
38 | pub const SYS_process_mrelease: ::c_long = 448; | ||
39 | pub const SYS_futex_waitv: ::c_long = 449; | ||
40 | pub const SYS_set_mempolicy_home_node: ::c_long = 450; | ||
41 | - | ||
42 | -extern "C" { | ||
43 | - pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
44 | -} | ||
45 | --- a/src/unix/linux_like/linux/musl/b32/x86/mod.rs | ||
46 | +++ b/src/unix/linux_like/linux/musl/b32/x86/mod.rs | ||
47 | @@ -956,10 +956,6 @@ pub const EFL: ::c_int = 14; | ||
48 | pub const UESP: ::c_int = 15; | ||
49 | pub const SS: ::c_int = 16; | ||
50 | |||
51 | -extern "C" { | ||
52 | - pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
53 | -} | ||
54 | - | ||
55 | cfg_if! { | ||
56 | if #[cfg(libc_align)] { | ||
57 | mod align; | ||
58 | --- a/src/unix/linux_like/linux/musl/b64/mod.rs | ||
59 | +++ b/src/unix/linux_like/linux/musl/b64/mod.rs | ||
60 | @@ -134,10 +134,6 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usi | ||
61 | pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40; | ||
62 | pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32; | ||
63 | |||
64 | -extern "C" { | ||
65 | - pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
66 | -} | ||
67 | - | ||
68 | cfg_if! { | ||
69 | if #[cfg(target_arch = "aarch64")] { | ||
70 | mod aarch64; | ||
71 | --- a/src/unix/linux_like/linux/musl/mod.rs | ||
72 | +++ b/src/unix/linux_like/linux/musl/mod.rs | ||
73 | @@ -885,6 +885,8 @@ extern "C" { | ||
74 | |||
75 | pub fn dirname(path: *mut ::c_char) -> *mut ::c_char; | ||
76 | pub fn basename(path: *mut ::c_char) -> *mut ::c_char; | ||
77 | + // Addded in `musl` 1.1.20 | ||
78 | + pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | ||
79 | } | ||
80 | |||
81 | // Alias <foo> to <foo>64 to mimic glibc's LFS64 support | ||
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb index 1d0d1f477b..788cbd2ceb 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb | |||
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c" | |||
11 | require ${BPN}-crates.inc | 11 | require ${BPN}-crates.inc |
12 | 12 | ||
13 | SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/" | 13 | SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/" |
14 | SRC_URI += "file://0001-musl-enable-getrandom-on-all-musl-platforms.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/libc-0.2.155/" | ||
14 | SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch" | 15 | SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch" |
15 | SRC_URI[sha256sum] = "e010b13ff0d6375ee83f7478fbda42e1fbf55f1b2feef76b673c40861ffd31e6" | 16 | SRC_URI[sha256sum] = "e010b13ff0d6375ee83f7478fbda42e1fbf55f1b2feef76b673c40861ffd31e6" |
16 | 17 | ||
diff --git a/meta-python/recipes-devtools/python/python3-twitter_4.15.0.bb b/meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb index c35b97a9e4..10b7b856bc 100644 --- a/meta-python/recipes-devtools/python/python3-twitter_4.15.0.bb +++ b/meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb | |||
@@ -2,9 +2,9 @@ SUMMARY = "Twitter for Python" | |||
2 | DESCRIPTION = "Python module to support twitter API" | 2 | DESCRIPTION = "Python module to support twitter API" |
3 | 3 | ||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=9;endline=9;md5=8227180126797a0148f94f483f3e1489" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=48c84b17f84a9a623754604ab73f28fe" |
6 | 6 | ||
7 | SRC_URI[sha256sum] = "1345cbcdf0a75e2d89f424c559fd49fda4d8cd7be25cd5131e3b57bad8a21d76" | 7 | SRC_URI[sha256sum] = "1d95cbdc50bf6353a387f881f2584eaf60d14e00dbbdd8872a73de79c66878e3" |
8 | 8 | ||
9 | PYPI_PACKAGE = "tweepy" | 9 | PYPI_PACKAGE = "tweepy" |
10 | 10 | ||
diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb index 83dc52ca19..812288881d 100644 --- a/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb +++ b/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb | |||
@@ -18,6 +18,7 @@ RDEPENDS:${PN}-ptest += " \ | |||
18 | python3-typing-extensions \ | 18 | python3-typing-extensions \ |
19 | python3-unixadmin \ | 19 | python3-unixadmin \ |
20 | python3-mypy \ | 20 | python3-mypy \ |
21 | python3-pathspec \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | DEPENDS += "\ | 24 | DEPENDS += "\ |