blob: c1b20703e68231e9ea194be8fd0b48560b1ac0ff [file] [log] [blame]
Patrick Williams39653562024-03-01 08:54:02 -06001From 9f827c29adbe656af3c8fc963fdd8f47aec0c442 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>
Andrew Geisslereff27472021-10-29 15:35:00 -050015---
16 Makefile.pre.in | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/Makefile.pre.in b/Makefile.pre.in
Patrick Williams39653562024-03-01 08:54:02 -060020index 381feb0..77bf09a 100644
Andrew Geisslereff27472021-10-29 15:35:00 -050021--- a/Makefile.pre.in
22+++ b/Makefile.pre.in
Patrick Williams39653562024-03-01 08:54:02 -060023@@ -2250,7 +2250,7 @@ COMPILEALL_OPTS=-j0
Andrew Geisslereff27472021-10-29 15:35:00 -050024 TEST_MODULES=@TEST_MODULES@
Patrick Williams56b44a92024-01-19 08:49:29 -060025
26 .PHONY: libinstall
Patrick Williams2390b1b2022-11-03 13:47:49 -050027-libinstall: all $(srcdir)/Modules/xxmodule.c
28+libinstall: all $(srcdir)/Modules/xxmodule.c libainstall
Andrew Geissler5f350902021-07-23 13:09:54 -040029 @for i in $(SCRIPTDIR) $(LIBDEST); \
30 do \
31 if test ! -d $(DESTDIR)$$i; then \