Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | From 840fda32c82550259d02a7a56a78a9c05162b1a1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Wed, 8 May 2019 16:10:29 +0800 |
| 4 | Subject: [PATCH] Makefile: fix Issue36464 (parallel build race problem) |
| 5 | |
| 6 | When using make -j with the 'install' target, it's possible for altbininstall |
| 7 | (which normally creates BINDIR) and libainstall (which doesn't, though it |
| 8 | installs python-config there) to race, resulting in a failure due to |
| 9 | attempting to install python-config into a nonexistent BINDIR. Ensure it also |
| 10 | exists in the libainstall target. |
| 11 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 12 | Upstream-Status: Backport [https://github.com/python/cpython/commit/a25c46bd7dd47a2f95b32d17ee2f66de214892c6] |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 13 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 14 | --- |
| 15 | Makefile.pre.in | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/Makefile.pre.in b/Makefile.pre.in |
| 19 | index 15f3687..7e9f173 100644 |
| 20 | --- a/Makefile.pre.in |
| 21 | +++ b/Makefile.pre.in |
| 22 | @@ -1456,7 +1456,7 @@ LIBPL= @LIBPL@ |
| 23 | LIBPC= $(LIBDIR)/pkgconfig |
| 24 | |
| 25 | libainstall: @DEF_MAKE_RULE@ python-config |
| 26 | - @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \ |
| 27 | + @for i in $(LIBDIR) $(LIBPL) $(LIBPC) $(BINDIR); \ |
| 28 | do \ |
| 29 | if test ! -d $(DESTDIR)$$i; then \ |
| 30 | echo "Creating directory $$i"; \ |
| 31 | -- |
| 32 | 2.7.4 |
| 33 | |