diff --git a/python-gtk-bgo534083-memory-corruption.patch b/python-gtk-bgo534083-memory-corruption.patch new file mode 100644 index 0000000..52b6bf4 --- /dev/null +++ b/python-gtk-bgo534083-memory-corruption.patch @@ -0,0 +1,13 @@ +Index: pygtk-2.12.1/gtk/gtk.override +=================================================================== +--- pygtk-2.12.1.orig/gtk/gtk.override ++++ pygtk-2.12.1/gtk/gtk.override +@@ -1168,7 +1168,7 @@ static GSourceFuncs pygtk_main_watch_fun + static GSource * + pygtk_main_watch_new(void) + { +- return g_source_new(&pygtk_main_watch_funcs, sizeof(GSource)); ++ return g_source_new(&pygtk_main_watch_funcs, sizeof(PySignalWatchSource)); + } + + diff --git a/python-gtk.changes b/python-gtk.changes index 476c5a1..dcab6e6 100644 --- a/python-gtk.changes +++ b/python-gtk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 26 22:56:24 CET 2008 - vuntz@novell.com + +- Add python-gtk-bgo534083-memory-corruption.patch to fix + bnc#449152. Patch taken from upstream (see bgo#534083). + ------------------------------------------------------------------- Tue Oct 28 17:10:06 CET 2008 - olh@suse.de diff --git a/python-gtk.spec b/python-gtk.spec index 3d477ba..149b6ef 100644 --- a/python-gtk.spec +++ b/python-gtk.spec @@ -29,11 +29,13 @@ BuildRequires: gtk-doc Url: http://www.pygtk.org/ Summary: Python bindings for the GTK+ widget set Version: 2.12.1 -Release: 59 +Release: 63 License: LGPL v2.1 or later Group: Development/Libraries/Python Source: %{_name}-%{version}.tar.bz2 Source1: python-gtk-acinclude.m4 +# PATCH-FIX-UPSTREAM python-gtk-bgo534083-memory-corruption.patch bnc449152 bgo534083 vuntz@novell.com -- Fix memory corruption +Patch0: python-gtk-bgo534083-memory-corruption.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define lparen ( %define rparen ) @@ -90,6 +92,7 @@ Authors: %prep %setup -q -n %{_name}-%{version} cat %{S:1} >>acinclude.m4 +%patch0 -p1 %build autoreconf -f -i @@ -135,6 +138,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/gtk-doc/html/* %changelog +* Wed Nov 26 2008 vuntz@novell.com +- Add python-gtk-bgo534083-memory-corruption.patch to fix + bnc#449152. Patch taken from upstream (see bgo#534083). * Tue Oct 28 2008 olh@suse.de - build with -fno-schedule-insns on ppc64 (bnc#428413) * Mon Apr 07 2008 matejcik@suse.cz @@ -328,7 +334,7 @@ rm -rf $RPM_BUILD_ROOT - Update to 2.8.0. * Wed Aug 10 2005 sbrabec@suse.cz - Do not require -devel packages. -* Wed Aug 03 2005 gekker@suse.de +* Tue Aug 02 2005 gekker@suse.de - update to 2.7.1 (adds gtk 2.8 support) * Tue May 10 2005 mcihar@suse.cz - update to 2.6.2