Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 1 | From 4f52aaf2a548b3356c6f1369c62b11335dc27464 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 3 | Date: Tue, 13 Jul 2021 23:19:29 +0100 |
| 4 | Subject: [PATCH] python3: Fix make race |
| 5 | |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 6 | libainstall installs python-config.py but the .pyc cache files are generated |
| 7 | by the libinstall target. This means some builds may not generate the pyc files |
| 8 | for python-config.py depending on the order things happen in. This means builds |
| 9 | are not always reproducible. |
| 10 | |
| 11 | Add a dependency to avoid the race. |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 15 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 16 | --- |
| 17 | Makefile.pre.in | 2 +- |
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/Makefile.pre.in b/Makefile.pre.in |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 21 | index 7558f0c..8cec819 100644 |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 22 | --- a/Makefile.pre.in |
| 23 | +++ b/Makefile.pre.in |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 24 | @@ -2005,7 +2005,7 @@ TESTSUBDIRS= ctypes/test \ |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 25 | unittest/test unittest/test/testmock |
| 26 | |
| 27 | TEST_MODULES=@TEST_MODULES@ |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 28 | -libinstall: all $(srcdir)/Modules/xxmodule.c |
| 29 | +libinstall: all $(srcdir)/Modules/xxmodule.c libainstall |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 30 | @for i in $(SCRIPTDIR) $(LIBDEST); \ |
| 31 | do \ |
| 32 | if test ! -d $(DESTDIR)$$i; then \ |