Skip to content

Commit a7dc90d

Browse files
committed
When performing a parallel build (make -j N) with ./configure
--enable-depend it often tries to create the .deps directory twice and bails out when it already exists due to a race condition of if doesn't exist, then create. This patch prevents mkdir from returning an error. Kris Jurka
1 parent 79b9564 commit a7dc90d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.220 2005/09/27 17:39:32 tgl Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.221 2006/02/12 07:29:36 momjian Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -536,7 +536,7 @@ df = $(DEPDIR)/$(*F)
536536
# This converts a .d file in the current directory to a .P file in the .deps
537537
# subdirectory, with the dummy targets as explained above.
538538
define postprocess-depend
539-
@if test ! -d $(DEPDIR); then mkdir $(DEPDIR); fi
539+
@if test ! -d $(DEPDIR); then mkdir -p $(DEPDIR); fi
540540
@cp $*.d $(df).P
541541
@sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
542542
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $(df).P

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy