blob: 2c06784ffcfcff86d341e37caed13263d73a1f46 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 7cc02dfa593d1350a689d64a7a6f2dc6478afe24 Mon Sep 17 00:00:00 2001
Andrew Geisslereff27472021-10-29 15:35:00 -05002From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Tue, 13 Jul 2021 23:19:29 +0100
4Subject: [PATCH] python3: Fix make race
5
Andrew Geissler5f350902021-07-23 13:09:54 -04006libainstall installs python-config.py but the .pyc cache files are generated
7by the libinstall target. This means some builds may not generate the pyc files
8for python-config.py depending on the order things happen in. This means builds
9are not always reproducible.
10
11Add a dependency to avoid the race.
12
13Upstream-Status: Pending
14Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15
Andrew Geisslereff27472021-10-29 15:35:00 -050016---
17 Makefile.pre.in | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/Makefile.pre.in b/Makefile.pre.in
Andrew Geissler595f6302022-01-24 19:11:47 +000021index 5e13ba2..026bffd 100644
Andrew Geisslereff27472021-10-29 15:35:00 -050022--- a/Makefile.pre.in
23+++ b/Makefile.pre.in
Andrew Geissler595f6302022-01-24 19:11:47 +000024@@ -1527,7 +1527,7 @@ TESTSUBDIRS= ctypes/test \
Andrew Geisslereff27472021-10-29 15:35:00 -050025 unittest/test unittest/test/testmock
26
27 TEST_MODULES=@TEST_MODULES@
Andrew Geissler5f350902021-07-23 13:09:54 -040028-libinstall: build_all $(srcdir)/Modules/xxmodule.c
29+libinstall: build_all $(srcdir)/Modules/xxmodule.c libainstall
30 @for i in $(SCRIPTDIR) $(LIBDEST); \
31 do \
32 if test ! -d $(DESTDIR)$$i; then \