Skip to contentSkip to conversation

python3-bcrypt: Fix build break on arches without 64 bit atomics

PATCH In review Khem Raj 2 participants 6 messages Feb 27, 2024 – Feb 28, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/2 python3-bcrypt: Fix build break on arches without 64 bit atomics

bump pyo3 to 0.20.3, which brings the needed fixes for building for architectures without 64bit atomics [1]

[1] https://github.com/pyca/bcrypt/pull/746

---
v2: Fix commit msg to reflect affected arches

 .../python/python3-bcrypt-crates.inc          |  22 ++--
 ...-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch | 111 ++++++++++++++++++
 .../python/python3-bcrypt_4.1.2.bb            |   1 +
 3 files changed, 124 insertions(+), 10 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python3-bcrypt/0001-Bump-pyo3-from-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch
meta/recipes-devtools/python/python3-bcrypt-crates.inc +12 -10
index 5db6d1e96ef..0e7479f0b57 100644
@@ -27,12 +27,13 @@ SRC_URI += " \
     crate://crates.io/parking_lot/0.12.1 \
     crate://crates.io/parking_lot_core/0.9.9 \
     crate://crates.io/pbkdf2/0.12.2 \
+    crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.70 \
-    crate://crates.io/pyo3/0.20.0 \
-    crate://crates.io/pyo3-build-config/0.20.0 \
-    crate://crates.io/pyo3-ffi/0.20.0 \
-    crate://crates.io/pyo3-macros/0.20.0 \
-    crate://crates.io/pyo3-macros-backend/0.20.0 \
+    crate://crates.io/pyo3/0.20.3 \
+    crate://crates.io/pyo3-build-config/0.20.3 \
+    crate://crates.io/pyo3-ffi/0.20.3 \
+    crate://crates.io/pyo3-macros/0.20.3 \
+    crate://crates.io/pyo3-macros-backend/0.20.3 \
     crate://crates.io/quote/1.0.33 \
     crate://crates.io/redox_syscall/0.4.1 \
     crate://crates.io/scopeguard/1.2.0 \
@@ -82,12 +83,13 @@ SRC_URI[once_cell-1.19.0.sha256sum] = "3fdb12b2476b595f9358c5161aa467c2438859caa
 SRC_URI[parking_lot-0.12.1.sha256sum] = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pbkdf2-0.12.2.sha256sum] = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"
+SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
 SRC_URI[proc-macro2-1.0.70.sha256sum] = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b"
-SRC_URI[pyo3-0.20.0.sha256sum] = "04e8453b658fe480c3e70c8ed4e3d3ec33eb74988bd186561b0cc66b85c3bc4b"
-SRC_URI[pyo3-build-config-0.20.0.sha256sum] = "a96fe70b176a89cff78f2fa7b3c930081e163d5379b4dcdf993e3ae29ca662e5"
-SRC_URI[pyo3-ffi-0.20.0.sha256sum] = "214929900fd25e6604661ed9cf349727c8920d47deff196c4e28165a6ef2a96b"
-SRC_URI[pyo3-macros-0.20.0.sha256sum] = "dac53072f717aa1bfa4db832b39de8c875b7c7af4f4a6fe93cdbf9264cf8383b"
-SRC_URI[pyo3-macros-backend-0.20.0.sha256sum] = "7774b5a8282bd4f25f803b1f0d945120be959a36c72e08e7cd031c792fdfd424"
+SRC_URI[pyo3-0.20.3.sha256sum] = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+SRC_URI[pyo3-macros-0.20.3.sha256sum] = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
 SRC_URI[quote-1.0.33.sha256sum] = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
 SRC_URI[redox_syscall-0.4.1.sha256sum] = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
 SRC_URI[scopeguard-1.2.0.sha256sum] = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
meta/recipes-devtools/python/python3-bcrypt/0001-Bump-pyo3-from-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch new file +111 -0

111 lines not on this page · raw message

meta/recipes-devtools/python/python3-bcrypt_4.1.2.bb +1 -0
index 8328594bad6..93fa645f330 100644
@@ -11,6 +11,7 @@ SRC_URI[sha256sum] = "33313a1200a3ae90b75587ceac502b048b840fc69e7f7a0905b5f87fac
 inherit pypi python_setuptools3_rust ptest-cargo cargo-update-recipe-crates
 
 SRC_URI += " \
+	file://0001-Bump-pyo3-from-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch \
 	file://run-ptest \
 "
 
