All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: fix incremental parallel build
@ 2017-08-30  7:06 Jan Beulich
  2017-09-01 15:28 ` Wei Liu
  0 siblings, 1 reply; 18+ messages in thread
From: Jan Beulich @ 2017-08-30  7:06 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Wei Liu

Short-circuit absolute paths of generated headers to their pathless
equivalents, to avoid two racing invocations of the same rule producing
them.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
This wants to be backported to 4.9 and 4.8.

--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -264,6 +264,13 @@ $(LIBXL_OBJS) $(LIBXL_TEST_OBJS) $(LIBXL
 	$(TEST_PROG_OBJS) $(SAVE_HELPER_OBJS): libxl.h
 $(LIBXL_OBJS) $(LIBXL_TEST_OBJS): libxl_internal.h
 
+# libacpi sources (living in another subdirectory) will have their inclusions
+# of headers from this directory recorded as absolute paths in the .*.o.d
+# files.  In order to not invoke the subsequent rule twice (and perhaps in a
+# racing way when doing a parallel build), short-circuit the absolute paths to
+# the local ones first.
+$(CURDIR)/_libxl_type%.h: _libxl_type%.h ;
+
 _libxl_type%.h _libxl_type%_json.h _libxl_type%_private.h _libxl_type%.c: libxl_type%.idl gentypes.py idl.py
 	$(eval stem = $(notdir $*))
 	$(PYTHON) gentypes.py libxl_type$(stem).idl __libxl_type$(stem).h __libxl_type$(stem)_private.h \




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-09-05 15:53 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30  7:06 [PATCH] libxl: fix incremental parallel build Jan Beulich
2017-09-01 15:28 ` Wei Liu
2017-09-01 15:35   ` Jan Beulich
2017-09-01 17:04     ` Ian Jackson
2017-09-04  8:38       ` Jan Beulich
2017-09-04 10:59         ` Ian Jackson
2017-09-04 11:33         ` Ian Jackson
2017-09-04 12:51           ` Jan Beulich
2017-09-04 13:33             ` Ian Jackson
2017-09-04 14:36               ` Jan Beulich
2017-09-04 14:39                 ` Ian Jackson
2017-09-04 16:46                   ` [PATCH 1/4] DEPS handling: Provide DEPS_RM and DEPS_INCLUDE Ian Jackson
2017-09-04 16:46                     ` [PATCH 2/4] DEPS handling: Use DEPS_RM everywhere Ian Jackson
2017-09-04 16:46                     ` [PATCH 3/4] DEPS handling: Use DEPS_INCLUDE everywhere Ian Jackson
2017-09-04 16:46                     ` [PATCH 4/4] DEPS handling: Remove absolute paths from references to cwd Ian Jackson
2017-09-05 14:44                       ` Jan Beulich
2017-09-05 15:32                         ` Ian Jackson
2017-09-05 15:53                           ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.