r51250 - in /attic/pygtk/debian: changelog patches/05_Fix_GdkColor_pixel_parse.patch patches/series
pochu at users.alioth.debian.org
pochu at users.alioth.debian.org
Fri Oct 7 17:45:37 UTC 2016
Author: pochu
Date: Fri Oct 7 17:45:37 2016
New Revision: 51250
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=51250
Log:
* Non-maintainer upload.
* 05_Fix_GdkColor_pixel_parse.patch: Fix bus error on sparc64.
Closes: #839867.
Added:
attic/pygtk/debian/patches/05_Fix_GdkColor_pixel_parse.patch
Modified:
attic/pygtk/debian/changelog
attic/pygtk/debian/patches/series
Modified: attic/pygtk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/attic/pygtk/debian/changelog?rev=51250&op=diff
==============================================================================
--- attic/pygtk/debian/changelog [utf-8] (original)
+++ attic/pygtk/debian/changelog [utf-8] Fri Oct 7 17:45:37 2016
@@ -1,3 +1,11 @@
+pygtk (2.24.0-5.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * 05_Fix_GdkColor_pixel_parse.patch: Fix bus error on sparc64.
+ Closes: #839867.
+
+ -- James Clarke <jrtc27 at jrtc27.com> Fri, 07 Oct 2016 14:49:35 +0100
+
pygtk (2.24.0-5) unstable; urgency=medium
* Add build-indep and build-arch targets. Closes: #831945.
Added: attic/pygtk/debian/patches/05_Fix_GdkColor_pixel_parse.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/attic/pygtk/debian/patches/05_Fix_GdkColor_pixel_parse.patch?rev=51250&op=file
==============================================================================
--- attic/pygtk/debian/patches/05_Fix_GdkColor_pixel_parse.patch (added)
+++ attic/pygtk/debian/patches/05_Fix_GdkColor_pixel_parse.patch [utf-8] Fri Oct 7 17:45:37 2016
@@ -0,0 +1,31 @@
+Description: Fix bus error on sparc64
+ Since GdkColor.pixel is a guint32, but "k" in the format string means unsigned
+ long, a temporary local needs to be used to get the right alignment and size
+ on platforms where unsigned long is not 32-bit.
+Author: James Clarke <jrtc27 at jrtc27.com>
+Bug-Debian: https://bugs.debian.org/839867
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: pygtk-2.24.0/gtk/gdkcolor.override
+===================================================================
+--- pygtk-2.24.0.orig/gtk/gdkcolor.override
++++ pygtk-2.24.0/gtk/gdkcolor.override
+@@ -33,6 +33,7 @@ _wrap_gdk_color_new(PyGBoxed *self,
+ static char *kwlist1[] = {"red", "green", "blue", "pixel", NULL };
+ static char *kwlist2[] = { "spec", NULL };
+ PyObject *red = Py_None, *green = Py_None, *blue = Py_None;
++ unsigned long pixel;
+ const char *spec = NULL;
+ GdkColor colour;
+
+@@ -56,7 +57,9 @@ _wrap_gdk_color_new(PyGBoxed *self,
+ PyErr_Clear();
+
+ if (PyArg_ParseTupleAndKeywords(args, kwargs, "|OOOk:gdk.Color", kwlist1,
+- &red, &green, &blue, &colour.pixel)) {
++ &red, &green, &blue, &pixel)) {
++ colour.pixel = pixel;
++
+ /* We don't allow mixing floats and non-floats as that is too
+ * error-prone. All non-floats are deemed integers in case
+ * they have __int__() method. */
Modified: attic/pygtk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/attic/pygtk/debian/patches/series?rev=51250&op=diff
==============================================================================
--- attic/pygtk/debian/patches/series [utf-8] (original)
+++ attic/pygtk/debian/patches/series [utf-8] Fri Oct 7 17:45:37 2016
@@ -1,3 +1,4 @@
01_pygtk-demo.patch
03_testsuite_filechooser.patch
04_Fix_leaks_of_Pango_objects.patch
+05_Fix_GdkColor_pixel_parse.patch
More information about the pkg-gnome-commits
mailing list