blob: abab41e95771ccd8188fbf530c061b7d84ccc007 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001When using make -j with the 'install' target, it's possible for altbininstall
2(which normally creates BINDIR) and libainstall (which doesn't, though it
3installs python-config there) to race, resulting in a failure due to
4attempting to install python-config into a nonexistent BINDIR. Ensure it also
5exists in the libainstall target.
6
7Upstream-Status: Pending
8
9--- Python-2.7.3.orig/Makefile.pre.in
10+++ Python-2.7.3/Makefile.pre.in
Brad Bishop316dfdd2018-06-25 12:45:53 -040011@@ -1187,7 +1187,7 @@
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 LIBPC= $(LIBDIR)/pkgconfig
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
14 libainstall: @DEF_MAKE_RULE@ python-config
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015- @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \
16+ @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC) $(BINDIR); \
Brad Bishop316dfdd2018-06-25 12:45:53 -040017 do \
18 if test ! -d $(DESTDIR)$$i; then \
19 echo "Creating directory $$i"; \