Signature · 1 line
2.44.0
author
#1 lore raw

PATCH v2 2/2 python3-cryptography: Update pyo3 crate to 0.20.3

This gets it building on architectures without 64bit atomics.

---
 .../python/python3-cryptography-crates.inc    |  22 ++--
 ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++++++++++++++++++
 .../python/python3-cryptography_42.0.2.bb     |   1 +
 3 files changed, 118 insertions(+), 10 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
meta/recipes-devtools/python/python3-cryptography-crates.inc +12 -10
index 4714c76bd2b..b26e22b70c3 100644
@@ -25,12 +25,13 @@ SRC_URI += " \
     crate://crates.io/parking_lot_core/0.9.9 \
     crate://crates.io/pem/3.0.3 \
     crate://crates.io/pkg-config/0.3.29 \
+    crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.78 \
-    crate://crates.io/pyo3/0.20.2 \
-    crate://crates.io/pyo3-build-config/0.20.2 \
-    crate://crates.io/pyo3-ffi/0.20.2 \
-    crate://crates.io/pyo3-macros/0.20.2 \
-    crate://crates.io/pyo3-macros-backend/0.20.2 \
+    crate://crates.io/pyo3/0.20.3 \
+    crate://crates.io/pyo3-build-config/0.20.3 \
+    crate://crates.io/pyo3-ffi/0.20.3 \
+    crate://crates.io/pyo3-macros/0.20.3 \
+    crate://crates.io/pyo3-macros-backend/0.20.3 \
     crate://crates.io/quote/1.0.35 \
     crate://crates.io/redox_syscall/0.4.1 \
     crate://crates.io/scopeguard/1.2.0 \
@@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] = "3742b2c103b9f06bc9fff0a37ff4912935851be
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pem-3.0.3.sha256sum] = "1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
 SRC_URI[pkg-config-0.3.29.sha256sum] = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
+SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
 SRC_URI[proc-macro2-1.0.78.sha256sum] = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
-SRC_URI[pyo3-0.20.2.sha256sum] = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
-SRC_URI[pyo3-build-config-0.20.2.sha256sum] = "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
-SRC_URI[pyo3-ffi-0.20.2.sha256sum] = "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
-SRC_URI[pyo3-macros-0.20.2.sha256sum] = "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
-SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] = "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
+SRC_URI[pyo3-0.20.3.sha256sum] = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+SRC_URI[pyo3-macros-0.20.3.sha256sum] = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
 SRC_URI[quote-1.0.35.sha256sum] = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
 SRC_URI[redox_syscall-0.4.1.sha256sum] = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
 SRC_URI[scopeguard-1.2.0.sha256sum] = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch new file +105 -0

105 lines not on this page · raw message

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +1 -0
index c21c4d1a03b..da10e2e60c1 100644
@@ -11,6 +11,7 @@ LDSHARED += "-pthread"
 SRC_URI[sha256sum] = "e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"
 
 SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
+            file://0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch \
             file://check-memfree.py \
             file://run-ptest \
            "
Signature · 1 line
2.44.0
#2 lore raw

Re: [OE-core] [PATCH v2 2/2] python3-cryptography: Update pyo3 crate to 0.20.3

Quoted 3 lines · Khem Raj

This gets it building on architectures without 64bit atomics.

We could also upgrade to python3-cryptography 42.0.5
https://cryptography.io/en/latest/changelog/#v42-0-5
Do we want to do that at this stage?

Quoted 230 lines
---
 .../python/python3-cryptography-crates.inc    |  22 ++--
 ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++++++++++++++++++
 .../python/python3-cryptography_42.0.2.bb     |   1 +
 3 files changed, 118 insertions(+), 10 deletions(-)
 create mode 100644

meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

meta/recipes-devtools/python/python3-cryptography-crates.inc +6 -5
index 4714c76bd2b..b26e22b70c3 100644
@@ -25,12 +25,13 @@ SRC_URI += " \
     crate://crates.io/parking_lot_core/0.9.9 \
     crate://crates.io/pem/3.0.3 \
     crate://crates.io/pkg-config/0.3.29 \
+    crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.78 \
-    crate://crates.io/pyo3/0.20.2 \
-    crate://crates.io/pyo3-build-config/0.20.2 \
-    crate://crates.io/pyo3-ffi/0.20.2 \
-    crate://crates.io/pyo3-macros/0.20.2 \
-    crate://crates.io/pyo3-macros-backend/0.20.2 \
+    crate://crates.io/pyo3/0.20.3 \
+    crate://crates.io/pyo3-build-config/0.20.3 \
+    crate://crates.io/pyo3-ffi/0.20.3 \
+    crate://crates.io/pyo3-macros/0.20.3 \
+    crate://crates.io/pyo3-macros-backend/0.20.3 \
     crate://crates.io/quote/1.0.35 \
     crate://crates.io/redox_syscall/0.4.1 \
     crate://crates.io/scopeguard/1.2.0 \
@@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] =

"3742b2c103b9f06bc9fff0a37ff4912935851be
SRC_URI[parking_lot_core-0.9.9.sha256sum] =
"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
SRC_URI[pem-3.0.3.sha256sum] =
"1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
SRC_URI[pkg-config-0.3.29.sha256sum] =
"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" +SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
SRC_URI[proc-macro2-1.0.78.sha256sum] =
"e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" -SRC_URI[pyo3-0.20.2.sha256sum] = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0" -SRC_URI[pyo3-build-config-0.20.2.sha256sum] = "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be" -SRC_URI[pyo3-ffi-0.20.2.sha256sum] = "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1" -SRC_URI[pyo3-macros-0.20.2.sha256sum] = "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3" -SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] = "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f" +SRC_URI[pyo3-0.20.3.sha256sum] = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233" +SRC_URI[pyo3-build-config-0.20.3.sha256sum] = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7" +SRC_URI[pyo3-ffi-0.20.3.sha256sum] = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa" +SRC_URI[pyo3-macros-0.20.3.sha256sum] = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158" +SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
SRC_URI[quote-1.0.35.sha256sum] =
"291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
SRC_URI[redox_syscall-0.4.1.sha256sum] =
"4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
SRC_URI[scopeguard-1.2.0.sha256sum] =
"94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
diff --git a/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch new file mode 100644
index 00000000000..33dd7ae5d5a
--- /dev/null
+++
b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
@@ -0,0 +1,105 @@
+From f6ec5ab18b5beacb08b0157c5193ea626b44b4e1 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 27 Feb 2024 09:30:15 -0800
+Subject: [PATCH] Bump pyo3 from 0.20.2 to 0.20.3 in /src/rust (#10462)
+
+It fixes build on hosts without 64bit atomics
+
+Upstream-Status: Backport [

https://github.com/pyca/cryptography/commit/3598d2ee4b5060dbbe6938b893410ed35074567c
]

meta/recipes-devtools/python/python3-cryptography-crates.inc +13 -0
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/rust/Cargo.lock | 28 ++++++++++++++++++----------
+ 1 file changed, 18 insertions(+), 10 deletions(-)
+
+diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock
+index b2e0ac4..030e38d 100644
+--- a/src/rust/Cargo.lock
++++ b/src/rust/Cargo.lock
+@@ -263,6 +263,12 @@ version = "0.3.29"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum =

"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" +
++[[package]]
++name = "portable-atomic"
++version = "1.6.0"
++source = "registry+https://github.com/rust-lang/crates.io-index" ++checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" ++
+ [[package]]
+ name = "proc-macro2"
+ version = "1.0.78"
+@@ -274,15 +280,16 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0" ++checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+ dependencies = [

meta/recipes-devtools/python/python3-cryptography-crates.inc +17 -0
+  "cfg-if",
+  "indoc",
+  "libc",
+  "memoffset",
+  "parking_lot",
++ "portable-atomic",
+  "pyo3-build-config",
+  "pyo3-ffi",
+  "pyo3-macros",
+@@ -291,9 +298,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-build-config"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be" ++checksum = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+ dependencies = [

meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+  "once_cell",
+  "target-lexicon",
+@@ -301,9 +308,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-ffi"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1" ++checksum = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+ dependencies = [

meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+  "libc",
+  "pyo3-build-config",
+@@ -311,9 +318,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3" ++checksum = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+ dependencies = [

meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+  "proc-macro2",
+  "pyo3-macros-backend",
+@@ -323,12 +330,13 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros-backend"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f" ++checksum = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
+ dependencies = [

meta/recipes-devtools/python/python3-cryptography-crates.inc +9 -0
+  "heck",
+  "proc-macro2",
++ "pyo3-build-config",
+  "quote",
+  "syn",
+ ]
+--
+2.44.0
+
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -0
index c21c4d1a03b..da10e2e60c1 100644
@@ -11,6 +11,7 @@ LDSHARED += "-pthread"
 SRC_URI[sha256sum] =

"e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"

SRC_URI +=
"file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
+

file://0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch \
             file://check-memfree.py \
             file://run-ptest \
            "

--
2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#196287):
https://lists.openembedded.org/g/openembedded-core/message/196287
Mute This Topic: https://lists.openembedded.org/mt/104607684/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw

Re: [OE-core] [PATCH v2 2/2] python3-cryptography: Update pyo3 crate to 0.20.3

Quoted 11 lines · Tim Orling
Quoted 3 lines · Khem Raj

This gets it building on architectures without 64bit atomics.

We could also upgrade to python3-cryptography 42.0.5
https://cryptography.io/en/latest/changelog/#v42-0-5
Do we want to do that at this stage?

upgrade to 42.0.5 will still need this patch regardless since it will only be in next release, so update or not is orthogonal to this issue.

Quoted 187 lines
Quoted 187 lines
---
 .../python/python3-cryptography-crates.inc    |  22 ++--
 ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++++++++++++++++++
 .../python/python3-cryptography_42.0.2.bb     |   1 +
 3 files changed, 118 insertions(+), 10 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
meta/recipes-devtools/python/python3-cryptography-crates.inc +12 -10
index 4714c76bd2b..b26e22b70c3 100644
@@ -25,12 +25,13 @@ SRC_URI += " \
     crate://crates.io/parking_lot_core/0.9.9 \
     crate://crates.io/pem/3.0.3 \
     crate://crates.io/pkg-config/0.3.29 \
+    crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.78 \
-    crate://crates.io/pyo3/0.20.2 \
-    crate://crates.io/pyo3-build-config/0.20.2 \
-    crate://crates.io/pyo3-ffi/0.20.2 \
-    crate://crates.io/pyo3-macros/0.20.2 \
-    crate://crates.io/pyo3-macros-backend/0.20.2 \
+    crate://crates.io/pyo3/0.20.3 \
+    crate://crates.io/pyo3-build-config/0.20.3 \
+    crate://crates.io/pyo3-ffi/0.20.3 \
+    crate://crates.io/pyo3-macros/0.20.3 \
+    crate://crates.io/pyo3-macros-backend/0.20.3 \
     crate://crates.io/quote/1.0.35 \
     crate://crates.io/redox_syscall/0.4.1 \
     crate://crates.io/scopeguard/1.2.0 \
@@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] = "3742b2c103b9f06bc9fff0a37ff4912935851be
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pem-3.0.3.sha256sum] = "1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
 SRC_URI[pkg-config-0.3.29.sha256sum] = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
+SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
 SRC_URI[proc-macro2-1.0.78.sha256sum] = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
-SRC_URI[pyo3-0.20.2.sha256sum] = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
-SRC_URI[pyo3-build-config-0.20.2.sha256sum] = "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
-SRC_URI[pyo3-ffi-0.20.2.sha256sum] = "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
-SRC_URI[pyo3-macros-0.20.2.sha256sum] = "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
-SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] = "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
+SRC_URI[pyo3-0.20.3.sha256sum] = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+SRC_URI[pyo3-macros-0.20.3.sha256sum] = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
 SRC_URI[quote-1.0.35.sha256sum] = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
 SRC_URI[redox_syscall-0.4.1.sha256sum] = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
 SRC_URI[scopeguard-1.2.0.sha256sum] = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch new file +105 -0
new file mode 100644
index 00000000000..33dd7ae5d5a
@@ -0,0 +1,105 @@
+From f6ec5ab18b5beacb08b0157c5193ea626b44b4e1 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 27 Feb 2024 09:30:15 -0800
+Subject: [PATCH] Bump pyo3 from 0.20.2 to 0.20.3 in /src/rust (#10462)
+
+It fixes build on hosts without 64bit atomics
+
+Upstream-Status: Backport [https://github.com/pyca/cryptography/commit/3598d2ee4b5060dbbe6938b893410ed35074567c]
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/rust/Cargo.lock | 28 ++++++++++++++++++----------
+ 1 file changed, 18 insertions(+), 10 deletions(-)
+
+diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock
+index b2e0ac4..030e38d 100644
+--- a/src/rust/Cargo.lock
++++ b/src/rust/Cargo.lock
+@@ -263,6 +263,12 @@ version = "0.3.29"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
+
++[[package]]
++name = "portable-atomic"
++version = "1.6.0"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
++
+ [[package]]
+ name = "proc-macro2"
+ version = "1.0.78"
+@@ -274,15 +280,16 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
++checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+ dependencies = [
+  "cfg-if",
+  "indoc",
+  "libc",
+  "memoffset",
+  "parking_lot",
++ "portable-atomic",
+  "pyo3-build-config",
+  "pyo3-ffi",
+  "pyo3-macros",
+@@ -291,9 +298,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-build-config"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
++checksum = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+ dependencies = [
+  "once_cell",
+  "target-lexicon",
+@@ -301,9 +308,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-ffi"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
++checksum = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+ dependencies = [
+  "libc",
+  "pyo3-build-config",
+@@ -311,9 +318,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
++checksum = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+ dependencies = [
+  "proc-macro2",
+  "pyo3-macros-backend",
+@@ -323,12 +330,13 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros-backend"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
++checksum = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
+ dependencies = [
+  "heck",
+  "proc-macro2",
++ "pyo3-build-config",
+  "quote",
+  "syn",
+ ]
+--
+2.44.0
+
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +1 -1
index c21c4d1a03b..da10e2e60c1 100644
@@ -11,6 +11,7 @@ LDSHARED += "-pthread"
 SRC_URI[sha256sum] = "e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"
 
 SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
+            file://0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch \
             file://check-memfree.py \
             file://run-ptest \
            "
--

2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196287): https://lists.openembedded.org/g/openembedded-core/message/196287
Mute This Topic: https://lists.openembedded.org/mt/104607684/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [OE-core] [PATCH v2 2/2] python3-cryptography: Update pyo3 crate to 0.20.3

Quoted 13 lines · Khem Raj
Quoted 11 lines · Tim Orling
Quoted 3 lines · Khem Raj

This gets it building on architectures without 64bit atomics.

We could also upgrade to python3-cryptography 42.0.5
https://cryptography.io/en/latest/changelog/#v42-0-5
Do we want to do that at this stage?

Quoted 5 lines

upgrade to 42.0.5 will still need this patch regardless since it will only be in next release, so update or not is orthogonal to this issue.

The pyo3 upgrade was backported to 42.0.5

https://github.com/pyca/cryptography/compare/42.0.2...42.0.5
https://github.com/pyca/cryptography/commit/8e9de309f850a17409da5de39cfcd9296c25ea36

Quoted 234 lines
Quoted 9 lines
Quoted 9 lines
---
 .../python/python3-cryptography-crates.inc    |  22 ++--
 ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++++++++++++++++++
 .../python/python3-cryptography_42.0.2.bb     |   1 +
 3 files changed, 118 insertions(+), 10 deletions(-)
 create mode 100644

meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

Quoted 2 lines
Quoted 2 lines

diff --git

a/meta/recipes-devtools/python/python3-cryptography-crates.inc b/meta/recipes-devtools/python/python3-cryptography-crates.inc

Quoted 15 lines
Quoted 15 lines

index 4714c76bd2b..b26e22b70c3 100644

meta/recipes-devtools/python/python3-cryptography-crates.inc +2 -5
@@ -25,12 +25,13 @@ SRC_URI += " \
     crate://crates.io/parking_lot_core/0.9.9 \
     crate://crates.io/pem/3.0.3 \
     crate://crates.io/pkg-config/0.3.29 \
+    crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.78 \
-    crate://crates.io/pyo3/0.20.2 \
-    crate://crates.io/pyo3-build-config/0.20.2 \
-    crate://crates.io/pyo3-ffi/0.20.2 \
-    crate://crates.io/pyo3-macros/0.20.2 \
-    crate://crates.io/pyo3-macros-backend/0.20.2 \
+    crate://crates.io/pyo3/0.20.3 \
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] =

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +4 -0
+    crate://crates.io/pyo3-build-config/0.20.3 \
+    crate://crates.io/pyo3-ffi/0.20.3 \
+    crate://crates.io/pyo3-macros/0.20.3 \
+    crate://crates.io/pyo3-macros-backend/0.20.3 \
     crate://crates.io/quote/1.0.35 \
     crate://crates.io/redox_syscall/0.4.1 \
     crate://crates.io/scopeguard/1.2.0 \
@@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] =

"3742b2c103b9f06bc9fff0a37ff4912935851be

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 75

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[parking_lot_core-0.9.9.sha256sum] =

"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 76

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[pem-3.0.3.sha256sum] =

"1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 77

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[pkg-config-0.3.29.sha256sum] =

"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 78

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[portable-atomic-1.6.0.sha256sum] =

"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 79

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[proc-macro2-1.0.78.sha256sum] =

"e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 78

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-0.20.2.sha256sum] =

"9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 79

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-build-config-0.20.2.sha256sum] =

"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 80

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-ffi-0.20.2.sha256sum] =

"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 81

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-macros-0.20.2.sha256sum] =

"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 82

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] =

