Patch attached against current pkg-games/boson svn trunk.
-- 
Mark Hymers <mhy at debian dot org>
Index: patches/fix_type_issue.diff
===================================================================
--- patches/fix_type_issue.diff	(revision 0)
+++ patches/fix_type_issue.diff	(revision 0)
@@ -0,0 +1,20 @@
+--- boson-0.13.orig/boson/gameengine/script/pythonscript.cpp
++++ boson-0.13/boson/gameengine/script/pythonscript.cpp
+@@ -688,7 +688,7 @@
+   //  variables or submodules dict if possible.
+   PyObject* key;
+   PyObject* value;
+-  int pos = 0;
++  Py_Ssize_t pos = 0;
+   while(PyDict_Next(moduledict, &pos, &key, &value))
+   {
+     // Check if value is any of the known types
+@@ -774,7 +774,7 @@
+   boDebug(700) << k_funcinfo << "Loading and merging " << PyDict_Size(submodules) << " submodules" << endl;
+   PyObject* key;
+   PyObject* value;
+-  int pos = 0;
++  Py_Ssize_t pos = 0;
+   while(PyDict_Next(submodules, &pos, &key, &value))
+   {
+     // Check if current module already has module with this name
Index: patches/series
===================================================================
--- patches/series	(revision 6109)
+++ patches/series	(working copy)
@@ -4,3 +4,4 @@
 avoid_libpython-detection-error.diff
 bounit_desktop_fix.diff
 fix_gcc-4.3.diff
+fix_type_issue.diff
Index: changelog
===================================================================
--- changelog	(revision 6109)
+++ changelog	(working copy)
@@ -25,8 +25,11 @@
   [ Eddy Petrișor ]
   * fix Vcs-Svn URL to point to svn, not the incomplete ssh location
 
- -- Eddy Petrișor <[EMAIL PROTECTED]>  Wed, 05 Mar 2008 02:01:35 +0200
+  [ Mark Hymers ]
+  * Fix type issue on 64-bit machines with python2.5 (Closes: #471153)
 
+ -- Mark Hymers <[EMAIL PROTECTED]>  Sun, 16 Mar 2008 14:30:22 +0000
+
 boson (0.13-2) unstable; urgency=low
 
   * remove libvorbis-dev from boson dependency (Closes: #385189)

Reply via email to