| 1 |
Fromscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/patches/`i386.patch`#From.: Alexandre Detiste <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Subjectscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/patches/`i386.patch`#Subject.: fix FTBFS on i386 and most likely other arches |
| 3 |
Forwardedscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/patches/`i386.patch`#Forwarded.: https://github.com/noirello/bonsai/pull/91 |
| 4 |
|
| 5 |
--- a/src/_bonsai/utils.cscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/upstream/`src/_bonsai/utils.c`: |
| 6 |
+++ b/src/_bonsai/utils.cscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/upstream/`src/_bonsai/utils.c`: |
| 7 |
@@ -91,7 +91,7 @@ |
| 8 |
TRUE or FALSE C strings. |
| 9 |
*/ |
| 10 |
int |
| 11 |
|
| 12 |
+PyObject2char_withlength(PyObject *obj, char **output, Py_ssize_t *len) { |
| 13 |
int rc = 0; |
| 14 |
long int size = 0; |
| 15 |
char *tmp = NULL; |
| 16 |
@@ -162,7 +162,7 @@ |
| 17 |
struct berval ** |
| 18 |
PyList2BervalList(PyObject *list) { |
| 19 |
int i = 0, rc = 0; |
| 20 |
|
| 21 |
+ Py_ssize_t len = 0; |
| 22 |
char *strvalue; |
| 23 |
struct berval **berval_arr = NULL; |
| 24 |
PyObject *iter; |
| 25 |
--- a/src/_bonsai/utils.hscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/upstream/`src/_bonsai/utils.h`: |
| 26 |
+++ b/src/_bonsai/utils.hscip-debian debian python-bonsai 1.5.3+ds-1 python-bonsai/upstream/`src/_bonsai/utils.h`: |
| 27 |
@@ -33,7 +33,7 @@ |
| 28 |
char *lowercase(char *str); |
| 29 |
struct berval *create_berval(char *value, long int len); |
| 30 |
PyObject *berval2PyObject(struct berval *bval, int keepbytes); |
| 31 |
|
| 32 |
+int PyObject2char_withlength(PyObject *obj, char **output, Py_ssize_t *len); |
| 33 |
char *PyObject2char(PyObject *obj); |
| 34 |
struct berval **PyList2BervalList(PyObject *list); |
| 35 |
char **PyList2StringList(PyObject *list); |