Skip to contentSkip to conversation

qemu-dm.debug - trivial change for 64 bit systems

PATCH New Ben Thomas 1 participant 1 message Nov 6, 2006

lore
Share & tools
lore

Ben Thomas

author
#0 lore raw

PATCH 1/1 qemu-dm.debug - trivial change for 64 bit systems

This has been an annoyance for some time, and I just kept assuming that "someone else" would get around to fixing it and submitting the change.

Trivial change to look in correct location for qemu-dm when using the debug wrapper on a 64 bit system

Signature · 5 lines
------------------------------------------------------------------------
Ben Thomas                                         Virtual Iron Software
[email protected]                            Tower 1, Floor 2
978-849-1214                                       900 Chelmsford Street
                                                    Lowell, MA 01851

# Trivial change to look in correct location for qemu-dm when

# using the debug wrapper on a 64 bit system
#
# Signed-off-by: Ben Thomas ([email protected])
tools/ioemu/target-i386-dm/qemu-dm.debug +6 -1
Index: xen-unstable.hg/tools/ioemu/target-i386-dm/qemu-dm.debug
===================================================================
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+if [ "`arch`" = "x86_64" ]; then
+    LIBDIR="lib64"
+else
+    LIBDIR="lib"
+fi
 echo $* > /tmp/args
 echo $DISPLAY >> /tmp/args
-exec /usr/lib/xen/bin/qemu-dm $*
+exec /usr/$LIBDIR/xen/bin/qemu-dm $*

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel