[Debian-med-packaging] Bug#693653: OpenGL function fails and blocks Pmv and Autodocktools

Steffen Moeller steffen_moeller at gmx.de
Mon Nov 19 00:06:39 UTC 2012


Package: mgltools-opengltk
Version: 1.5.6~rc3~cvs.20120601-1
Severity: serious
Tags: patch


It seems like some platform specific size specifications in
Swig wrappers have caused some issue. The patch below we
have locally tested to solve the issue for us and now we wait
for a confirmation by upstream.

SM+TA

Index: opengltk/extent/dejavu.i
===================================================================
RCS file: /opt/cvs/opengltkDIST/opengltk/extent/dejavu.i,v
retrieving revision 1.65
diff -u -r1.65 dejavu.i
--- opengltk/extent/dejavu.i    16 Oct 2009 22:49:12 -0000      1.65
+++ opengltk/extent/dejavu.i    18 Nov 2012 23:03:43 -0000
@@ -3222,7 +3222,7 @@
 
 %typemap(in) const float *coords
 {
-  long buffer_len;
+  Py_ssize_t buffer_len;
   if (PyObject_AsWriteBuffer( $input, (void**)&$1, &buffer_len))
     return NULL;
   if (! $1) return PyErr_Format( PyExc_ValueError,
Index: opengltk/extent/glArrayTypemap.i
===================================================================
RCS file: /opt/cvs/opengltkDIST/opengltk/extent/glArrayTypemap.i,v
retrieving revision 1.3
diff -u -r1.3 glArrayTypemap.i
--- opengltk/extent/glArrayTypemap.i    30 Jul 2007 21:28:55 -0000      1.3
+++ opengltk/extent/glArrayTypemap.i    18 Nov 2012 23:03:43 -0000
@@ -107,7 +107,7 @@
   {
     if (isContiguosBuffer((PyObject*)$input))
     { 
-      int buffer_len;
+      Py_ssize_t buffer_len;
       array = NULL;
       if (PyObject_AsReadBuffer( $input, (const void**)&$1, &buffer_len))
         return NULL;
@@ -124,7 +124,7 @@
   }
   else
   {
-    int buffer_len;
+    Py_ssize_t buffer_len;
     array = NULL;
     if (PyObject_AsReadBuffer( $input, (const void**)&$1, &buffer_len))
       return NULL;
@@ -153,7 +153,7 @@
   {
     if (isContiguosBuffer((PyObject*)$input))
     { 
-      int buffer_len;
+      Py_ssize_t buffer_len;
       array = NULL;
       if (PyObject_AsReadBuffer( $input, (const void**)&$1, &buffer_len))
         return NULL;
@@ -173,7 +173,7 @@
   }
   else
   {
-    int buffer_len;
+    Py_ssize_t buffer_len;
     array = NULL;
     if (PyObject_AsReadBuffer( $input, (const void**)&$1, &buffer_len))
       return NULL;
@@ -202,7 +202,7 @@
   {
     if (isContiguosBuffer((PyObject*)$input))
     { 
-      int buffer_len;
+      Py_ssize_t buffer_len;
       array = NULL;
       if (PyObject_AsReadBuffer( $input, (const void**)&$1, &buffer_len))
         return NULL;
@@ -222,7 +222,7 @@
   }
   else
   {
-    int buffer_len;
+    Py_ssize_t buffer_len;
     array = NULL;
     if (PyObject_AsReadBuffer( $input, (const void**)&$1, &buffer_len))
       return NULL;
Index: opengltk/extent/gltypemap.i
===================================================================
RCS file: /opt/cvs/opengltkDIST/opengltk/extent/gltypemap.i,v
retrieving revision 1.3
diff -u -r1.3 gltypemap.i
--- opengltk/extent/gltypemap.i 11 Jun 2009 22:45:13 -0000      1.3
+++ opengltk/extent/gltypemap.i 18 Nov 2012 23:03:43 -0000
@@ -63,7 +63,7 @@
   GLvoid*,
   GLint[ANY]
 {
-  long buffer_len;
+  Py_ssize_t buffer_len;
   if (PyObject_AsWriteBuffer( $input, (void**)&$1, &buffer_len))
     return NULL;
   if (! $1) return PyErr_Format( PyExc_ValueError,



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mgltools-opengltk depends on:
ii  libc6                             2.13-36
ii  libgl1-mesa-glx [libgl1]          8.0.5-1
ii  libglu1-mesa                      8.0.4-2
ii  libx11-6                          2:1.5.0-1
ii  libxext6                          2:1.3.1-2
ii  libxmu6                           2:1.1.1-1
ii  libxt6                            1:1.1.3-1
ii  mgltools-gle                      1.5.6~rc3+cvs.20121117-1
ii  python                            2.7.3-3
ii  python-numpy [python-numpy-abi9]  1:1.6.2-1
ii  tk                                8.5.0-2
ii  tk8.4                             8.4.19-5
ii  tk8.5                             8.5.11-2

mgltools-opengltk recommends no packages.

mgltools-opengltk suggests no packages.

-- no debconf information



More information about the Debian-med-packaging mailing list