summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-11 18:53:56 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-11 18:53:56 +0000
commit583fa6bf7aff807585da8fac0fe20ff363685abc (patch)
treede11d6cec614a878fe529d408b1166187304e803 /sci-libs/libsvm/files
parentAdd initial support for Jython. (diff)
downloadgentoo-2-583fa6bf7aff807585da8fac0fe20ff363685abc.tar.gz
gentoo-2-583fa6bf7aff807585da8fac0fe20ff363685abc.tar.bz2
gentoo-2-583fa6bf7aff807585da8fac0fe20ff363685abc.zip
Added python3 support, thanks for help Kacper Kowalik
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/libsvm/files')
-rw-r--r--sci-libs/libsvm/files/2.90-python3.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sci-libs/libsvm/files/2.90-python3.patch b/sci-libs/libsvm/files/2.90-python3.patch
new file mode 100644
index 000000000000..764200498ed1
--- /dev/null
+++ b/sci-libs/libsvm/files/2.90-python3.patch
@@ -0,0 +1,13 @@
+diff --git a/python/svmc_wrap.c b/python/svmc_wrap.c
+index 22ea45d..c4282b1 100644
+--- a/python/svmc_wrap.c
++++ b/python/svmc_wrap.c
+@@ -758,7 +758,7 @@ SWIG_Python_str_AsChar(PyObject *str)
+ #if PY_VERSION_HEX >= 0x03000000
+ char *cstr;
+ char *newstr;
+- int len;
++ Py_ssize_t len;
+ str = PyUnicode_AsUTF8String(str);
+ PyBytes_AsStringAndSize(str, &cstr, &len);
+ newstr = (char *) malloc(len+1);