"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 80

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-0.20.3.sha256sum] =

"53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 81

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] =

"deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 82

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] =

"62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 83

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-macros-0.20.3.sha256sum] =

"7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 84

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] =

"7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 85

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[quote-1.0.35.sha256sum] =

"291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 86

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[redox_syscall-0.4.1.sha256sum] =

"4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 87

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[scopeguard-1.2.0.sha256sum] =

"94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"

Quoted 1 line
Quoted 1 line

diff --git

a/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 00000000000..33dd7ae5d5a
--- /dev/null
+++

b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

Quoted 9 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 8

Quoted 9 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
@@ -0,0 +1,105 @@
+From f6ec5ab18b5beacb08b0157c5193ea626b44b4e1 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 27 Feb 2024 09:30:15 -0800
+Subject: [PATCH] Bump pyo3 from 0.20.2 to 0.20.3 in /src/rust (#10462)
+
+It fixes build on hosts without 64bit atomics
+
+Upstream-Status: Backport [

https://github.com/pyca/cryptography/commit/3598d2ee4b5060dbbe6938b893410ed35074567c
]

Quoted 5 lines
Quoted 5 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +5 -0
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/rust/Cargo.lock | 28 ++++++++++++++++++----------
+ 1 file changed, 18 insertions(+), 10 deletions(-)
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 21

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
+
+diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock
+index b2e0ac4..030e38d 100644
+--- a/src/rust/Cargo.lock
++++ b/src/rust/Cargo.lock
+@@ -263,6 +263,12 @@ version = "0.3.29"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum =

"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"

Quoted 6 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 27

Quoted 6 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +6 -0
+
++[[package]]
++name = "portable-atomic"
++version = "1.6.0"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum =

"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"

Quoted 4 lines
Quoted 4 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +4 -0
++
+ [[package]]
+ name = "proc-macro2"
+ version = "1.0.78"
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 39

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
+@@ -274,15 +280,16 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 40

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"

Quoted 10 lines
Quoted 10 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+ dependencies = [
+  "cfg-if",
+  "indoc",
+  "libc",
+  "memoffset",
+  "parking_lot",
++ "portable-atomic",
+  "pyo3-build-config",
+  "pyo3-ffi",
+  "pyo3-macros",
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 58

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
+@@ -291,9 +298,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-build-config"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 59

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"

Quoted 11 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 70

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +11 -0
+ dependencies = [
+  "once_cell",
+  "target-lexicon",
+@@ -301,9 +308,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-ffi"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 71

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"

Quoted 11 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 82

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +11 -0
+ dependencies = [
+  "libc",
+  "pyo3-build-config",
+@@ -311,9 +318,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 83

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"

Quoted 11 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 94

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +11 -0
+ dependencies = [
+  "proc-macro2",
+  "pyo3-macros-backend",
+@@ -323,12 +330,13 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros-backend"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 95

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"

Quoted 11 lines

Review

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+ dependencies = [
+  "heck",
+  "proc-macro2",
++ "pyo3-build-config",
+  "quote",
+  "syn",
+ ]
+--
+2.44.0
+
(quoted diff) +0 -0

python3-cryptography_42.0.2.bb b/meta/recipes-devtools/python/ python3-cryptography_42.0.2.bb

Quoted 5 lines

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb LDSHARED += "-pthread" · line 11

Quoted 5 lines

index c21c4d1a03b..da10e2e60c1 100644

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -0
@@ -11,6 +11,7 @@ LDSHARED += "-pthread"
 SRC_URI[sha256sum] =

"e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"

Quoted 2 lines

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb LDSHARED += "-pthread" · line 12

Quoted 2 lines
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -0
 SRC_URI +=

"file://0001-pyproject.toml-remove-benchmark-disable-option.patch \

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb LDSHARED += "-pthread" · line 13

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +1 -0
+

file://0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch \

Quoted 10 lines
Quoted 10 lines
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -1
             file://check-memfree.py \
             file://run-ptest \
            "
--

2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#196287):

https://lists.openembedded.org/g/openembedded-core/message/196287

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/104607684/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

author
#5 lore raw

Re: [OE-core] [PATCH v2 2/2] python3-cryptography: Update pyo3 crate to 0.20.3

No

Quoted 17 lines · Tim Orling
Quoted 13 lines · Khem Raj
Quoted 11 lines · Tim Orling
Quoted 3 lines · Khem Raj

This gets it building on architectures without 64bit atomics.

We could also upgrade to python3-cryptography 42.0.5
https://cryptography.io/en/latest/changelog/#v42-0-5
Do we want to do that at this stage?

Quoted 10 lines
Quoted 5 lines

upgrade to 42.0.5 will still need this patch regardless since it will only be in next release, so update or not is orthogonal to this issue.

The pyo3 upgrade was backported to 42.0.5

https://github.com/pyca/cryptography/compare/42.0.2...42.0.5

https://github.com/pyca/cryptography/commit/8e9de309f850a17409da5de39cfcd9296c25ea36

Nice I was looking at the trunk alone

Quoted 235 lines
Quoted 234 lines
Quoted 9 lines
Quoted 9 lines
---
 .../python/python3-cryptography-crates.inc    |  22 ++--
 ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++++++++++++++++++
 .../python/python3-cryptography_42.0.2.bb     |   1 +
 3 files changed, 118 insertions(+), 10 deletions(-)
 create mode 100644

meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

Quoted 2 lines
Quoted 2 lines

diff --git

a/meta/recipes-devtools/python/python3-cryptography-crates.inc b/meta/recipes-devtools/python/python3-cryptography-crates.inc

Quoted 15 lines
Quoted 15 lines

index 4714c76bd2b..b26e22b70c3 100644

meta/recipes-devtools/python/python3-cryptography-crates.inc +2 -5
@@ -25,12 +25,13 @@ SRC_URI += " \
     crate://crates.io/parking_lot_core/0.9.9 \
     crate://crates.io/pem/3.0.3 \
     crate://crates.io/pkg-config/0.3.29 \
+    crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.78 \
-    crate://crates.io/pyo3/0.20.2 \
-    crate://crates.io/pyo3-build-config/0.20.2 \
-    crate://crates.io/pyo3-ffi/0.20.2 \
-    crate://crates.io/pyo3-macros/0.20.2 \
-    crate://crates.io/pyo3-macros-backend/0.20.2 \
+    crate://crates.io/pyo3/0.20.3 \
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] =

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +4 -0
+    crate://crates.io/pyo3-build-config/0.20.3 \
+    crate://crates.io/pyo3-ffi/0.20.3 \
+    crate://crates.io/pyo3-macros/0.20.3 \
+    crate://crates.io/pyo3-macros-backend/0.20.3 \
     crate://crates.io/quote/1.0.35 \
     crate://crates.io/redox_syscall/0.4.1 \
     crate://crates.io/scopeguard/1.2.0 \
@@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] =

"3742b2c103b9f06bc9fff0a37ff4912935851be

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 75

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[parking_lot_core-0.9.9.sha256sum] =

"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 76

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[pem-3.0.3.sha256sum] =

"1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 77

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[pkg-config-0.3.29.sha256sum] =

"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 78

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[portable-atomic-1.6.0.sha256sum] =

"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 79

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[proc-macro2-1.0.78.sha256sum] =

"e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 78

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-0.20.2.sha256sum] =

"9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 79

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-build-config-0.20.2.sha256sum] =

"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 80

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-ffi-0.20.2.sha256sum] =

"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 81

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-macros-0.20.2.sha256sum] =

