rpms/libvirt/F-9 libvirt-0.4.5-no-emulator-segfault.patch, NONE, 1.1 libvirt.spec, 1.90, 1.91

Daniel Veillard veillard at fedoraproject.org
Tue Sep 9 15:26:21 UTC 2008


Author: veillard

Update of /cvs/pkgs/rpms/libvirt/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31823

Modified Files:
	libvirt.spec 
Added Files:
	libvirt-0.4.5-no-emulator-segfault.patch 
Log Message:
fixing a segfault if emulator is missing, Daniel


libvirt-0.4.5-no-emulator-segfault.patch:

--- NEW FILE libvirt-0.4.5-no-emulator-segfault.patch ---
diff --git a/src/qemu_conf.c b/src/qemu_conf.c
index d742c32..23ef050 100644
--- a/src/qemu_conf.c
+++ b/src/qemu_conf.c
@@ -790,7 +790,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
     if (!emulator)
         return -1;
 
-    ADD_ARG_LIT(vm->def->emulator);
+    ADD_ARG_LIT(emulator);
     ADD_ARG_LIT("-S");
     ADD_ARG_LIT("-M");
     ADD_ARG_LIT(vm->def->os.machine);


Index: libvirt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libvirt/F-9/libvirt.spec,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- libvirt.spec	9 Sep 2008 14:32:15 -0000	1.90
+++ libvirt.spec	9 Sep 2008 15:25:51 -0000	1.91
@@ -30,10 +30,11 @@
 Summary: Library providing a simple API virtualization
 Name: libvirt
 Version: 0.4.5
-Release: 1%{?dist}%{?extra_release}
+Release: 2%{?dist}%{?extra_release}
 License: LGPLv2+
 Group: Development/Libraries
 Source: libvirt-%{version}.tar.gz
+Patch0: libvirt-0.4.5-no-emulator-segfault.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 URL: http://libvirt.org/
 BuildRequires: python python-devel
@@ -147,6 +148,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %if ! %{with_xen}
@@ -302,7 +304,10 @@
 %doc docs/examples/python
 
 %changelog
-* Mon Sep  8 2008 Daniel Veillard <veillard at redhat.com> - 0.4.5-1.fc10
+* Tue Sep  9 2008 Daniel Veillard <veillard at redhat.com> - 0.4.5-2.fc9
+- fix a crash if a QEmu/KVM domain is defined without an emulator path
+
+* Mon Sep  8 2008 Daniel Veillard <veillard at redhat.com> - 0.4.5-1.fc9
 - upstream release 0.4.5
 - a lot of bug fixes
 - major updates to QEmu/KVM and Linux containers drivers




More information about the fedora-extras-commits mailing list