r6151 - packages/trunk/boson/debian/patches

Gonéri LE BOUDER goneri-guest at alioth.debian.org
Mon Mar 17 22:36:36 UTC 2008


Author: goneri-guest
Date: 2008-03-17 22:36:36 +0000 (Mon, 17 Mar 2008)
New Revision: 6151

Modified:
   packages/trunk/boson/debian/patches/fix_python2.5type_issue.diff
Log:
Python < 2.5 compat


Modified: packages/trunk/boson/debian/patches/fix_python2.5type_issue.diff
===================================================================
--- packages/trunk/boson/debian/patches/fix_python2.5type_issue.diff	2008-03-17 22:20:17 UTC (rev 6150)
+++ packages/trunk/boson/debian/patches/fix_python2.5type_issue.diff	2008-03-17 22:36:36 UTC (rev 6151)
@@ -1,5 +1,7 @@
---- boson-0.13.orig/boson/gameengine/script/pythonscript.cpp
-+++ boson-0.13/boson/gameengine/script/pythonscript.cpp
+Index: boson-0.13/boson/gameengine/script/pythonscript.cpp
+===================================================================
+--- boson-0.13.orig/boson/gameengine/script/pythonscript.cpp	2008-03-17 23:17:36.000000000 +0100
++++ boson-0.13/boson/gameengine/script/pythonscript.cpp	2008-03-17 23:21:39.000000000 +0100
 @@ -688,7 +688,7 @@
    //  variables or submodules dict if possible.
    PyObject* key;
@@ -18,3 +20,18 @@
    while(PyDict_Next(submodules, &pos, &key, &value))
    {
      // Check if current module already has module with this name
+Index: boson-0.13/boson/gameengine/script/pythonscript.h
+===================================================================
+--- boson-0.13.orig/boson/gameengine/script/pythonscript.h	2008-03-17 23:24:11.000000000 +0100
++++ boson-0.13/boson/gameengine/script/pythonscript.h	2008-03-17 23:24:49.000000000 +0100
+@@ -29,6 +29,10 @@
+ struct PyMethodDef;
+ typedef struct _ts PyThreadState;
+ 
++/* Python < 2.5 compat */
++#if PY_VERSION_HEX < 0x02050000
++typedef int Py_ssize_t;
++#endif
+ 
+ class PythonScript : public BosonScript
+ {




More information about the Pkg-games-commits mailing list