diff --git a/pygobject-gio-load-contents.patch b/pygobject-gio-load-contents.patch index 417b6e0..1b5d800 100644 --- a/pygobject-gio-load-contents.patch +++ b/pygobject-gio-load-contents.patch @@ -20,3 +20,41 @@ Index: gio/gfile.override else { Py_INCREF(Py_None); return Py_None; +--- gio/gfile.override 2008/09/07 01:05:15 965 ++++ gio/gfile.override 2008/09/07 14:46:42 966 +@@ -176,7 +176,7 @@ + GCancellable *cancellable; + PyGObject *pycancellable = NULL; + gchar *contents, *etag_out; +- gsize lenght; ++ gsize length; + GError *error = NULL; + gboolean ret; + +@@ -190,7 +190,7 @@ + return NULL; + + ret = g_file_load_contents(G_FILE(self->obj), cancellable, +- &contents, &lenght, &etag_out, &error); ++ &contents, &length, &etag_out, &error); + + if (pyg_error_check(&error)) + return NULL; +@@ -251,7 +251,7 @@ + static char *kwlist[] = { "res", NULL }; + PyGObject *res; + gchar *contents, *etag_out; +- gsize lenght; ++ gsize length; + GError *error = NULL; + gboolean ret; + +@@ -264,7 +264,7 @@ + + ret = g_file_load_contents_finish(G_FILE(self->obj), + G_ASYNC_RESULT(res->obj), &contents, +- &lenght, &etag_out, &error); ++ &length, &etag_out, &error); + + if (pyg_error_check(&error)) + return NULL; diff --git a/pygobject2.spec b/pygobject2.spec index f776b70..607c8a4 100644 --- a/pygobject2.spec +++ b/pygobject2.spec @@ -8,7 +8,7 @@ Name: pygobject2 Version: 2.15.4 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPLv2+ Group: Development/Languages Summary: Python bindings for GObject @@ -21,6 +21,7 @@ Source: pygobject-%{version}.tar.bz2 # RH bug #544946 Patch0: pygobject-2.15.2-threads-init.patch # http://bugzilla.gnome.org/show_bug.cgi?id=551059 +# http://bugzilla.gnome.org/show_bug.cgi?id=551212 Patch1: pygobject-gio-load-contents.patch ### Build Dependencies ### @@ -119,6 +120,9 @@ rm -fr $RPM_BUILD_ROOT %{_datadir}/pygobject/xsl %changelog +* Tue Oct 21 2008 - Bastien Nocera - 2.15.4-3.fc10 +- Add patch to fix typos breaking compilation + * Tue Oct 21 2008 - Bastien Nocera - 2.15.4-2.fc10 - Add 2-liner fixing the load_contents functions not working appropriately