Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Doug Goldstein (cardoe)" <cardoe@g.o>
Subject: gentoo-x86 commit in app-emulation/virtinst/files: virtinst-0.400.3-kvm-img.patch
Date: Wed, 27 May 2009 16:33:09 +0000
cardoe      09/05/27 16:33:09

  Added:                virtinst-0.400.3-kvm-img.patch
  Log:
  add patch to use kvm-img if qemu-img isn't there
  (Portage version: 2.1.6.13/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  app-emulation/virtinst/files/virtinst-0.400.3-kvm-img.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtinst/files/virtinst-0.400.3-kvm-img.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtinst/files/virtinst-0.400.3-kvm-img.patch?rev=1.1&content-type=text/plain

Index: virtinst-0.400.3-kvm-img.patch
===================================================================
diff -Nur virtinst-0.400.3/virtconv/diskcfg.py virtinst-0.400.3-kvm-img/virtconv/diskcfg.py
--- virtinst-0.400.3/virtconv/diskcfg.py	2009-03-09 22:32:15.000000000 -0500
+++ virtinst-0.400.3-kvm-img/virtconv/diskcfg.py	2009-05-20 10:55:13.000000000 -0500
@@ -151,12 +151,17 @@
         Use qemu-img to convert the given disk.  Note that at least some
         version of qemu-img cannot handle multi-file VMDKs, so this can
         easily go wrong.
+        Gentoo, Debian, and Ubuntu (potentially others) install kvm-img
+        with kvm and qemu-img with qemu. Both would work.
         """
 
         self.clean += [ absout ]
 
         ret, ignore, stderr = run_cmd(["qemu-img", "convert", "-O",
             qemu_formats[out_format], absin, absout])
+        if ret = 127:
+            ret, ignore, stderr = run_cmd(["kvm-img", "convert", "-O",
+                qemu_formats[out_format], absin, absout])
         if ret != 0:
             raise RuntimeError("Disk conversion failed with "
                 "exit status %d: %s" % (ret, "".join(stderr)))





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in www-client/opera: opera-10.00_pre4394.ebuild ChangeLog
Next by thread:
gentoo-x86 commit in app-emulation/virtinst: ChangeLog virtinst-0.400.3-r1.ebuild
Previous by date:
gentoo-x86 commit in www-client/opera: opera-10.00_pre4394.ebuild ChangeLog
Next by date:
gentoo-x86 commit in app-emulation/virtinst: ChangeLog virtinst-0.400.3-r1.ebuild


Updated May 09, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.