"make tools/ioemu-dir-force-update" fails
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 2Juergen
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
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 2When 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
@@ -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
Ian Jackson
AppliedIan 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.