pyyaml FTBFS on the s390x buildd. It seems this is due to using int
where the libyaml API uses size_t. I tested the attached patch in
zelenka.d.o's sid chroot, and at least the python2 build/test worked (it
failed with the same error as the buildd pre-patching).
Patch by Julien Cristau <jcristau@debian.org>
Add to the pyyaml package by Scott Kitterman <scott@kitterman.com>
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676536
|
old
|
new
|
|
| 86 | 86 | YAML_MAPPING_END_EVENT |
| 87 | 87 | |
| 88 | 88 | ctypedef int yaml_read_handler_t(void *data, char *buffer, |
| 89 | | int size, int *size_read) except 0 |
| | 89 | size_t size, size_t *size_read) except 0 |
| 90 | 90 | |
| 91 | 91 | ctypedef int yaml_write_handler_t(void *data, char *buffer, |
| 92 | | int size) except 0 |
| | 92 | size_t size) except 0 |
| 93 | 93 | |
| 94 | 94 | ctypedef struct yaml_mark_t: |
| 95 | | int index |
| 96 | | int line |
| 97 | | int column |
| | 95 | size_t index |
| | 96 | size_t line |
| | 97 | size_t column |
| 98 | 98 | ctypedef struct yaml_version_directive_t: |
| 99 | 99 | int major |
| 100 | 100 | int minor |
| … |
… |
|
| 113 | 113 | char *suffix |
| 114 | 114 | ctypedef struct _yaml_token_scalar_data_t: |
| 115 | 115 | char *value |
| 116 | | int length |
| | 116 | size_t length |
| 117 | 117 | yaml_scalar_style_t style |
| 118 | 118 | ctypedef struct _yaml_token_version_directive_data_t: |
| 119 | 119 | int major |
| … |
… |
|
| 152 | 152 | char *anchor |
| 153 | 153 | char *tag |
| 154 | 154 | char *value |
| 155 | | int length |
| | 155 | size_t length |
| 156 | 156 | int plain_implicit |
| 157 | 157 | int quoted_implicit |
| 158 | 158 | yaml_scalar_style_t style |