summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch')
-rw-r--r--meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch b/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch
new file mode 100644
index 0000000000..43f8a78ef0
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-calver/0001-setup.py-hard-code-version.patch
@@ -0,0 +1,32 @@
1From 390a233ed969f82b2ef209b23bfb523e785603f9 Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <tgamblin@baylibre.com>
3Date: Tue, 9 May 2023 10:19:41 -0400
4Subject: [PATCH] setup.py: hard-code version
5
6setup.py is pulling the build version from the current date rather than
7a release tag or other predictable method, causing reproducibility
8issues in builds. Patch this to make reproducible builds work while
9discussing this with upstream maintainer (or developing a patch that can
10make calver rely on a more standard pyproject.toml solution).
11
12Upstream-Status: Inappropriate (configuration)
13
14Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
15---
16 setup.py | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/setup.py b/setup.py
20index 73f6b10..2e27cf1 100644
21--- a/setup.py
22+++ b/setup.py
23@@ -42,5 +42,5 @@ setup(
24 "use_calver = calver.integration:version",
25 ],
26 },
27- version=calver_version(True),
28+ version=calver_version("2022.6.26"),
29 )
30--
312.40.0
32