Package: pymtp
Version: 0.0.4-2
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

Using the example /usr/share/doc/python-pymtp/examples/deviceinfo.py
fails with a segfault.  This was originally reported about Ubuntu in bug
https://bugs.launchpad.net/ubuntu/+source/pymtp/+bug/575091 and a patch
was provided by Fergal Daly which I've included here.  I was unable to
find the upstream for this project hence my forwarding the patch to
Debian.


*** /tmp/tmpqe7l2s
In Ubuntu, the attached patch was applied to achieve the following:

to resolve a crash that has existed for the past year.

  * Fix crash when accessing file listing.  Thanks to Fergal Daly for the
    patch.  (LP: #575091)


Thanks for considering the patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-8-generic (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
diff -u pymtp-0.0.4/debian/changelog pymtp-0.0.4/debian/changelog
diff -u pymtp-0.0.4/debian/patches/series pymtp-0.0.4/debian/patches/series
--- pymtp-0.0.4/debian/patches/series
+++ pymtp-0.0.4/debian/patches/series
@@ -1,0 +2 @@
+modificationdate-ctype.diff
only in patch2:
unchanged:
--- pymtp-0.0.4.orig/debian/patches/modificationdate-ctype.diff
+++ pymtp-0.0.4/debian/patches/modificationdate-ctype.diff
@@ -0,0 +1,20 @@
+Index: pymtp-0.0.4/pymtp.py
+===================================================================
+--- pymtp-0.0.4.orig/pymtp.py	2011-07-08 13:24:55.000000000 -0700
++++ pymtp-0.0.4/pymtp.py	2011-07-08 13:25:59.000000000 -0700
+@@ -170,6 +170,7 @@
+                         ("storage_id", ctypes.c_uint32),
+                         ("filename", ctypes.c_char_p),
+                         ("filesize", ctypes.c_uint64),
++			("modificationdate", ctypes.c_long),
+ 			("filetype", ctypes.c_int),
+ 			("next", ctypes.POINTER(LIBMTP_File))]
+ 
+@@ -202,6 +203,7 @@
+ 			("rating", ctypes.c_uint16),
+ 			("usecount", ctypes.c_uint32),
+ 			("filesize", ctypes.c_uint64),
++			("modificationdate", ctypes.c_long),
+ 			("filetype", ctypes.c_int),
+ 			("next", ctypes.POINTER(LIBMTP_Track))]
+ 

Reply via email to