Hello community, here is the log from the commit of package libvirt for openSUSE:Factory checked in at Tue Oct 13 17:16:39 CEST 2009. -------- --- libvirt/libvirt.changes 2009-09-29 16:37:26.000000000 +0200 +++ libvirt/libvirt.changes 2009-10-13 06:55:38.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Oct 12 22:39:42 MDT 2009 - jfehlig@novell.com + +- Build phyp driver ifarch ppc64 + fate#307096 +- Fix memory leaks in libvirtd's message processing + msg-proc-memleak.patch + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- sexpr2string.patch New: ---- msg-proc-memleak.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt.spec ++++++ --- /var/tmp/diff_new_pack.84UIfq/_old 2009-10-13 17:15:40.000000000 +0200 +++ /var/tmp/diff_new_pack.84UIfq/_new 2009-10-13 17:15:40.000000000 +0200 @@ -20,6 +20,7 @@ %define with_xen 1 %define with_lxc 0 %define with_selinux 0 +%define with_phyp 0 # Xen is available only on i386 x86_64 %ifnarch %ix86 x86_64 %define with_xen 0 @@ -28,6 +29,10 @@ %define with_lxc 1 %define with_selinux 1 %endif +# Build phyp backend for IBM Power systems +%ifarch ppc64 +%define with_phyp 1 +%endif Name: libvirt BuildRequires: bridge-utils cyrus-sasl-devel device-mapper-devel fdupes gettext gnutls-devel hal-devel iptables-devel libxml2-devel lvm2 ncurses-devel parted-devel pkg-config python-devel readline-devel util-linux xhtml-dtd @@ -50,6 +55,9 @@ %else BuildRequires: PolicyKit-devel >= 0.6 %endif +%if %{with_phyp} +BuildRequires: libssh2-devel +%endif # Only for directory ownership: BuildRequires: gtk-doc Url: http://libvirt.org/ @@ -57,7 +65,7 @@ Group: Development/Libraries/C and C++ AutoReqProv: yes Version: 0.7.1 -Release: 2 +Release: 3 Summary: A C toolkit to interract with the virtualization capabilities of Linux Requires: readline Requires: ncurses @@ -86,6 +94,7 @@ Patch0: devmap-no-pkgconfig.patch Patch1: xen-refcnt.patch Patch2: vshdeinit-recurse.patch +Patch3: msg-proc-memleak.patch # Need to go upstream Patch100: socat.patch Patch101: clone.patch @@ -190,6 +199,7 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %patch100 -p1 %patch101 %patch102 -p1 ++++++ msg-proc-memleak.patch ++++++ Index: libvirt-0.7.1/qemud/dispatch.c =================================================================== --- libvirt-0.7.1.orig/qemud/dispatch.c +++ libvirt-0.7.1/qemud/dispatch.c @@ -191,6 +191,7 @@ remoteSerializeError(struct qemud_client xdr_error: xdr_destroy(&xdr); + VIR_FREE(msg); fatal_error: xdr_free((xdrproc_t)xdr_remote_error, (char *)rerr); return -1; @@ -336,6 +337,7 @@ remoteDispatchClientRequest (struct qemu struct qemud_client *client, struct qemud_client_message *msg) { + int ret; remote_error rerr; memset(&rerr, 0, sizeof rerr); @@ -364,7 +366,12 @@ remoteDispatchClientRequest (struct qemu } error: - return remoteSerializeReplyError(client, &rerr, &msg->hdr); + ret = remoteSerializeReplyError(client, &rerr, &msg->hdr); + + if (ret >= 0) + VIR_FREE(msg); + + return ret; } @@ -521,8 +528,12 @@ remoteDispatchClientCall (struct qemud_s rpc_error: /* Semi-bad stuff happened, we can still try to send back * an RPC error message to client */ - return remoteSerializeReplyError(client, &rerr, &msg->hdr); + rv = remoteSerializeReplyError(client, &rerr, &msg->hdr); + + if (rv >= 0) + VIR_FREE(msg); + return rv; xdr_error: /* Seriously bad stuff happened, so we'll kill off this client ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org