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] Re: [PATCH] hoplugpath.sh: fix Makefile dependency.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [PATCH] hoplugpath.sh: fix Makefile dependency.
From: Christoph Egger <Christoph.Egger@xxxxxxx>
Date: Thu, 23 Jul 2009 11:03:33 +0200
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Thu, 23 Jul 2009 02:05:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090723030022.GL6393%yamahata@xxxxxxxxxxxxx>
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>
References: <20090723030022.GL6393%yamahata@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.7
I compile the xen tree regularly with 'make -j4' and it didn't catch
this. Thanks for fixing it.

Christoph


On Thursday 23 July 2009 05:00:22 Isaku Yamahata wrote:
> 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); \



-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632


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

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