"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 82

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -1
-SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] =

"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 80

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-0.20.3.sha256sum] =

"53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 81

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] =

"deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 82

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] =

"62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 83

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-macros-0.20.3.sha256sum] =

"7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 84

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] =

"7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 85

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[quote-1.0.35.sha256sum] =

"291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 86

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[redox_syscall-0.4.1.sha256sum] =

"4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc SRC_URI[parking_lot-0.12.1.sha256sum] = · line 87

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +0 -0
 SRC_URI[scopeguard-1.2.0.sha256sum] =

"94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"

Quoted 1 line
Quoted 1 line

diff --git

a/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 00000000000..33dd7ae5d5a
--- /dev/null
+++

b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch

Quoted 9 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 8

Quoted 9 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
@@ -0,0 +1,105 @@
+From f6ec5ab18b5beacb08b0157c5193ea626b44b4e1 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 27 Feb 2024 09:30:15 -0800
+Subject: [PATCH] Bump pyo3 from 0.20.2 to 0.20.3 in /src/rust (#10462)
+
+It fixes build on hosts without 64bit atomics
+
+Upstream-Status: Backport [

https://github.com/pyca/cryptography/commit/3598d2ee4b5060dbbe6938b893410ed35074567c
]

Quoted 5 lines
Quoted 5 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +5 -0
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/rust/Cargo.lock | 28 ++++++++++++++++++----------
+ 1 file changed, 18 insertions(+), 10 deletions(-)
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 21

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
+
+diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock
+index b2e0ac4..030e38d 100644
+--- a/src/rust/Cargo.lock
++++ b/src/rust/Cargo.lock
+@@ -263,6 +263,12 @@ version = "0.3.29"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum =

"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"

Quoted 6 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 27

Quoted 6 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +6 -0
+
++[[package]]
++name = "portable-atomic"
++version = "1.6.0"
++source = "registry+https://github.com/rust-lang/crates.io-index"
++checksum =

"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"

Quoted 4 lines
Quoted 4 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +4 -0
++
+ [[package]]
+ name = "proc-macro2"
+ version = "1.0.78"
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 39

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
+@@ -274,15 +280,16 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 40

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"

Quoted 10 lines
Quoted 10 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+ dependencies = [
+  "cfg-if",
+  "indoc",
+  "libc",
+  "memoffset",
+  "parking_lot",
++ "portable-atomic",
+  "pyo3-build-config",
+  "pyo3-ffi",
+  "pyo3-macros",
Quoted 8 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 58

Quoted 8 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +8 -0
+@@ -291,9 +298,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-build-config"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 59

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"

Quoted 11 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 70

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +11 -0
+ dependencies = [
+  "once_cell",
+  "target-lexicon",
+@@ -301,9 +308,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-ffi"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 71

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"

Quoted 11 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 82

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +11 -0
+ dependencies = [
+  "libc",
+  "pyo3-build-config",
+@@ -311,9 +318,9 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 83

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"

Quoted 11 lines

meta/recipes-devtools/python/python3-cryptography-crates.inc line 94

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +11 -0
+ dependencies = [
+  "proc-macro2",
+  "pyo3-macros-backend",
+@@ -323,12 +330,13 @@ dependencies = [
+
+ [[package]]
+ name = "pyo3-macros-backend"
+-version = "0.20.2"
++version = "0.20.3"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum =

"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography-crates.inc line 95

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography-crates.inc +1 -0
++checksum =

"7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"

Quoted 11 lines

Review

Quoted 11 lines
meta/recipes-devtools/python/python3-cryptography-crates.inc +10 -0
+ dependencies = [
+  "heck",
+  "proc-macro2",
++ "pyo3-build-config",
+  "quote",
+  "syn",
+ ]
+--
+2.44.0
+
(quoted diff) +0 -0

python3-cryptography_42.0.2.bb b/meta/recipes-devtools/python/ python3-cryptography_42.0.2.bb

Quoted 5 lines

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb LDSHARED += "-pthread" · line 11

Quoted 5 lines

index c21c4d1a03b..da10e2e60c1 100644

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -0
@@ -11,6 +11,7 @@ LDSHARED += "-pthread"
 SRC_URI[sha256sum] =

"e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"

Quoted 2 lines

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb LDSHARED += "-pthread" · line 12

Quoted 2 lines
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -0
 SRC_URI +=

"file://0001-pyproject.toml-remove-benchmark-disable-option.patch \

Quoted 1 line

meta/recipes-devtools/python/python3-cryptography_42.0.2.bb LDSHARED += "-pthread" · line 13

Quoted 1 line
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +1 -0
+

file://0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch \

Quoted 10 lines
Quoted 10 lines
meta/recipes-devtools/python/python3-cryptography_42.0.2.bb +0 -1
             file://check-memfree.py \
             file://run-ptest \
            "
--

2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#196287):

https://lists.openembedded.org/g/openembedded-core/message/196287

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/104607684/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-