WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] hoplugpath.sh: fix Makefile dependency.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] hoplugpath.sh: fix Makefile dependency.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 23 Jul 2009 12:00:22 +0900
Cc: Christoph.Egger@xxxxxxx
Delivery-date: Wed, 22 Jul 2009 20:00:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
hoplugpath.sh: fix Makefile dependency.

In tools/hotplug/common/Makefile, install-scripts depends on genpath.
So add its dependency. Otherwise parallel build sometimes fails as follows.

genpath and install-scripts command are being run simultaneously.
So When install-scripts tries to install it, it can be under creation.

make -C common install
make[5]: Entering directory `/xen-unstable.hg/tools/hotplug/common'
rm -f "hotplugpath.sh"; echo "SBINDIR=\"/usr/sbin\"" >> "hotplugpath.sh"; echo 
"BINDIR=\"/usr/bin\"" >> "hotplugpath.sh"; echo "LIBEXEC=\"/usr/lib/xen/bin\"" 
>> "hotplugpath.sh"; echo "LIBDIR=\"/usr/lib\"" >> "hotplugpath.sh"; echo 
"SHAREDIR=\"/usr/share\"" >> "hotplugpath.sh"; echo 
"PRIVATE_BINDIR=\"/usr/lib/xen/bin\"" >> "hotplugpath.sh"; echo 
"XENFIRMWAREDIR=\"/usr/lib/xen/boot\"" >> "hotplugpath.sh"; echo 
"XEN_CONFIG_DIR=\"/etc/xen\"" >> "hotplugpath.sh"; echo 
"XEN_SCRIPT_DIR=\"/etc/xen/scripts\"" >> "hotplugpath.sh"
[ -d /xen-unstable.hg/dist/install/etc/xen/scripts ] || \
                ../../../tools/cross-install -d -m0755 -p 
/xen-unstable.hg/dist/install/etc/xen/scripts
set -e; for i in "hotplugpath.sh"; \
           do \
           ../../../tools/cross-install -m0755 -p $i 
/xen-unstable.hg/dist/install/etc/xen/scripts; \
        done
install: cannot stat `hotplugpath.sh': No such file or directory
make[5]: *** [install-scripts] Error 1
make[5]: *** Waiting for unfinished jobs....

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/tools/hotplug/common/Makefile b/tools/hotplug/common/Makefile
--- a/tools/hotplug/common/Makefile
+++ b/tools/hotplug/common/Makefile
@@ -22,7 +22,7 @@ build: genpath
 install: all install-scripts
 
 .PHONY: install-scripts
-install-scripts:
+install-scripts: build
        [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
                $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
        set -e; for i in $(XEN_SCRIPTS); \


-- 
yamahata

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>