rpms/dbus-python/F-9 dbus-python-0.83.0-memleak.patch, NONE, 1.1 dbus-python.spec, 1.26, 1.27
Marco Pesenti Gritti
mpg at fedoraproject.org
Tue Sep 16 15:40:30 UTC 2008
Author: mpg
Update of /cvs/pkgs/rpms/dbus-python/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32583
Modified Files:
dbus-python.spec
Added Files:
dbus-python-0.83.0-memleak.patch
Log Message:
* Tue Sep 16 2008 Marco Pesenti Gritti - 0.83.0-3
- Add patch for https://bugs.freedesktop.org/show_bug.cgi?id=17551
dbus-python-0.83.0-memleak.patch:
--- NEW FILE dbus-python-0.83.0-memleak.patch ---
--- dbus/connection.py.orig 2008-09-13 14:54:49.000000000 +0200
+++ dbus/connection.py 2008-09-13 14:55:01.000000000 +0200
@@ -484,7 +484,15 @@
deletions.append(match)
else:
new.append(match)
- by_member[signal_name] = new
+
+ if new:
+ by_member[signal_name] = new
+ else:
+ del by_member[signal_name]
+ if not by_member:
+ del by_interface[dbus_interface]
+ if not by_interface:
+ del self._signal_recipients_by_object_path[path]
finally:
self._signals_lock.release()
Index: dbus-python.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dbus-python/F-9/dbus-python.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- dbus-python.spec 5 Aug 2008 06:02:10 -0000 1.26
+++ dbus-python.spec 16 Sep 2008 15:40:00 -0000 1.27
@@ -7,7 +7,7 @@
Summary: D-Bus Python Bindings
Name: dbus-python
Version: 0.83.0
-Release: 2%{?dist}
+Release: 3%{?dist}
URL: http://www.freedesktop.org/software/dbus/
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
@@ -18,6 +18,8 @@
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
BuildRequires: python-devel
+Patch0: dbus-python-0.83.0-memleak.patch
+
%description
D-Bus python bindings for use with python programs.
@@ -35,6 +37,8 @@
%prep
%setup -q
+%patch0 -p0 -b .memleak
+
%build
%configure
@@ -75,6 +79,9 @@
%{_libdir}/pkgconfig/dbus-python.pc
%changelog
+* Tue Sep 16 2008 Marco Pesenti Gritti - 0.83.0-3
+- Add patch for https://bugs.freedesktop.org/show_bug.cgi?id=17551
+
* Tue Aug 05 2008 Huang Peng <phuang at redhat.com> - 0.83.0-2
- Update to 0.83.0.
More information about the fedora-extras-commits
mailing list