pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/py-id3lib fix the LP64 patch so that it doesn't ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3bd29d3225c
branches:  trunk
changeset: 568647:f3bd29d3225c
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Dec 16 16:53:09 2009 +0000

description:
fix the LP64 patch so that it doesn't prevent building on Python<2.5

diffstat:

 audio/py-id3lib/distinfo         |   4 ++--
 audio/py-id3lib/patches/patch-aa |  29 +++++++++++++++--------------
 2 files changed, 17 insertions(+), 16 deletions(-)

diffs (107 lines):

diff -r 0d1e0355d67d -r f3bd29d3225c audio/py-id3lib/distinfo
--- a/audio/py-id3lib/distinfo  Wed Dec 16 15:37:52 2009 +0000
+++ b/audio/py-id3lib/distinfo  Wed Dec 16 16:53:09 2009 +0000
@@ -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 -r 0d1e0355d67d -r f3bd29d3225c audio/py-id3lib/patches/patch-aa
--- a/audio/py-id3lib/patches/patch-aa  Wed Dec 16 15:37:52 2009 +0000
+++ b/audio/py-id3lib/patches/patch-aa  Wed Dec 16 16:53:09 2009 +0000
@@ -1,10 +1,8 @@
-$NetBSD: patch-aa,v 1.1 2009/11/29 23:04:15 dholland Exp $
-
-Fix for LP64 on python > 2.4.
+$NetBSD: patch-aa,v 1.2 2009/12/16 16:53:09 drochner Exp $
 
---- 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 @@
 +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 @@
  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 @@
      (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 @@
  {
      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 @@
  {
      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 @@
  {
      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 @@
  {
      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;



Home | Main Index | Thread Index | Old Index