1 |
markusle 07/09/20 21:44:51 |
2 |
|
3 |
Added: vmd-1.8.6-python-2.5.patch |
4 |
Log: |
5 |
Added patch to fix python-2.5 compile issues on amd64 (fixes bug #192902). |
6 |
(Portage version: 2.1.3.9) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sci-chemistry/vmd/files/vmd-1.8.6-python-2.5.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/vmd/files/vmd-1.8.6-python-2.5.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/vmd/files/vmd-1.8.6-python-2.5.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: vmd-1.8.6-python-2.5.patch |
15 |
=================================================================== |
16 |
--- vmd-1.8.6/src/py_atomsel.C 2007-04-08 07:04:03.000000000 +0200 |
17 |
+++ vmd-1.8.6.new/src/py_atomsel.C 2007-09-20 19:30:41.000000000 +0200 |
18 |
@@ -25,6 +25,10 @@ |
19 |
#include "py_commands.h" |
20 |
#include "BondSearch.h" |
21 |
|
22 |
+#if PY_VERSION_HEX < ((2<<24)|(5<<16)) |
23 |
+typedef int Py_ssize_t; |
24 |
+#endif |
25 |
+ |
26 |
typedef struct { |
27 |
PyObject_HEAD |
28 |
AtomSel *atomSel; |
29 |
@@ -915,9 +919,11 @@ |
30 |
* Support for mapping protocol |
31 |
*/ |
32 |
|
33 |
-static int |
34 |
-atomselection_length( PyAtomSelObject *a ) { |
35 |
- return a->atomSel->selected; |
36 |
+ |
37 |
+static Py_ssize_t |
38 |
+atomselection_length(PyObject *a) |
39 |
+{ |
40 |
+ return ((PyAtomSelObject *)a)->atomSel->selected; |
41 |
} |
42 |
|
43 |
// for integer argument, return True or False if index in in selection |
44 |
@@ -935,7 +941,7 @@ |
45 |
} |
46 |
|
47 |
static PyMappingMethods atomsel_mapping = { |
48 |
- (inquiry)atomselection_length, |
49 |
+ atomselection_length, |
50 |
(binaryfunc)atomselection_subscript, |
51 |
0 |
52 |
}; |
53 |
|
54 |
|
55 |
|
56 |
-- |
57 |
gentoo-commits@g.o mailing list |