]> git.pld-linux.org Git - packages/libvirt.git/commitdiff
- add 10 seconds timeout to udevadm settle called by libvirtd, auto/ti/libvirt-1.1.0-2
authorMarcin Krol <hawk@tld-linux.org>
Mon, 22 Jul 2013 13:06:09 +0000 (13:06 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 22 Jul 2013 13:06:09 +0000 (13:06 +0000)
  workarounds libvirt bug (details of problem available here:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663931#68
  note: problem seems old and all major distros uses this fix,
  its weird that upstream hasn't fixed it already)

libvirt-udevadm-settle.patch [new file with mode: 0644]
libvirt.spec

diff --git a/libvirt-udevadm-settle.patch b/libvirt-udevadm-settle.patch
new file mode 100644 (file)
index 0000000..a645d9f
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urP libvirt-1.1.0.orig/src/util/virutil.c libvirt-1.1.0/src/util/virutil.c
+--- libvirt-1.1.0.orig/src/util/virutil.c      2013-07-01 03:08:36.000000000 +0000
++++ libvirt-1.1.0/src/util/virutil.c   2013-07-22 12:58:14.053179206 +0000
+@@ -1419,7 +1419,7 @@
+ void virFileWaitForDevices(void)
+ {
+ # ifdef UDEVADM
+-    const char *const settleprog[] = { UDEVADM, "settle", NULL };
++    const char *const settleprog[] = { UDEVADM, "settle", "--timeout=10" , NULL };
+ # else
+     const char *const settleprog[] = { UDEVSETTLE, NULL };
+ # endif
index 69d2037a577012224f2885d108c19bd196bcb9f5..d3a9ce2640733b11c6580f6834af6a02e73c8a72 100644 (file)
@@ -34,7 +34,7 @@ Summary:      Toolkit to interact with virtualization capabilities
 Summary(pl.UTF-8):     Narzędzia współpracujące z funkcjami wirtualizacji
 Name:          libvirt
 Version:       1.1.0
-Release:       1
+Release:       2
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz
@@ -46,6 +46,7 @@ Patch1:               %{name}-lxc.patch
 Patch2:                %{name}-qemu-acl.patch
 Patch3:                %{name}-xend.patch
 Patch4:                virtlockd.init.patch
+Patch5:                %{name}-udevadm-settle.patch
 URL:           http://www.libvirt.org/
 BuildRequires: audit-libs-devel
 BuildRequires: augeas-devel
@@ -428,6 +429,7 @@ Sondy systemtap/dtrace dla libvirt.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 # weird translations
 %{__rm} po/{my,eu_ES}.{po,gmo}
This page took 0.04878 seconds and 4 git commands to generate.