From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 02/28] tools/hotplug: fix race during xen.conf creation Date: Tue, 30 Sep 2014 16:46:20 +0100 Message-ID: <1412091980.31276.4.camel@citrix.com> References: <1411658423-18877-1-git-send-email-olaf@aepfle.de> <1411658423-18877-3-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411658423-18877-3-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Ian Jackson , Stefano Stabellini , Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-09-25 at 17:19 +0200, Olaf Hering wrote: > A make -j8 will call the xen.conf rule twice. The move-if-changed > macro may fail of the tmp file was already removed by the other make > process. Fix this by let the all target depend on install. > Also remove the generated file with make clean. > > Signed-off-by: Olaf Hering > Cc: Ian Jackson > Cc: Stefano Stabellini Acked-by: Ian Campbell > Cc: Wei Liu > --- > tools/hotplug/Linux/systemd/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/hotplug/Linux/systemd/Makefile b/tools/hotplug/Linux/systemd/Makefile > index dc98b67..90ba16e 100644 > --- a/tools/hotplug/Linux/systemd/Makefile > +++ b/tools/hotplug/Linux/systemd/Makefile > @@ -21,10 +21,11 @@ ALL_XEN_SYSTEMD = $(XEN_SYSTEMD_MODULES) \ > $(XEN_SYSTEMD_SERVICE) > > .PHONY: all > -all: $(ALL_XEN_SYSTEMD) > +all: install > > .PHONY: clean > clean: > + rm -f $(ALL_XEN_SYSTEMD) > > .PHONY: install > install: $(ALL_XEN_SYSTEMD) > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel