blob: 96744cb5570ba9556dd8823efdc720e32efd528c [file] [log] [blame]
Andrew Geissler5f350902021-07-23 13:09:54 -04001libainstall installs python-config.py but the .pyc cache files are generated
2by the libinstall target. This means some builds may not generate the pyc files
3for python-config.py depending on the order things happen in. This means builds
4are not always reproducible.
5
6Add a dependency to avoid the race.
7
8Upstream-Status: Pending
9Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10
11Index: Python-3.9.6/Makefile.pre.in
12===================================================================
13--- Python-3.9.6.orig/Makefile.pre.in
14+++ Python-3.9.6/Makefile.pre.in
15@@ -1486,7 +1486,7 @@ LIBSUBDIRS= tkinter tkinter/test tkinter
16 venv venv/scripts venv/scripts/common venv/scripts/posix \
17 curses pydoc_data \
18 zoneinfo
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 \