diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/makerace.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/makerace.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/makerace.patch b/meta/recipes-devtools/python/python3/makerace.patch new file mode 100644 index 0000000000..8971f28b8e --- /dev/null +++ b/meta/recipes-devtools/python/python3/makerace.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | libainstall installs python-config.py but the .pyc cache files are generated | ||
2 | by the libinstall target. This means some builds may not generate the pyc files | ||
3 | for python-config.py depending on the order things happen in. This means builds | ||
4 | are not always reproducible. | ||
5 | |||
6 | Add a dependency to avoid the race. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
10 | |||
11 | Index: Python-3.8.11/Makefile.pre.in | ||
12 | =================================================================== | ||
13 | --- Python-3.8.11.orig/Makefile.pre.in | ||
14 | +++ Python-3.8.11/Makefile.pre.in | ||
15 | @@ -1415,7 +1415,7 @@ LIBSUBDIRS= tkinter tkinter/test tkinter | ||
16 | unittest unittest/test unittest/test/testmock \ | ||
17 | venv venv/scripts venv/scripts/common venv/scripts/posix \ | ||
18 | curses pydoc_data | ||
19 | -libinstall: build_all $(srcdir)/Modules/xxmodule.c | ||
20 | +libinstall: build_all $(srcdir)/Modules/xxmodule.c libainstall | ||
21 | @for i in $(SCRIPTDIR) $(LIBDEST); \ | ||
22 | do \ | ||
23 | if test ! -d $(DESTDIR)$$i; then \ | ||