diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch | 39 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch b/meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch new file mode 100644 index 0000000000..3e7480b485 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From eccc9ea5eef13ee353de610af36fb7759b70e2e4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Colin Watson <cjwatson@debian.org> | ||
3 | Date: Mon, 26 Aug 2024 18:14:33 +0100 | ||
4 | Subject: [PATCH] Build bindings reproducibly | ||
5 | |||
6 | `glob` output isn't guaranteed to be in any particular order, so | ||
7 | `_sodium.*.so` wasn't always reproducible. | ||
8 | |||
9 | Upstream-Status: Backport [https://github.com/pyca/pynacl/pull/836] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | src/bindings/build.py | 12 ++++++++---- | ||
13 | 1 file changed, 8 insertions(+), 4 deletions(-) | ||
14 | |||
15 | diff --git a/src/bindings/build.py b/src/bindings/build.py | ||
16 | index 9634237..777237b 100644 | ||
17 | --- a/src/bindings/build.py | ||
18 | +++ b/src/bindings/build.py | ||
19 | @@ -22,12 +22,16 @@ from cffi import FFI | ||
20 | __all__ = ["ffi"] | ||
21 | |||
22 | |||
23 | -HEADERS = glob.glob( | ||
24 | - os.path.join(os.path.abspath(os.path.dirname(__file__)), "*.h") | ||
25 | +HEADERS = sorted( | ||
26 | + glob.glob(os.path.join(os.path.abspath(os.path.dirname(__file__)), "*.h")) | ||
27 | ) | ||
28 | |||
29 | -MINIMAL_HEADERS = glob.glob( | ||
30 | - os.path.join(os.path.abspath(os.path.dirname(__file__)), "minimal", "*.h") | ||
31 | +MINIMAL_HEADERS = sorted( | ||
32 | + glob.glob( | ||
33 | + os.path.join( | ||
34 | + os.path.abspath(os.path.dirname(__file__)), "minimal", "*.h" | ||
35 | + ) | ||
36 | + ) | ||
37 | ) | ||
38 | |||
39 | |||
diff --git a/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb b/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb index 77ca2e1ff4..393066de9d 100644 --- a/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb | |||
@@ -4,6 +4,7 @@ HOMEPAGE = "https://github.com/pyca/pynacl" | |||
4 | LICENSE = "Apache-2.0" | 4 | LICENSE = "Apache-2.0" |
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8cc789b082b3d97e1ccc5261f8594d3f" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8cc789b082b3d97e1ccc5261f8594d3f" |
6 | 6 | ||
7 | SRC_URI += "file://0001-Build-bindings-reproducibly.patch" | ||
7 | SRC_URI[sha256sum] = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba" | 8 | SRC_URI[sha256sum] = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba" |
8 | 9 | ||
9 | PYPI_PACKAGE = "PyNaCl" | 10 | PYPI_PACKAGE = "PyNaCl" |