- Add patch for https://bugs.freedesktop.org/show_bug.cgi?id=17551
This commit is contained in:
parent
5618b810e8
commit
9ccbc3d0e1
19
dbus-python-0.83.0-memleak.patch
Normal file
19
dbus-python-0.83.0-memleak.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- 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()
|
||||
|
@ -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-devel >= %{dbus_version}
|
||||
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 @@ bindings.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch0 -p0 -b .memleak
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
||||
@ -75,6 +79,9 @@ rm -rf %{buildroot}
|
||||
%{_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@redhat.com> - 0.83.0-2
|
||||
- Update to 0.83.0.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user