blob: 925b064ebd53bfb7af4ea1a5367d9cceca586e6e [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From a6ddabc8cadb76bfe2d2e374a6702442cfe51cce Mon Sep 17 00:00:00 2001
Brad Bishop316dfdd2018-06-25 12:45:53 -04002From: Ross Burton <ross.burton@intel.com>
3Date: Fri, 9 Oct 2015 17:50:41 +0100
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] icu: fix install race
Brad Bishop316dfdd2018-06-25 12:45:53 -04005
Patrick Williamsf1e5d692016-03-30 15:21:19 -05006The generic recursive target calls target-local so also adding it to the
7dependency list results in races due to install-local being executed twice in
8parallel. For example, install-manx can fail if the two install processes race
9and one process tries to chown a file that the other process has just deleted.
10
11Also install-manx should be a phony target, and for clarity use $^ instead of $?
12in the install command.
13
14Upstream-Status: Pending
15Signed-off-by: Ross Burton <ross.burton@intel.com>
16
Brad Bishop316dfdd2018-06-25 12:45:53 -040017---
18 source/Makefile.in | 8 ++++----
19 1 file changed, 4 insertions(+), 4 deletions(-)
Patrick Williamsf1e5d692016-03-30 15:21:19 -050020
Brad Bishop19323692019-04-05 15:28:33 -040021diff --git a/Makefile.in b/Makefile.in
22index be9435b..ada20d7 100644
Patrick Williamsf1e5d692016-03-30 15:21:19 -050023--- a/Makefile.in
24+++ b/Makefile.in
Brad Bishop19323692019-04-05 15:28:33 -040025@@ -77,7 +77,7 @@ EXTRA_DATA =
Patrick Williamsf1e5d692016-03-30 15:21:19 -050026
27 ## List of phony targets
28 .PHONY : all all-local all-recursive install install-local install-udata install-udata-files install-udata-dlls \
29-install-recursive clean clean-local clean-recursive distclean \
30+install-recursive install-manx clean clean-local clean-recursive distclean \
31 distclean-local distclean-recursive doc dist dist-local dist-recursive \
32 check check-local check-recursive clean-recursive-with-twist install-icu \
33 doc install-doc tests icu4j-data icu4j-data-install update-windows-makefiles xcheck-local xcheck-recursive xperf xcheck xperf-recursive \
Brad Bishop19323692019-04-05 15:28:33 -040034@@ -88,9 +88,9 @@ check-exhaustive check-exhaustive-local check-exhaustive-recursive releaseDist
Patrick Williamsf1e5d692016-03-30 15:21:19 -050035
36 ## List of standard targets
37 all: all-local all-recursive
38-install: install-recursive install-local
39+install: install-recursive
40 clean: clean-recursive-with-twist clean-local
41-distclean : distclean-recursive distclean-local
Patrick Williamsf1e5d692016-03-30 15:21:19 -050042+distclean : distclean-recursive
Brad Bishop316dfdd2018-06-25 12:45:53 -040043 dist: dist-recursive
Patrick Williamsf1e5d692016-03-30 15:21:19 -050044 check: all check-recursive
45 check-recursive: all
Brad Bishop19323692019-04-05 15:28:33 -040046@@ -357,7 +357,7 @@ config.status: $(srcdir)/configure $(srcdir)/common/unicode/uvernum.h
Patrick Williamsf1e5d692016-03-30 15:21:19 -050047 install-manx: $(MANX_FILES)
48 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
Brad Bishop19323692019-04-05 15:28:33 -040049 ifneq ($(MANX_FILES),)
Patrick Williamsf1e5d692016-03-30 15:21:19 -050050- $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
51+ $(INSTALL_DATA) $^ $(DESTDIR)$(mandir)/man$(SECTION)
Brad Bishop19323692019-04-05 15:28:33 -040052 endif
Patrick Williamsf1e5d692016-03-30 15:21:19 -050053
54 config/%.$(SECTION): $(srcdir)/config/%.$(SECTION).in