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

Re: [Xen-devel] "make tools/ioemu-dir-force-update" fails

To: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] "make tools/ioemu-dir-force-update" fails
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Mon, 22 Nov 2010 09:26:55 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 22 Nov 2010 01:27:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CEA193F.5010106@xxxxxxxxxxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <4CEA193F.5010106@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2010-11-22 at 07:18 +0000, Juergen Gross wrote:
> Hi,
> 
> forced update of qemu in xen-unstable fails (I'm using GIT_HTTP=y, if
> this matters):
> 
> # make tools/ioemu-dir-force-update
> make -C tools ioemu-dir-force-update
> make[1]: Entering directory `/root/xen-unstable.hg/tools'
> set -ex; \
>          if [ "60766b459c41e429a4b2405124b42512ea362984" ]; then \
>                  cd ioemu-remote; \
>                  git reset --hard 60766b459c41e429a4b2405124b42512ea362984; \
>          fi
> + '[' 60766b459c41e429a4b2405124b42512ea362984 ']'
> + cd ioemu-remote
> + git reset --hard 60766b459c41e429a4b2405124b42512ea362984
> fatal: Could not parse object '60766b459c41e429a4b2405124b42512ea362984'.
> make[1]: *** [ioemu-dir-force-update] Error 128
> make[1]: Leaving directory `/root/xen-unstable.hg/tools'
> make: *** [tools/ioemu-dir-force-update] Error 2

When I added this I was motivated by doing bisection -- i.e. switching
between versions which are already in the local repository. This
obviously doesn't handle the (most common) case where an entirely new
qemu version is required.

We obviously need a "git fetch" of some description in there:

8<-----------

# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1290417947 0
# Node ID 5854108a8305913ebe5c5f02c1dac6bd0f389770
# Parent  4c6b73eacd4747e89ea7aacc2d91b14a83f2c8e3
tools: fetch remote changesets when force refetching/resetting qemu

This makes "make tools/ioemu-dir-force-update" usable for picking up
an entirely new QEMU_TAG.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 4c6b73eacd47 -r 5854108a8305 tools/Makefile
--- a/tools/Makefile    Mon Nov 22 09:21:02 2010 +0000
+++ b/tools/Makefile    Mon Nov 22 09:25:47 2010 +0000
@@ -122,6 +122,7 @@ ioemu-dir-force-update:
        set -ex; \
        if [ "$(QEMU_TAG)" ]; then \
                cd ioemu-remote; \
+               $(GIT) fetch origin; \
                $(GIT) reset --hard $(QEMU_TAG); \
        fi
 



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

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