summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-28 08:39:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-01 14:03:49 +0100
commitfaf001f022b02fcf28c18f84873d8018ceb979ea (patch)
treec4a65336c87379762fbc750a7dd185c0d2dabafa /meta
parent725b711ba3d797524e68306d893932a90b9171d5 (diff)
downloadpoky-faf001f022b02fcf28c18f84873d8018ceb979ea.tar.gz
python3-setuptools: upgrade 56.2.0 -> 57.0.0
Add a patch to fix a reproducibility issue in the new version. (From OE-Core rev: ea6fffe4f07cfd105f861ad0d2dc7c7605bf9e64) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/files/0001-conditionally-do-not-fetch-code-by-easy_install.patch2
-rw-r--r--meta/recipes-devtools/python/python3-setuptools/reproducibility.patch40
-rw-r--r--meta/recipes-devtools/python/python3-setuptools_57.0.0.bb (renamed from meta/recipes-devtools/python/python3-setuptools_56.2.0.bb)5
3 files changed, 44 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/files/0001-conditionally-do-not-fetch-code-by-easy_install.patch b/meta/recipes-devtools/python/files/0001-conditionally-do-not-fetch-code-by-easy_install.patch
index 59e278d1ae..1082fe79be 100644
--- a/meta/recipes-devtools/python/files/0001-conditionally-do-not-fetch-code-by-easy_install.patch
+++ b/meta/recipes-devtools/python/files/0001-conditionally-do-not-fetch-code-by-easy_install.patch
@@ -1,4 +1,4 @@
1From d6339e6b3de0f3be5ca50541d82f99d827700f45 Mon Sep 17 00:00:00 2001 1From f6afc18e08a6c428ce8becd114c535a6840f1b9f Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 17 Jul 2018 10:13:38 +0800 3Date: Tue, 17 Jul 2018 10:13:38 +0800
4Subject: [PATCH] conditionally do not fetch code by easy_install 4Subject: [PATCH] conditionally do not fetch code by easy_install
diff --git a/meta/recipes-devtools/python/python3-setuptools/reproducibility.patch b/meta/recipes-devtools/python/python3-setuptools/reproducibility.patch
new file mode 100644
index 0000000000..149d8ad5ce
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-setuptools/reproducibility.patch
@@ -0,0 +1,40 @@
1The License-File lines in PKG-INFO change ordering depending on the order on disk,
2for example for python-packaging, one build shows:
3
4License-File: LICENSE
5License-File: LICENSE.APACHE
6License-File: LICENSE.BSD
7
8and the other shows:
9
10License-File: LICENSE
11License-File: LICENSE.BSD
12License-File: LICENSE.APACHE
13
14This is because glob uses os.listdir() which is unsorted. Sort the result to avoid this.
15
16Upstream-Status: Submitted [https://github.com/pypa/setuptools/issues/2691]
17Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18
19Index: setuptools-57.0.0/setuptools/dist.py
20===================================================================
21--- setuptools-57.0.0.orig/setuptools/dist.py
22+++ setuptools-57.0.0/setuptools/dist.py
23@@ -15,7 +15,7 @@ import distutils.command
24 from distutils.util import strtobool
25 from distutils.debug import DEBUG
26 from distutils.fancy_getopt import translate_longopt
27-from glob import iglob
28+from glob import glob
29 import itertools
30 import textwrap
31 from typing import List, Optional, TYPE_CHECKING
32@@ -603,7 +603,7 @@ class Distribution(_Distribution):
33 return (
34 path
35 for pattern in patterns
36- for path in iglob(pattern)
37+ for path in sorted(glob(pattern))
38 if not path.endswith('~')
39 and os.path.isfile(path)
40 )
diff --git a/meta/recipes-devtools/python/python3-setuptools_56.2.0.bb b/meta/recipes-devtools/python/python3-setuptools_57.0.0.bb
index bb852d0652..a15b51e31c 100644
--- a/meta/recipes-devtools/python/python3-setuptools_56.2.0.bb
+++ b/meta/recipes-devtools/python/python3-setuptools_57.0.0.bb
@@ -8,9 +8,10 @@ inherit pypi setuptools3
8 8
9SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" 9SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
10 10
11SRC_URI += "file://0001-change-shebang-to-python3.patch" 11SRC_URI += "file://0001-change-shebang-to-python3.patch \
12 file://reproducibility.patch"
12 13
13SRC_URI[sha256sum] = "7bb5652625e94e73b9358b7ed8c6431b732e80cf31f4e0972294c64f0e5b849e" 14SRC_URI[sha256sum] = "401cbf33a7bf817d08014d51560fc003b895c4cdc1a5b521ad2969e928a07535"
14 15
15DEPENDS += "${PYTHON_PN}" 16DEPENDS += "${PYTHON_PN}"
16 17