diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-02-27 11:13:17 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-02-27 17:51:18 -0800 |
commit | 9f0e5132110cd31112360d754e1203c32cb25ecc (patch) | |
tree | 4ad372096e0561c71cae58f4f708183a5a8ff4ce /meta-python/recipes-devtools/python | |
parent | ce96ca0dac0b358c826a89f77ab3b603c3e0446e (diff) | |
download | meta-openembedded-9f0e5132110cd31112360d754e1203c32cb25ecc.tar.gz |
python3-pydantic-core: Fix build for arches without 64bit atomics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
3 files changed, 139 insertions, 10 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core-crates.inc b/meta-python/recipes-devtools/python/python3-pydantic-core-crates.inc index 5518ff6ec9..dd2027948c 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core-crates.inc +++ b/meta-python/recipes-devtools/python/python3-pydantic-core-crates.inc | |||
@@ -38,12 +38,13 @@ SRC_URI += " \ | |||
38 | crate://crates.io/parking_lot/0.12.1 \ | 38 | crate://crates.io/parking_lot/0.12.1 \ |
39 | crate://crates.io/parking_lot_core/0.9.8 \ | 39 | crate://crates.io/parking_lot_core/0.9.8 \ |
40 | crate://crates.io/percent-encoding/2.3.1 \ | 40 | crate://crates.io/percent-encoding/2.3.1 \ |
41 | crate://crates.io/portable-atomic/1.6.0 \ | ||
41 | crate://crates.io/proc-macro2/1.0.76 \ | 42 | crate://crates.io/proc-macro2/1.0.76 \ |
42 | crate://crates.io/pyo3/0.20.2 \ | 43 | crate://crates.io/pyo3/0.20.3 \ |
43 | crate://crates.io/pyo3-build-config/0.20.2 \ | 44 | crate://crates.io/pyo3-build-config/0.20.3 \ |
44 | crate://crates.io/pyo3-ffi/0.20.2 \ | 45 | crate://crates.io/pyo3-ffi/0.20.3 \ |
45 | crate://crates.io/pyo3-macros/0.20.2 \ | 46 | crate://crates.io/pyo3-macros/0.20.3 \ |
46 | crate://crates.io/pyo3-macros-backend/0.20.2 \ | 47 | crate://crates.io/pyo3-macros-backend/0.20.3 \ |
47 | crate://crates.io/python3-dll-a/0.2.9 \ | 48 | crate://crates.io/python3-dll-a/0.2.9 \ |
48 | crate://crates.io/quote/1.0.35 \ | 49 | crate://crates.io/quote/1.0.35 \ |
49 | crate://crates.io/redox_syscall/0.3.5 \ | 50 | crate://crates.io/redox_syscall/0.3.5 \ |
@@ -121,12 +122,13 @@ SRC_URI[once_cell-1.18.0.sha256sum] = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7 | |||
121 | SRC_URI[parking_lot-0.12.1.sha256sum] = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" | 122 | SRC_URI[parking_lot-0.12.1.sha256sum] = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" |
122 | SRC_URI[parking_lot_core-0.9.8.sha256sum] = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" | 123 | SRC_URI[parking_lot_core-0.9.8.sha256sum] = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" |
123 | SRC_URI[percent-encoding-2.3.1.sha256sum] = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" | 124 | SRC_URI[percent-encoding-2.3.1.sha256sum] = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" |
125 | SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" | ||
124 | SRC_URI[proc-macro2-1.0.76.sha256sum] = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" | 126 | SRC_URI[proc-macro2-1.0.76.sha256sum] = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" |
125 | SRC_URI[pyo3-0.20.2.sha256sum] = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0" | 127 | SRC_URI[pyo3-0.20.3.sha256sum] = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233" |
126 | SRC_URI[pyo3-build-config-0.20.2.sha256sum] = "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be" | 128 | SRC_URI[pyo3-build-config-0.20.3.sha256sum] = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7" |
127 | SRC_URI[pyo3-ffi-0.20.2.sha256sum] = "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1" | 129 | SRC_URI[pyo3-ffi-0.20.3.sha256sum] = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa" |
128 | SRC_URI[pyo3-macros-0.20.2.sha256sum] = "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3" | 130 | SRC_URI[pyo3-macros-0.20.3.sha256sum] = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158" |
129 | SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] = "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f" | 131 | SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185" |
130 | SRC_URI[python3-dll-a-0.2.9.sha256sum] = "d5f07cd4412be8fa09a721d40007c483981bbe072cd6a21f2e83e04ec8f8343f" | 132 | SRC_URI[python3-dll-a-0.2.9.sha256sum] = "d5f07cd4412be8fa09a721d40007c483981bbe072cd6a21f2e83e04ec8f8343f" |
131 | SRC_URI[quote-1.0.35.sha256sum] = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" | 133 | SRC_URI[quote-1.0.35.sha256sum] = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" |
132 | SRC_URI[redox_syscall-0.3.5.sha256sum] = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" | 134 | SRC_URI[redox_syscall-0.3.5.sha256sum] = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" |
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core/0001-Bumps-pyo3-https-github.com-pyo3-pyo3-from-0.20.2-to.patch b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-Bumps-pyo3-https-github.com-pyo3-pyo3-from-0.20.2-to.patch new file mode 100644 index 0000000000..32777e1d03 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-Bumps-pyo3-https-github.com-pyo3-pyo3-from-0.20.2-to.patch | |||
@@ -0,0 +1,126 @@ | |||
1 | From a5690f973384bf8cbf4deb3b83d822b7aaefbdd8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 27 Feb 2024 11:00:46 -0800 | ||
4 | Subject: [PATCH] Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.20.2 to | ||
5 | 0.20.3. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Cargo.lock | 26 +++++++++++++++++--------- | ||
11 | Cargo.toml | 2 +- | ||
12 | 2 files changed, 18 insertions(+), 10 deletions(-) | ||
13 | |||
14 | --- a/Cargo.lock | ||
15 | +++ b/Cargo.lock | ||
16 | @@ -322,6 +322,12 @@ source = "registry+https://github.com/ru | ||
17 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" | ||
18 | |||
19 | [[package]] | ||
20 | +name = "portable-atomic" | ||
21 | +version = "1.6.0" | ||
22 | +source = "registry+https://github.com/rust-lang/crates.io-index" | ||
23 | +checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" | ||
24 | + | ||
25 | +[[package]] | ||
26 | name = "proc-macro2" | ||
27 | version = "1.0.76" | ||
28 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
29 | @@ -357,9 +363,9 @@ dependencies = [ | ||
30 | |||
31 | [[package]] | ||
32 | name = "pyo3" | ||
33 | -version = "0.20.2" | ||
34 | +version = "0.20.3" | ||
35 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
36 | -checksum = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0" | ||
37 | +checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233" | ||
38 | dependencies = [ | ||
39 | "cfg-if", | ||
40 | "indoc", | ||
41 | @@ -367,6 +373,7 @@ dependencies = [ | ||
42 | "memoffset", | ||
43 | "num-bigint", | ||
44 | "parking_lot", | ||
45 | + "portable-atomic", | ||
46 | "pyo3-build-config", | ||
47 | "pyo3-ffi", | ||
48 | "pyo3-macros", | ||
49 | @@ -375,9 +382,9 @@ dependencies = [ | ||
50 | |||
51 | [[package]] | ||
52 | name = "pyo3-build-config" | ||
53 | -version = "0.20.2" | ||
54 | +version = "0.20.3" | ||
55 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
56 | -checksum = "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be" | ||
57 | +checksum = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7" | ||
58 | dependencies = [ | ||
59 | "once_cell", | ||
60 | "python3-dll-a", | ||
61 | @@ -386,9 +393,9 @@ dependencies = [ | ||
62 | |||
63 | [[package]] | ||
64 | name = "pyo3-ffi" | ||
65 | -version = "0.20.2" | ||
66 | +version = "0.20.3" | ||
67 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
68 | -checksum = "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1" | ||
69 | +checksum = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa" | ||
70 | dependencies = [ | ||
71 | "libc", | ||
72 | "pyo3-build-config", | ||
73 | @@ -396,9 +403,9 @@ dependencies = [ | ||
74 | |||
75 | [[package]] | ||
76 | name = "pyo3-macros" | ||
77 | -version = "0.20.2" | ||
78 | +version = "0.20.3" | ||
79 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
80 | -checksum = "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3" | ||
81 | +checksum = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158" | ||
82 | dependencies = [ | ||
83 | "proc-macro2", | ||
84 | "pyo3-macros-backend", | ||
85 | @@ -408,12 +415,13 @@ dependencies = [ | ||
86 | |||
87 | [[package]] | ||
88 | name = "pyo3-macros-backend" | ||
89 | -version = "0.20.2" | ||
90 | +version = "0.20.3" | ||
91 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
92 | -checksum = "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f" | ||
93 | +checksum = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185" | ||
94 | dependencies = [ | ||
95 | "heck", | ||
96 | "proc-macro2", | ||
97 | + "pyo3-build-config", | ||
98 | "quote", | ||
99 | "syn", | ||
100 | ] | ||
101 | --- a/Cargo.toml | ||
102 | +++ b/Cargo.toml | ||
103 | @@ -26,7 +26,7 @@ include = [ | ||
104 | ] | ||
105 | |||
106 | [dependencies] | ||
107 | -pyo3 = { version = "0.20.2", features = ["generate-import-lib", "num-bigint"] } | ||
108 | +pyo3 = { version = "0.20.3", features = ["generate-import-lib", "num-bigint"] } | ||
109 | regex = "1.10.2" | ||
110 | strum = { version = "0.25.0", features = ["derive"] } | ||
111 | strum_macros = "0.25.3" | ||
112 | @@ -70,12 +70,12 @@ debug = true | ||
113 | strip = false | ||
114 | |||
115 | [dev-dependencies] | ||
116 | -pyo3 = { version = "0.20.2", features = ["auto-initialize"] } | ||
117 | +pyo3 = { version = "0.20.3", features = ["auto-initialize"] } | ||
118 | |||
119 | [build-dependencies] | ||
120 | version_check = "0.9.4" | ||
121 | # used where logic has to be version/distribution specific, e.g. pypy | ||
122 | -pyo3-build-config = { version = "0.20.2" } | ||
123 | +pyo3-build-config = { version = "0.20.3" } | ||
124 | |||
125 | [lints.clippy] | ||
126 | dbg_macro = "warn" | ||
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb index ef48c0020d..b26478451a 100644 --- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.16.3.bb | |||
@@ -8,6 +8,7 @@ HOMEPAGE = "https://github.com/pydantic/pydantic-core" | |||
8 | LICENSE = "MIT" | 8 | LICENSE = "MIT" |
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c" | 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c" |
10 | 10 | ||
11 | SRC_URI += "file://0001-Bumps-pyo3-https-github.com-pyo3-pyo3-from-0.20.2-to.patch" | ||
11 | SRC_URI[sha256sum] = "1cac689f80a3abab2d3c0048b29eea5751114054f032a941a32de4c852c59cad" | 12 | SRC_URI[sha256sum] = "1cac689f80a3abab2d3c0048b29eea5751114054f032a941a32de4c852c59cad" |
12 | 13 | ||
13 | DEPENDS = "python3-maturin-native python3-typing-extensions" | 14 | DEPENDS = "python3-maturin-native python3-typing-extensions" |