summaryrefslogtreecommitdiff
blob: 34bc669655c19275ea7b51274fec379bcc5586dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
From d3f3232eb53a052711029d2fafc36e23da971b35 Mon Sep 17 00:00:00 2001
From: Romain Bouvier <skunnyk@alteroot.org>
Date: Fri, 29 May 2020 11:11:41 +0200
Subject: [PATCH] exo-29: Fix race condition in make install

- Since the exo drop of gtk2, HEADERS are declared twice, which can lead
  to race conditions when using parallel make "make -j4 install"
- Simplify Makefile to only have one HEADERS section
- This fix #29
---
 exo/Makefile.am | 24 ++++--------------------
 1 file changed, 4 insertions(+), 20 deletions(-)

diff --git a/exo/Makefile.am b/exo/Makefile.am
index fc8845d4..358ae9cb 100644
--- a/exo/Makefile.am
+++ b/exo/Makefile.am
@@ -23,30 +23,14 @@ libexo_headers =							\
 	exo-tree-view.h							\
 	exo-utils.h
 
-libexo_built_public_sources =						\
-	exo-enum-types.h
-
-libexo_built_sources =							\
-	$(libexo_built_public_sources)					\
+libexo_2_built_sources =							\
+	exo-enum-types.h \
 	exo-alias.h							\
 	exo-aliasdef.c							\
 	exo-enum-types.c						\
 	exo-marshal.c							\
 	exo-marshal.h
 
-libexoincludedir = $(includedir)/exo-2/exo
-
-libexoinclude_HEADERS =							\
-	$(libexo_built_public_sources)					\
-	$(libexo_headers)						\
-	exo.h								\
-	exo-config.h
-
-
-##
-## GTK+ 3 support library
-##
-
 libexo_2_includedir = $(includedir)/exo-2/exo
 
 lib_LTLIBRARIES = libexo-2.la
@@ -141,10 +125,10 @@ CLEANFILES =								\
 DISTCLEANFILES =							\
 	stamp-exo-enum-types.h						\
 	stamp-exo-marshal.h						\
-	$(libexo_built_sources)
+	$(libexo_2_built_sources)
 
 BUILT_SOURCES =								\
-	$(libexo_built_sources)
+	$(libexo_2_built_sources)
 
 exo-alias.h: make-exo-alias.pl exo.symbols
 	$(AM_V_GEN) $(PERL) $(srcdir)/make-exo-alias.pl < $(srcdir)/exo.symbols > exo-alias.h
-- 
2.26.2

diff --git a/exo/Makefile.in b/exo/Makefile.in
index 56abe35..ee1be62 100644
--- a/exo/Makefile.in
+++ b/exo/Makefile.in
@@ -98,7 +98,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am $(libexo_2_include_HEADERS) \
-	$(libexoinclude_HEADERS) $(am__DIST_COMMON)
+	$(am__DIST_COMMON)
 mkinstalldirs = $(install_sh) -d
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES = exo-2.pc exo-config.h
@@ -131,8 +131,7 @@ am__uninstall_files_from_dir = { \
          $(am__cd) "$$dir" && rm -f $$files; }; \
   }
 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" \
-	"$(DESTDIR)$(libexo_2_includedir)" \
-	"$(DESTDIR)$(libexoincludedir)"
+	"$(DESTDIR)$(libexo_2_includedir)"
 LTLIBRARIES = $(lib_LTLIBRARIES)
 am__DEPENDENCIES_1 =
 libexo_2_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
@@ -224,7 +223,7 @@ am__can_run_installinfo = \
     *) (install-info --version) >/dev/null 2>&1;; \
   esac
 DATA = $(pkgconfig_DATA)
-HEADERS = $(libexo_2_include_HEADERS) $(libexoinclude_HEADERS)
+HEADERS = $(libexo_2_include_HEADERS)
 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
 # Read a list of newline-separated strings from the standard input,
 # and print each of them once, without duplicates.  Input order is
@@ -657,24 +656,14 @@ libexo_headers = \
 	exo-tree-view.h							\
 	exo-utils.h
 
-libexo_built_public_sources = \
-	exo-enum-types.h
-
-libexo_built_sources = \
-	$(libexo_built_public_sources)					\
+libexo_2_built_sources = \
+	exo-enum-types.h \
 	exo-alias.h							\
 	exo-aliasdef.c							\
 	exo-enum-types.c						\
 	exo-marshal.c							\
 	exo-marshal.h
 
