From dbb388cc95d8679e30b61557216883bdfa4a36d7 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Sep 12 2012 18:48:55 +0000 Subject: Fix RHBZ#853408 which causes libguestfs failure. --- diff --git a/0001-Revert-qemu-char-Re-connect-for-tcp_chr_write-unconn.patch b/0001-Revert-qemu-char-Re-connect-for-tcp_chr_write-unconn.patch new file mode 100644 index 0000000..42d1484 --- /dev/null +++ b/0001-Revert-qemu-char-Re-connect-for-tcp_chr_write-unconn.patch @@ -0,0 +1,14 @@ +--- qemu-kvm-1.2.0/qemu-char.c~ 2012-09-12 19:46:36.491936229 +0100 ++++ qemu-kvm-1.2.0/qemu-char.c 2012-09-12 19:47:33.349972760 +0100 +@@ -2268,9 +2268,8 @@ + } + return ret; + } else { +- /* (Re-)connect for unconnected writing */ +- tcp_chr_connect(chr); +- return 0; ++ /* XXX: indicate an error ? */ ++ return len; + } + } + diff --git a/qemu.spec b/qemu.spec index 0b08eee..5ac650a 100644 --- a/qemu.spec +++ b/qemu.spec @@ -37,7 +37,7 @@ Summary: QEMU is a FAST! processor emulator Name: qemu Version: 1.2.0 -Release: 2%{?dist} +Release: 3%{?dist} # Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped Epoch: 2 License: GPLv2+ and LGPLv2+ and BSD @@ -189,6 +189,13 @@ Patch0363: 0363-usb-redir-Store-max_packet_size-in-endp_data.patch Patch0364: 0364-usb-redir-Add-support-for-migration.patch Patch0365: 0365-usb-redir-Add-chardev-open-close-debug-logging.patch +# Revert c3767ed0eb5d0. +# NOT upstream (hopefully will be soon). +# See: https://bugzilla.redhat.com/show_bug.cgi?id=853408 +# and: https://lists.gnu.org/archive/html/qemu-devel/2012-09/msg00526.html +# plus followups. +Patch0900: 0001-Revert-qemu-char-Re-connect-for-tcp_chr_write-unconn.patch + BuildRequires: SDL-devel BuildRequires: zlib-devel BuildRequires: which @@ -568,6 +575,8 @@ such as kvm_stat. %patch364 -p1 %patch365 -p1 +%patch900 -p1 + %build buildarch="i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu \ @@ -1046,6 +1055,9 @@ fi %{_mandir}/man1/qemu-img.1* %changelog +* Wed Sep 12 2012 Richard W.M. Jones - 2:1.2.0-3 +- Fix RHBZ#853408 which causes libguestfs failure. + * Sat Sep 8 2012 Hans de Goede - 2:1.2.0-2 - Fix crash on (seamless) migration - Sync usbredir live migration patches with upstream