From: Anthony PERARD Subject: [PATCH V2] tools/hotplug: Removing of "all" dependency from "install" rule. Date: Mon, 13 Oct 2014 15:31:36 +0100 Message-ID: <1413210696-10044-1-git-send-email-anthony.perard@citrix.com> References: <20141010153458.GE1742@perard.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141010153458.GE1742@perard.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen Devel Cc: Anthony PERARD , Olaf Hering , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org The "install" rules depends on both "all" and "subdirs-install" and "all" depends on "subdirs-all". This leads the "install" rules to call both "subdirs-all" and "subdirs-install" which create a race with two concurrent `make` within the same directory (systemd) trying to make the same things (xen.conf) and failing. Ultimatly, "install" should only depend on the things it needs to install, and not on "all". Signed-off-by: Anthony PERARD Tested-by: Olaf Hering --- Change in V2: - Add an explanation in the commit message. - Also change the other Makefiles under tools/hotplug --- tools/hotplug/FreeBSD/Makefile | 2 +- tools/hotplug/Linux/Makefile | 2 +- tools/hotplug/NetBSD/Makefile | 2 +- tools/hotplug/common/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/hotplug/FreeBSD/Makefile b/tools/hotplug/FreeBSD/Makefile index 169a124..6aba64a 100644 --- a/tools/hotplug/FreeBSD/Makefile +++ b/tools/hotplug/FreeBSD/Makefile @@ -15,7 +15,7 @@ all: build: .PHONY: install -install: all install-scripts install-rcd +install: install-scripts install-rcd .PHONY: install-scripts install-scripts: diff --git a/tools/hotplug/Linux/Makefile b/tools/hotplug/Linux/Makefile index 8cdaa9a..1706c05 100644 --- a/tools/hotplug/Linux/Makefile +++ b/tools/hotplug/Linux/Makefile @@ -43,7 +43,7 @@ all: subdirs-all build: .PHONY: install -install: all install-initd install-scripts install-udev subdirs-install +install: install-initd install-scripts install-udev subdirs-install # See docs/misc/distro_mapping.txt for INITD_DIR location .PHONY: install-initd diff --git a/tools/hotplug/NetBSD/Makefile b/tools/hotplug/NetBSD/Makefile index 9084859..0a370b8 100644 --- a/tools/hotplug/NetBSD/Makefile +++ b/tools/hotplug/NetBSD/Makefile @@ -17,7 +17,7 @@ all: build: .PHONY: install -install: all install-scripts install-rcd +install: install-scripts install-rcd .PHONY: install-scripts install-scripts: diff --git a/tools/hotplug/common/Makefile b/tools/hotplug/common/Makefile index 657a8e3..5623abb 100644 --- a/tools/hotplug/common/Makefile +++ b/tools/hotplug/common/Makefile @@ -19,7 +19,7 @@ all: build build: $(HOTPLUGPATH) .PHONY: install -install: all install-scripts +install: install-scripts .PHONY: install-scripts install-scripts: build -- Anthony PERARD