diff options
author | drochner <drochner@pkgsrc.org> | 2009-12-16 16:53:09 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2009-12-16 16:53:09 +0000 |
commit | d5bd50770cd9830e1d85bd2f563ec1850d51f913 (patch) | |
tree | 400a093aa6640a96fc70f45d622b0432ee509f25 | |
parent | 9d22fdcbbdcb4439014379c86c3d979964404263 (diff) | |
download | pkgsrc-d5bd50770cd9830e1d85bd2f563ec1850d51f913.tar.gz |
fix the LP64 patch so that it doesn't prevent building on Python<2.5
-rw-r--r-- | audio/py-id3lib/distinfo | 4 | ||||
-rw-r--r-- | audio/py-id3lib/patches/patch-aa | 29 |
2 files changed, 17 insertions, 16 deletions
diff --git a/audio/py-id3lib/distinfo b/audio/py-id3lib/distinfo index 3530d557137..637cc84f0c6 100644 --- a/audio/py-id3lib/distinfo +++ b/audio/py-id3lib/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2009/11/29 23:04:15 dholland Exp $ +$NetBSD: distinfo,v 1.3 2009/12/16 16:53:09 drochner Exp $ SHA1 (pyid3lib-0.5.1.tar.bz2) = 5026f9aa7f868a081a7caecc54cbdbc0cdaea27b RMD160 (pyid3lib-0.5.1.tar.bz2) = cec0607aab0eeaaa953428a4d06c7b7a19232616 Size (pyid3lib-0.5.1.tar.bz2) = 21207 bytes -SHA1 (patch-aa) = cd7858485c80394e544133846630f7df8a7b5690 +SHA1 (patch-aa) = 056bb42731cdd94d6272d7a0e4893cfabf8cc3bf diff --git a/audio/py-id3lib/patches/patch-aa b/audio/py-id3lib/patches/patch-aa index 4dc84db0bea..b594516cc46 100644 --- a/audio/py-id3lib/patches/patch-aa +++ b/audio/py-id3lib/patches/patch-aa @@ -1,10 +1,8 @@ -$NetBSD: patch-aa,v 1.1 2009/11/29 23:04:15 dholland Exp $ +$NetBSD: patch-aa,v 1.2 2009/12/16 16:53:09 drochner Exp $ -Fix for LP64 on python > 2.4. - ---- pyid3lib.cc.orig 2003-02-16 18:50:20.000000000 -0500 -+++ pyid3lib.cc 2009-11-29 18:02:46.000000000 -0500 -@@ -10,6 +10,14 @@ +--- pyid3lib.cc.orig 2003-02-16 23:50:20.000000000 +0000 ++++ pyid3lib.cc +@@ -10,6 +10,17 @@ #include <id3/id3lib_frame.h> #include <id3/tag.h> @@ -14,12 +12,15 @@ Fix for LP64 on python > 2.4. +typedef intintargfunc ssizessizeargfunc; +typedef intobjargproc ssizeobjargproc; +typedef intintobjargproc ssizessizeobjargproc; ++#define LENFUNC inquiry ++#else ++#define LENFUNC lenfunc +#endif + typedef struct { PyObject_HEAD -@@ -61,11 +69,11 @@ static PyObject* dict_from_frame( ID3_Fr +@@ -61,11 +72,11 @@ static PyObject* dict_from_frame( ID3_Fr static ID3_Frame* frame_from_dict( PyObject* dict ); static ID3_Frame* frame_from_dict( ID3_FrameID fid, PyObject* dict ); @@ -36,12 +37,12 @@ Fix for LP64 on python > 2.4. static int id3_contains( ID3Object* self, PyObject* other ); static PyObject* id3_append( ID3Object* self, PyObject* args ); -@@ -80,13 +88,13 @@ static PyObject* frameid_lookup = NULL; +@@ -80,13 +91,13 @@ static PyObject* frameid_lookup = NULL; static PySequenceMethods tag_as_sequence = { - (inquiry)id3_length, -+ (lenfunc)id3_length, ++ (LENFUNC)id3_length, NULL, NULL, - (intargfunc)id3_item, @@ -55,7 +56,7 @@ Fix for LP64 on python > 2.4. (objobjproc)id3_contains, NULL, NULL, -@@ -236,12 +244,12 @@ static PyObject* id3iter_iternext( ID3It +@@ -236,12 +247,12 @@ static PyObject* id3iter_iternext( ID3It // ///////////////// @@ -70,7 +71,7 @@ Fix for LP64 on python > 2.4. { if ( index < 0 ) index += self->size; -@@ -255,7 +263,7 @@ static PyObject* id3_item( ID3Object* se +@@ -255,7 +266,7 @@ static PyObject* id3_item( ID3Object* se return dict_from_frame( self->frames[index] ); } @@ -79,7 +80,7 @@ Fix for LP64 on python > 2.4. { PyObject* result; int i; -@@ -284,7 +292,7 @@ static PyObject* id3_slice( ID3Object* s +@@ -284,7 +295,7 @@ static PyObject* id3_slice( ID3Object* s } @@ -88,7 +89,7 @@ Fix for LP64 on python > 2.4. { ID3_Frame* newframe; -@@ -382,7 +390,7 @@ static ID3_Frame** frames_from_dictseq( +@@ -382,7 +393,7 @@ static ID3_Frame** frames_from_dictseq( return NULL; } @@ -97,7 +98,7 @@ Fix for LP64 on python > 2.4. { int i, n; int newsize; -@@ -824,7 +832,7 @@ static ID3_Frame* frame_from_dict( PyObj +@@ -824,7 +835,7 @@ static ID3_Frame* frame_from_dict( PyObj static ID3_Frame* frame_from_dict( ID3_FrameID fid, PyObject* dict ) { char* data; |