OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

383 lines
11 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../kdebindings/kdebindings-3.5.6-build-against-python-before-2.5.patch.disable
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Index: python/pykde/sip/kio/global.sip
  17. ===================================================================
  18. --- ./python/pykde/sip/kio/global.sip (Revision 626831)
  19. +++ ./python/pykde/sip/kio/global.sip (Revision 626832)
  20. @@ -675,7 +675,7 @@
  21. QMap<QString,QString> *cppmap = new QMap<QString,QString>;
  22. PyObject *aelem, *belem;
  23. - ssize_t pos = 0;
  24. + _SIP_SSIZE_T pos = 0;
  25. QString *acpp;
  26. QString *bcpp;
  27. Index: python/pykde/sip/kio/authinfo.sip
  28. ===================================================================
  29. --- ./python/pykde/sip/kio/authinfo.sip (Revision 626831)
  30. +++ ./python/pykde/sip/kio/authinfo.sip (Revision 626832)
  31. @@ -176,7 +176,7 @@
  32. QMap<QString, QStringList> *map = new QMap<QString, QStringList>;
  33. PyObject *key, *value;
  34. - ssize_t pos = 0;
  35. + _SIP_SSIZE_T pos = 0;
  36. QString *sKey;
  37. QStringList *sData;
  38. Index: python/pykde/sip/kio/kservicetype.sip
  39. ===================================================================
  40. --- ./python/pykde/sip/kio/kservicetype.sip (Revision 626831)
  41. +++ ./python/pykde/sip/kio/kservicetype.sip (Revision 626832)
  42. @@ -184,7 +184,7 @@
  43. QMap<QString,QVariant::Type> *cppmap = new QMap<QString,QVariant::Type>;
  44. PyObject *aelem, *belem;
  45. - ssize_t pos = 0;
  46. + _SIP_SSIZE_T pos = 0;
  47. QString *acpp;
  48. QVariant::Type bcpp;
  49. Index: python/pykde/sip/kmdi/kmdichildfrm.sip
  50. ===================================================================
  51. --- ./python/pykde/sip/kmdi/kmdichildfrm.sip (Revision 626831)
  52. +++ ./python/pykde/sip/kmdi/kmdichildfrm.sip (Revision 626832)
  53. @@ -245,7 +245,7 @@
  54. QDict<QWidget::FocusPolicy>* qdict = new QDict<QWidget::FocusPolicy>;
  55. PyObject *key, *value;
  56. - ssize_t pos = 0;
  57. + _SIP_SSIZE_T pos = 0;
  58. QString *a0;
  59. QWidget::FocusPolicy a1;
  60. Index: python/pykde/sip/kdeui/kkeydialog.sip
  61. ===================================================================
  62. --- ./python/pykde/sip/kdeui/kkeydialog.sip (Revision 626831)
  63. +++ ./python/pykde/sip/kdeui/kkeydialog.sip (Revision 626832)
  64. @@ -231,7 +231,7 @@
  65. QDict<int>* qdict = new QDict<int>;
  66. PyObject *key, *value;
  67. - ssize_t pos = 0;
  68. + _SIP_SSIZE_T pos = 0;
  69. QString *a0;
  70. int a1;
  71. Index: python/pykde/sip/kparts/browserextension.sip
  72. ===================================================================
  73. --- ./python/pykde/sip/kparts/browserextension.sip (Revision 626831)
  74. +++ ./python/pykde/sip/kparts/browserextension.sip (Revision 626832)
  75. @@ -404,7 +404,7 @@
  76. QMap<QCString,QCString> *cppmap = new QMap<QCString,QCString>;
  77. PyObject *aelem, *belem;
  78. - ssize_t pos = 0;
  79. + _SIP_SSIZE_T pos = 0;
  80. QCString *acpp;
  81. QCString *bcpp;
  82. @@ -487,7 +487,7 @@
  83. QMap<QCString,int> *cppmap = new QMap<QCString,int>;
  84. PyObject *aelem, *belem;
  85. - ssize_t pos = 0;
  86. + _SIP_SSIZE_T pos = 0;
  87. QCString *acpp;
  88. int bcpp;
  89. Index: python/pykde/sip/kdecore/bytearray.sip
  90. ===================================================================
  91. --- ./python/pykde/sip/kdecore/bytearray.sip (Revision 626831)
  92. +++ ./python/pykde/sip/kdecore/bytearray.sip (Revision 626832)
  93. @@ -620,7 +620,7 @@
  94. QMap<QCString,DCOPRef> *cppmap = new QMap<QCString,DCOPRef>;
  95. PyObject *aelem, *belem;
  96. - ssize_t pos = 0;
  97. + _SIP_SSIZE_T pos = 0;
  98. QCString *acpp;
  99. DCOPRef *bcpp;
  100. @@ -705,7 +705,7 @@
  101. QMap<QString,DCOPRef> *cppmap = new QMap<QString,DCOPRef>;
  102. PyObject *aelem, *belem;
  103. - ssize_t pos = 0;
  104. + _SIP_SSIZE_T pos = 0;
  105. QString *acpp;
  106. DCOPRef *bcpp;
  107. Index: python/pykde/sip/kdecore/kconfigdata.sip
  108. ===================================================================
  109. --- ./python/pykde/sip/kdecore/kconfigdata.sip (Revision 626831)
  110. +++ ./python/pykde/sip/kdecore/kconfigdata.sip (Revision 626832)
  111. @@ -141,7 +141,7 @@
  112. QMap<KEntryKey,KEntry> *cppmap = new QMap<KEntryKey,KEntry>;
  113. PyObject *aelem, *belem;
  114. - ssize_t pos = 0;
  115. + _SIP_SSIZE_T pos = 0;
  116. KEntryKey *acpp;
  117. KEntry *bcpp;
  118. Index: python/pykde/sip/kdecore/kaccel.sip
  119. ===================================================================
  120. --- ./python/pykde/sip/kdecore/kaccel.sip (Revision 626831)
  121. +++ ./python/pykde/sip/kdecore/kaccel.sip (Revision 626832)
  122. @@ -209,7 +209,7 @@
  123. QMap<int,QString> *map = new QMap<int,QString>;
  124. PyObject *key, *value;
  125. - ssize_t pos = 0;
  126. + _SIP_SSIZE_T pos = 0;
  127. int iKey;
  128. QString *sData;
  129. Index: python/pykde/sip/kdecore/kcompletion.sip
  130. ===================================================================
  131. --- ./python/pykde/sip/kdecore/kcompletion.sip (Revision 626831)
  132. +++ ./python/pykde/sip/kdecore/kcompletion.sip (Revision 626832)
  133. @@ -201,7 +201,7 @@
  134. QMap<KCompletionBase::KeyBindingType,KShortcut> *kbmap = new QMap<KCompletionBase::KeyBindingType,KShortcut>;
  135. PyObject *key, *value;
  136. - ssize_t pos = 0;
  137. + _SIP_SSIZE_T pos = 0;
  138. KShortcut *cValue;
  139. int iserr;
  140. Index: python/pykde/sip/kdecore/kmacroexpander.sip
  141. ===================================================================
  142. --- ./python/pykde/sip/kdecore/kmacroexpander.sip (Revision 626831)
  143. +++ ./python/pykde/sip/kdecore/kmacroexpander.sip (Revision 626832)
  144. @@ -169,7 +169,7 @@
  145. QMap<QChar,QString> *map = new QMap<QChar,QString>;
  146. PyObject *key, *value;
  147. - ssize_t pos = 0;
  148. + _SIP_SSIZE_T pos = 0;
  149. QChar *cKey;
  150. QString *sData;
  151. @@ -255,7 +255,7 @@
  152. QMap<QString, QStringList> *map = new QMap<QString, QStringList>;
  153. PyObject *key, *value;
  154. - ssize_t pos = 0;
  155. + _SIP_SSIZE_T pos = 0;
  156. QString *sKey;
  157. QStringList *slData;
  158. @@ -343,7 +343,7 @@
  159. QMap<QChar,QStringList> *map = new QMap<QChar,QStringList>;
  160. PyObject *key, *value;
  161. - ssize_t pos = 0;
  162. + _SIP_SSIZE_T pos = 0;
  163. QChar *cKey;
  164. QStringList *slData;
  165. Index: python/pykde/sip/kdecore/kurl.sip
  166. ===================================================================
  167. --- ./python/pykde/sip/kdecore/kurl.sip (Revision 626831)
  168. +++ ./python/pykde/sip/kdecore/kurl.sip (Revision 626832)
  169. @@ -234,7 +234,7 @@
  170. void __setitem__ (int, const KURL&);
  171. %MethodCode
  172. //takes index | (int) | value | (KURL)
  173. - ssize_t len;
  174. + _SIP_SSIZE_T len;
  175. len = sipCpp -> count();
  176. @@ -248,7 +248,7 @@
  177. %MethodCode
  178. //takes range | (a Python slice) | urlList | (KURL.List)
  179. - ssize_t len, start, stop, step, slicelength;
  180. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  181. len = sipCpp -> count();
  182. @@ -278,7 +278,7 @@
  183. void __delitem__ (int);
  184. %MethodCode
  185. //takes index | (int)
  186. - ssize_t len;
  187. + _SIP_SSIZE_T len;
  188. len = sipCpp -> count();
  189. @@ -291,7 +291,7 @@
  190. void __delitem__ (SIP_PYSLICE);
  191. %MethodCode
  192. //takes range | (a Python slice)
  193. - ssize_t len, start, stop, step, slicelength;
  194. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  195. len = sipCpp -> count();
  196. if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0)
  197. @@ -308,7 +308,7 @@
  198. %MethodCode
  199. //returns (KURL)
  200. //takes index | (int)
  201. - ssize_t len;
  202. + _SIP_SSIZE_T len;
  203. len = sipCpp -> count();
  204. @@ -322,7 +322,7 @@
  205. %MethodCode
  206. //returns (KURL.List)
  207. //takes range | (a Python slice)
  208. - ssize_t len, start, stop, step, slicelength;
  209. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  210. len = sipCpp -> count();
  211. Index: python/pykde/sip/kdecore/kconfig.sip
  212. ===================================================================
  213. --- ./python/pykde/sip/kdecore/kconfig.sip (Revision 626831)
  214. +++ ./python/pykde/sip/kdecore/kconfig.sip (Revision 626832)
  215. @@ -158,7 +158,7 @@
  216. QMap<QString,QString> *cppmap = new QMap<QString,QString>;
  217. PyObject *aelem, *belem;
  218. - ssize_t pos = 0;
  219. + _SIP_SSIZE_T pos = 0;
  220. QString *acpp;
  221. QString *bcpp;
  222. Index: python/pyqt/sip/qt/qstring.sip
  223. ===================================================================
  224. --- ./python/pyqt/sip/qt/qstring.sip (Revision 626831)
  225. +++ ./python/pyqt/sip/qt/qstring.sip (Revision 626832)
  226. @@ -746,7 +746,7 @@
  227. QString operator[](SIP_PYSLICE) const;
  228. %MethodCode
  229. - ssize_t len, start, stop, step, slicelength;
  230. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  231. len = sipCpp -> length();
  232. Index: python/pyqt/sip/qt/qdir.sip
  233. ===================================================================
  234. --- ./python/pyqt/sip/qt/qdir.sip (Revision 626831)
  235. +++ ./python/pyqt/sip/qt/qdir.sip (Revision 626832)
  236. @@ -238,7 +238,7 @@
  237. QString operator[](int) const;
  238. %MethodCode
  239. - ssize_t len;
  240. + _SIP_SSIZE_T len;
  241. Py_BEGIN_ALLOW_THREADS
  242. len = sipCpp -> count();
  243. @@ -256,7 +256,7 @@
  244. QStringList operator[](SIP_PYSLICE) const;
  245. %MethodCode
  246. - ssize_t len, start, stop, step, slicelength;
  247. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  248. Py_BEGIN_ALLOW_THREADS
  249. len = sipCpp -> count();
  250. Index: python/pyqt/sip/qt/qstringlist.sip
  251. ===================================================================
  252. --- ./python/pyqt/sip/qt/qstringlist.sip (Revision 626831)
  253. +++ ./python/pyqt/sip/qt/qstringlist.sip (Revision 626832)
  254. @@ -99,7 +99,7 @@
  255. void __setitem__(int,const QString &);
  256. %MethodCode
  257. - ssize_t len;
  258. + _SIP_SSIZE_T len;
  259. len = sipCpp -> count();
  260. @@ -111,7 +111,7 @@
  261. void __setitem__(SIP_PYSLICE,const QStringList &);
  262. %MethodCode
  263. - ssize_t len, start, stop, step, slicelength;
  264. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  265. len = sipCpp -> count();
  266. @@ -142,7 +142,7 @@
  267. void __delitem__(int);
  268. %MethodCode
  269. - ssize_t len;
  270. + _SIP_SSIZE_T len;
  271. len = sipCpp -> count();
  272. @@ -154,7 +154,7 @@
  273. void __delitem__(SIP_PYSLICE);
  274. %MethodCode
  275. - ssize_t len, start, stop, step, slicelength;
  276. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  277. len = sipCpp -> count();
  278. @@ -170,7 +170,7 @@
  279. QString operator[](int);
  280. %MethodCode
  281. - ssize_t len;
  282. + _SIP_SSIZE_T len;
  283. len = sipCpp -> count();
  284. @@ -182,7 +182,7 @@
  285. QStringList operator[](SIP_PYSLICE);
  286. %MethodCode
  287. - ssize_t len, start, stop, step, slicelength;
  288. + _SIP_SSIZE_T len, start, stop, step, slicelength;
  289. len = sipCpp -> count();
  290. Index: dcoppython/shell/marshaller.cpp
  291. ===================================================================
  292. --- ./dcoppython/shell/marshaller.cpp (Revision 626831)
  293. +++ ./dcoppython/shell/marshaller.cpp (Revision 626832)
  294. @@ -24,6 +24,10 @@
  295. #include <kurl.h>
  296. +#if PY_VERSION_HEX < 0x02050000
  297. +typedef int Py_ssize_t;
  298. +#endif
  299. +
  300. namespace PythonDCOP {
  301. #include "marshal_funcs.h"
  302. @@ -124,7 +128,7 @@
  303. if (!PyDict_Check(obj)) return false;
  304. - ssize_t c=0;
  305. + Py_ssize_t c=0;
  306. PyObject *key, *val;
  307. while (PyDict_Next(obj, &c, &key, &val)==1)
  308. if (!key_type.isMarshallable(key) ||