Skip to contentSkip to conversation

"make tools/ioemu-dir-force-update" fails

DISCUSSION Applied Juergen Gross 3 participants 3 messages Nov 22, 2010 – Nov 23, 2010

lore
Share & tools
lore
#0 lore raw

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

Juergen

Signature · 5 lines
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: [email protected]
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html
#1 lore raw
Quoted 5 lines · Juergen Gross

Hi,

forced update of qemu in xen-unstable fails (I'm using GIT_HTTP=y, if this matters):

Quoted 15 lines
# 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 <[email protected]>
# 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.

tools/Makefile +1 -0
diff -r 4c6b73eacd47 -r 5854108a8305 tools/Makefile
@@ -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
Applied
#2 lore raw

Ian Campbell writes ("Re: [Xen-devel] "make tools/ioemu-dir-force-update" fails"):

Quoted 1 line

tools: fetch remote changesets when force refetching/resetting qemu

Applied, thanks.

Ian.