import libvirt crash patch from rawhide
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 22 Sep 2008 21:56:36 +0000 (17:56 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 22 Sep 2008 21:56:36 +0000 (17:56 -0400)
libvirt/libvirt-0.4.5-no-emulator-segfault.patch [new file with mode: 0644]
libvirt/mingw-libvirt.spec

diff --git a/libvirt/libvirt-0.4.5-no-emulator-segfault.patch b/libvirt/libvirt-0.4.5-no-emulator-segfault.patch
new file mode 100644 (file)
index 0000000..03eea80
--- /dev/null
@@ -0,0 +1,13 @@
+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 7394c93..388546f 100644 (file)
@@ -6,13 +6,14 @@
 
 Name:           mingw-libvirt
 Version:        0.4.5
-Release:        3%{?dist}%{?extra_release}
+Release:        4%{?dist}%{?extra_release}
 Summary:        MinGW Windows libvirt virtualization library
 
 License:        LGPLv2+
 Group:          Development/Libraries
-URL:            http://www.libvirt.org/
+URL:            http://libvirt.org/
 Source0:        ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
+Patch1:         libvirt-%{version}-no-emulator-segfault.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  mingw-filesystem >= 23
@@ -34,7 +35,7 @@ MinGW Windows libvirt virtualization library.
 
 %prep
 %setup -q -n libvirt-%{version}
-
+%patch1 -p1
 
 %build
 # XXX enable SASL in future
@@ -86,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
+- Import crash fix from rawhide
+
 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
 - Add dep on gettext & pkgconfig