-libexoincludedir = $(includedir)/exo-2/exo
-libexoinclude_HEADERS = \
-	$(libexo_built_public_sources)					\
-	$(libexo_headers)						\
-	exo.h								\
-	exo-config.h
-
 libexo_2_includedir = $(includedir)/exo-2/exo
 lib_LTLIBRARIES = libexo-2.la
 libexo_2_include_HEADERS = \
@@ -756,10 +745,10 @@ pkgconfig_DATA = exo-2.pc
 @MAINTAINER_MODE_TRUE@DISTCLEANFILES = \
 @MAINTAINER_MODE_TRUE@	stamp-exo-enum-types.h						\
 @MAINTAINER_MODE_TRUE@	stamp-exo-marshal.h						\
-@MAINTAINER_MODE_TRUE@	$(libexo_built_sources)
+@MAINTAINER_MODE_TRUE@	$(libexo_2_built_sources)
 
 @MAINTAINER_MODE_TRUE@BUILT_SOURCES = \
-@MAINTAINER_MODE_TRUE@	$(libexo_built_sources)
+@MAINTAINER_MODE_TRUE@	$(libexo_2_built_sources)
 
 EXTRA_DIST = \
 	abicheck.sh							\
@@ -1091,27 +1080,6 @@ uninstall-libexo_2_includeHEADERS:
 	@list='$(libexo_2_include_HEADERS)'; test -n "$(libexo_2_includedir)" || list=; \
 	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
 	dir='$(DESTDIR)$(libexo_2_includedir)'; $(am__uninstall_files_from_dir)
-install-libexoincludeHEADERS: $(libexoinclude_HEADERS)
-	@$(NORMAL_INSTALL)
-	@list='$(libexoinclude_HEADERS)'; test -n "$(libexoincludedir)" || list=; \
-	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(libexoincludedir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(libexoincludedir)" || exit 1; \
-	fi; \
-	for p in $$list; do \
-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-	  echo "$$d$$p"; \
-	done | $(am__base_list) | \
-	while read files; do \
-	  echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libexoincludedir)'"; \
-	  $(INSTALL_HEADER) $$files "$(DESTDIR)$(libexoincludedir)" || exit $$?; \
-	done
-
-uninstall-libexoincludeHEADERS:
-	@$(NORMAL_UNINSTALL)
-	@list='$(libexoinclude_HEADERS)'; test -n "$(libexoincludedir)" || list=; \
-	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
-	dir='$(DESTDIR)$(libexoincludedir)'; $(am__uninstall_files_from_dir)
 
 ID: $(am__tagged_files)
 	$(am__define_uniq_tagged_files); mkid -fID $$unique
@@ -1370,7 +1338,7 @@ check: $(BUILT_SOURCES)
 	$(MAKE) $(AM_MAKEFLAGS) check-am
 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
 installdirs:
-	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(libexo_2_includedir)" "$(DESTDIR)$(libexoincludedir)"; do \
+	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(libexo_2_includedir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
 install: $(BUILT_SOURCES)
@@ -1452,8 +1420,7 @@ info: info-am
 
 info-am:
 
-install-data-am: install-libexo_2_includeHEADERS \
-	install-libexoincludeHEADERS install-pkgconfigDATA
+install-data-am: install-libexo_2_includeHEADERS install-pkgconfigDATA
 
 install-dvi: install-dvi-am
 
@@ -1519,8 +1486,7 @@ ps: ps-am
 ps-am:
 
 uninstall-am: uninstall-libLTLIBRARIES \
-	uninstall-libexo_2_includeHEADERS \
-	uninstall-libexoincludeHEADERS uninstall-pkgconfigDATA
+	uninstall-libexo_2_includeHEADERS uninstall-pkgconfigDATA
 
 .MAKE: all check check-am install install-am install-strip
 
@@ -1533,15 +1499,14 @@ uninstall-am: uninstall-libLTLIBRARIES \
 	install-dvi-am install-exec install-exec-am install-html \
 	install-html-am install-info install-info-am \
 	install-libLTLIBRARIES install-libexo_2_includeHEADERS \
-	install-libexoincludeHEADERS install-man install-pdf \
-	install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
-	pdf pdf-am ps ps-am recheck tags tags-am uninstall \
-	uninstall-am uninstall-libLTLIBRARIES \
-	uninstall-libexo_2_includeHEADERS \
-	uninstall-libexoincludeHEADERS uninstall-pkgconfigDATA
+	install-man install-pdf install-pdf-am install-pkgconfigDATA \
+	install-ps install-ps-am install-strip installcheck \
+	installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	recheck tags tags-am uninstall uninstall-am \
+	uninstall-libLTLIBRARIES uninstall-libexo_2_includeHEADERS \
+	uninstall-pkgconfigDATA
 
 .PRECIOUS: Makefile