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.

221 lines
6.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../rpm/python24.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE 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. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -Nur rpm-4.1.orig/lib/rpmts.h rpm-4.1/lib/rpmts.h
  17. --- rpm-4.1.orig/lib/rpmts.h 2002-08-23 21:35:49.000000000 +0200
  18. +++ rpm-4.1/lib/rpmts.h 2005-10-09 14:40:22.000000000 +0300
  19. @@ -10,7 +10,7 @@
  20. /*@-exportlocal@*/
  21. /*@unchecked@*/
  22. -extern int _rpmts_debug;
  23. +/*extern int _rpmts_debug;
  24. /*@unchecked@*/
  25. extern int _fps_debug;
  26. /*@=exportlocal@*/
  27. diff -Nur rpm-4.1.orig/python/header-py.c rpm-4.1/python/header-py.c
  28. --- rpm-4.1.orig/python/header-py.c 2002-08-08 01:19:10.000000000 +0200
  29. +++ rpm-4.1/python/header-py.c 2005-10-09 13:33:35.000000000 +0300
  30. @@ -2,9 +2,10 @@
  31. * \file python/header-py.c
  32. */
  33. -#include "system.h"
  34. -
  35. #include "Python.h"
  36. +
  37. +#undef _POSIX_C_SOURCE
  38. +#include "system.h"
  39. #ifdef __LCLINT__
  40. #undef PyObject_HEAD
  41. #define PyObject_HEAD int _PyObjectHead;
  42. @@ -429,7 +430,7 @@
  43. while (extensions->name) {
  44. if (extensions->type == HEADER_EXT_TAG
  45. && !xstrcasecmp(extensions->name + 7, str)) {
  46. - (const struct headerSprintfExtension *) ext = extensions;
  47. + ext = extensions;
  48. }
  49. extensions++;
  50. }
  51. diff -Nur rpm-4.1.orig/python/rpmal-py.c rpm-4.1/python/rpmal-py.c
  52. --- rpm-4.1.orig/python/rpmal-py.c 2002-07-14 23:24:28.000000000 +0200
  53. +++ rpm-4.1/python/rpmal-py.c 2005-10-09 12:38:39.000000000 +0300
  54. @@ -2,9 +2,10 @@
  55. * \file python/rpmal-py.c
  56. */
  57. -#include "system.h"
  58. -
  59. #include "Python.h"
  60. +#undef _POSIX_C_SOURCE
  61. +
  62. +#include "system.h"
  63. #ifdef __LCLINT__
  64. #undef PyObject_HEAD
  65. #define PyObject_HEAD int _PyObjectHead;
  66. diff -Nur rpm-4.1.orig/python/rpmdb-py.c rpm-4.1/python/rpmdb-py.c
  67. --- rpm-4.1.orig/python/rpmdb-py.c 2002-07-25 19:03:12.000000000 +0200
  68. +++ rpm-4.1/python/rpmdb-py.c 2005-10-09 13:49:23.000000000 +0300
  69. @@ -2,9 +2,10 @@
  70. * \file python/rpmdb-py.c
  71. */
  72. -#include "system.h"
  73. -
  74. #include "Python.h"
  75. +#undef _POSIX_C_SOURCE
  76. +
  77. +#include "system.h"
  78. #ifdef __LCLINT__
  79. #undef PyObject_HEAD
  80. #define PyObject_HEAD int _PyObjectHead;
  81. diff -Nur rpm-4.1.orig/python/rpmds-py.c rpm-4.1/python/rpmds-py.c
  82. --- rpm-4.1.orig/python/rpmds-py.c 2002-07-19 22:26:39.000000000 +0200
  83. +++ rpm-4.1/python/rpmds-py.c 2005-10-09 13:49:52.000000000 +0300
  84. @@ -2,9 +2,10 @@
  85. * \file python/rpmds-py.c
  86. */
  87. -#include "system.h"
  88. -
  89. #include "Python.h"
  90. +#undef _POSIX_C_SOURCE
  91. +
  92. +#include "system.h"
  93. #ifdef __LCLINT__
  94. #undef PyObject_HEAD
  95. #define PyObject_HEAD int _PyObjectHead;
  96. diff -Nur rpm-4.1.orig/python/rpmfd-py.c rpm-4.1/python/rpmfd-py.c
  97. --- rpm-4.1.orig/python/rpmfd-py.c 2002-07-14 23:24:28.000000000 +0200
  98. +++ rpm-4.1/python/rpmfd-py.c 2005-10-09 13:50:21.000000000 +0300
  99. @@ -2,9 +2,10 @@
  100. * \file python/rpmfd-py.c
  101. */
  102. -#include "system.h"
  103. -
  104. #include "Python.h"
  105. +#undef _POSIX_C_SOURCE
  106. +
  107. +#include "system.h"
  108. #ifdef __LCLINT__
  109. #undef PyObject_HEAD
  110. #define PyObject_HEAD int _PyObjectHead;
  111. diff -Nur rpm-4.1.orig/python/rpmfi-py.c rpm-4.1/python/rpmfi-py.c
  112. --- rpm-4.1.orig/python/rpmfi-py.c 2002-08-19 20:51:24.000000000 +0200
  113. +++ rpm-4.1/python/rpmfi-py.c 2005-10-09 13:50:44.000000000 +0300
  114. @@ -2,9 +2,10 @@
  115. * \file python/rpmfi-py.c
  116. */
  117. -#include "system.h"
  118. -
  119. #include "Python.h"
  120. +#undef _POSIX_C_SOURCE
  121. +
  122. +#include "system.h"
  123. #ifdef __LCLINT__
  124. #undef PyObject_HEAD
  125. #define PyObject_HEAD int _PyObjectHead;
  126. diff -Nur rpm-4.1.orig/python/rpmmi-py.c rpm-4.1/python/rpmmi-py.c
  127. --- rpm-4.1.orig/python/rpmmi-py.c 2002-08-10 01:14:10.000000000 +0200
  128. +++ rpm-4.1/python/rpmmi-py.c 2005-10-09 13:51:07.000000000 +0300
  129. @@ -2,9 +2,10 @@
  130. * \file python/rpmmi-py.c
  131. */
  132. -#include "system.h"
  133. -
  134. #include "Python.h"
  135. +#undef _POSIX_C_SOURCE
  136. +
  137. +#include "system.h"
  138. #ifdef __LCLINT__
  139. #undef PyObject_HEAD
  140. #define PyObject_HEAD int _PyObjectHead;
  141. diff -Nur rpm-4.1.orig/python/rpmmodule.c rpm-4.1/python/rpmmodule.c
  142. --- rpm-4.1.orig/python/rpmmodule.c 2002-08-13 18:37:52.000000000 +0200
  143. +++ rpm-4.1/python/rpmmodule.c 2005-10-09 13:21:01.000000000 +0300
  144. @@ -2,9 +2,10 @@
  145. * \file python/rpmmodule.c
  146. */
  147. -#include "system.h"
  148. -
  149. #include "Python.h"
  150. +#undef _POSIX_C_SOURCE
  151. +
  152. +#include "system.h"
  153. #ifdef __LCLINT__
  154. #undef PyObject_HEAD
  155. #define PyObject_HEAD int _PyObjectHead;
  156. @@ -422,7 +423,7 @@
  157. while (extensions->name) {
  158. if (extensions->type == HEADER_EXT_TAG) {
  159. - (const struct headerSprintfExtension *) ext = extensions;
  160. + ext = extensions;
  161. PyDict_SetItemString(d, (char *) extensions->name, o=PyCObject_FromVoidPtr(ext, NULL));
  162. Py_DECREF(o);
  163. PyDict_SetItem(dict, tag, o=PyString_FromString(ext->name + 7));
  164. diff -Nur rpm-4.1.orig/python/rpmrc-py.c rpm-4.1/python/rpmrc-py.c
  165. --- rpm-4.1.orig/python/rpmrc-py.c 2002-08-05 23:46:52.000000000 +0200
  166. +++ rpm-4.1/python/rpmrc-py.c 2005-10-09 13:41:44.000000000 +0300
  167. @@ -2,9 +2,10 @@
  168. * \file python/rpmrc-py.c
  169. */
  170. -#include "system.h"
  171. -
  172. #include "Python.h"
  173. +#undef _POSIX_C_SOURCE
  174. +
  175. +#include "system.h"
  176. #ifdef __LCLINT__
  177. #undef PyObject_HEAD
  178. #define PyObject_HEAD int _PyObjectHead;
  179. diff -Nur rpm-4.1.orig/python/rpmte-py.c rpm-4.1/python/rpmte-py.c
  180. --- rpm-4.1.orig/python/rpmte-py.c 2002-07-14 23:24:29.000000000 +0200
  181. +++ rpm-4.1/python/rpmte-py.c 2005-10-09 13:48:27.000000000 +0300
  182. @@ -2,9 +2,10 @@
  183. * \file python/rpmte-py.c
  184. */
  185. -#include "system.h"
  186. -
  187. #include "Python.h"
  188. +#undef _POSIX_C_SOURCE
  189. +
  190. +#include "system.h"
  191. #ifdef __LCLINT__
  192. #undef PyObject_HEAD
  193. #define PyObject_HEAD int _PyObjectHead;
  194. diff -Nur rpm-4.1.orig/python/rpmts-py.c rpm-4.1/python/rpmts-py.c
  195. --- rpm-4.1.orig/python/rpmts-py.c 2002-09-03 14:26:09.000000000 +0200
  196. +++ rpm-4.1/python/rpmts-py.c 2005-10-09 14:39:57.000000000 +0300
  197. @@ -2,9 +2,10 @@
  198. * \file python/rpmts-py.c
  199. */
  200. -#include "system.h"
  201. -
  202. #include "Python.h"
  203. +#undef _POSIX_C_SOURCE
  204. +
  205. +#include "system.h"
  206. #ifdef __LCLINT__
  207. #undef PyObject_HEAD
  208. #define PyObject_HEAD int _PyObjectHead;