Files
obexftp/obexftp-0.24-move_to_python3.patch
Michael Vetter 0dd49db739 Accepting request 805911 from home:ldreier:branches:filesystems
Fix build for Tumbleweed
- build python bindings for python3 instead of for python2
- patch obexftp-0.24-move_to_python3 - use PyUnicode_FromStringAndSize
  instead of PyString_FromStringAndSize in swig/charmap.i (needed for python3)

OBS-URL: https://build.opensuse.org/request/show/805911
OBS-URL: https://build.opensuse.org/package/show/filesystems/obexftp?expand=0&rev=11
2020-05-16 15:30:15 +00:00

12 lines
497 B
Diff

--- swig/charmap.i 2013-03-05 21:43:50.000000000 +0100
+++ /home/user/charmap.i 2020-05-01 13:23:59.945483980 +0200
@@ -40,7 +40,7 @@
$result = newSVpvn(arg1->buf_data, arg1->buf_size);
argvi++;
#elif defined SWIGPYTHON
- $result = PyString_FromStringAndSize(arg1->buf_data, arg1->buf_size);
+ $result = PyUnicode_FromStringAndSize(arg1->buf_data, arg1->buf_size);
#elif defined SWIGRUBY
$result = arg1->buf_data ? rb_str_new(arg1->buf_data, arg1->buf_size) : Qnil;
#elif defined SWIGTCL