summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-maturin
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-12-23 17:10:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-24 13:49:28 +0000
commit62605b1259783906178d291dadacc8fb7f3f8c0b (patch)
tree598e7742940eed678f8805ece277b102e0e66292 /meta/recipes-devtools/python/python3-maturin
parent6db1cd6a2376477947c3f8822052b1b07d42ea2e (diff)
downloadpoky-62605b1259783906178d291dadacc8fb7f3f8c0b.tar.gz
python3-maturin: upgrade 1.7.4 -> 1.7.8
0001-build_context-improve-wheel-reproducibility-by-sorti.patch removed since it's included in 1.7.8 Changelog: ========== - Fix aarch64 Windows cross compilation - [pre-commit.ci] pre-commit autoupdate - Fix aarch64 Windows cross compilation - fix abi3 interpreter discovery on Windows - fix: remove extra indent in generated CI - Upgrade cargo-xwin to unify rustls versions - Normalize python source directory path - Enable fat LTO for maturin release workflow - Use different binding dirs for different uniffi modules - Update minimal Python minor version for pyo3 0.23 - Limit minimal PyPy version based on bindings crate version - Remove hard coded pip show in fix_direct_url - Do not use xwin to compile on Windows when MSVC compiler can build for the target - fix abi3 interpreter discovery on Windows - allow -i 3.13t - propagate abiflags to wheel name on Windows - Add free-threaded wheel build to generate-ci by default - Bump metadata version to 2.4 to fix license bug - allow -i 3.13t - propagate abiflags to wheel name on Windows - Add free-threaded wheel build to generate-ci by default - Auto detect Python 3.13 - feat: add skip attestation option to maturin ci github - generate-ci: use macos-13 runner for x86_64 build job - Improve wheel reproducibility by sorting libs - Fix inverted workspace inclusions - Fix broken links to PyO3 building docs - Update goblin to 0.9 - Don't resolve python interpreter when building sdist only - include timestamps in the suggested log format - Add support for GNU/Hurd - Fix __init__ exports when using multiple UniFFI bindings - Add free-threaded Python support (From OE-Core rev: f4accbf8704f690c5a50b05af815d61b75e8a2ce) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-maturin')
-rw-r--r--meta/recipes-devtools/python/python3-maturin/0001-build_context-improve-wheel-reproducibility-by-sorti.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/meta/recipes-devtools/python/python3-maturin/0001-build_context-improve-wheel-reproducibility-by-sorti.patch b/meta/recipes-devtools/python/python3-maturin/0001-build_context-improve-wheel-reproducibility-by-sorti.patch
deleted file mode 100644
index bcbe7b87ea..0000000000
--- a/meta/recipes-devtools/python/python3-maturin/0001-build_context-improve-wheel-reproducibility-by-sorti.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 672dca922397016720eae2a3f0fb79613971c56e Mon Sep 17 00:00:00 2001
2From: Yoann Congal <yoann.congal@smile.fr>
3Date: Thu, 17 Oct 2024 22:17:20 +0200
4Subject: [PATCH] build_context: improve wheel reproducibility by sorting libs
5 (#2261)
6
7OE-core note: Upstream does not have a commit message for this. Bellow
8is the message I've sent:
9> While tracking a reproducibility issue from maturin's output, we found
10> that the .so file in the output .whl were not ordered the same
11> every time.
12>
13> Order of the external libraries in the .whl comes down to the order
14> `soname_map` is iterated. But, `std::HashMap` does not provide a stable
15> order and that create an unstable order in the wheel.
16>
17> Switch to `std::BTreeMap` which keeps keys sorted and is iterable
18> in a stable order.
19>
20> This can be tested by building current python3-cryptography :
21> SOURCE_DATE_EPOCH=1728915855 maturin build
22>
23> Before this commit, the above give two possible outputs (~50% each), the
24> difference is in the order of libssl and libcrypto.
25>
26> After this commit, the output is reproducible.
27
28Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
29Upstream-Status: Backport [https://github.com/PyO3/maturin/commit/61d54809776e1ca79ff8cc92387d70796d50c16e]
30---
31 src/build_context.rs | 4 ++--
32 1 file changed, 2 insertions(+), 2 deletions(-)
33
34diff --git a/src/build_context.rs b/src/build_context.rs
35index a98d233..09ca090 100644
36--- a/src/build_context.rs
37+++ b/src/build_context.rs
38@@ -24,7 +24,7 @@ use normpath::PathExt;
39 use pep508_rs::Requirement;
40 use platform_info::*;
41 use sha2::{Digest, Sha256};
42-use std::collections::{HashMap, HashSet};
43+use std::collections::{BTreeMap, HashSet};
44 use std::env;
45 use std::fmt::{Display, Formatter};
46 use std::io;
47@@ -396,7 +396,7 @@ impl BuildContext {
48 writer.add_directory(&libs_dir)?;
49
50 let temp_dir = tempfile::tempdir()?;
51- let mut soname_map = HashMap::new();
52+ let mut soname_map = BTreeMap::new();
53 let mut libs_copied = HashSet::new();
54 for lib in ext_libs.iter().flatten() {
55 let lib_path = lib.realpath.clone().with_context(|| {