summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/makerace.patch
blob: 96744cb5570ba9556dd8823efdc720e32efd528c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
libainstall installs python-config.py but the .pyc cache files are generated
by the libinstall target. This means some builds may not generate the pyc files
for python-config.py depending on the order things happen in. This means builds
are not always reproducible.

Add a dependency to avoid the race.

Upstream-Status: Pending
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Index: Python-3.9.6/Makefile.pre.in
===================================================================
--- Python-3.9.6.orig/Makefile.pre.in
+++ Python-3.9.6/Makefile.pre.in
@@ -1486,7 +1486,7 @@ LIBSUBDIRS=	tkinter tkinter/test tkinter
 		venv venv/scripts venv/scripts/common venv/scripts/posix \
 		curses pydoc_data \
 		zoneinfo
-libinstall:	build_all $(srcdir)/Modules/xxmodule.c
+libinstall:	build_all $(srcdir)/Modules/xxmodule.c libainstall
 	@for i in $(SCRIPTDIR) $(LIBDEST); \
 	do \
 		if test ! -d $(DESTDIR)$$i; then \