Bug#812695: pygame-sdl2: FTBFS: format not a string literal and no format arguments
Markus Koschany
apo at debian.org
Wed Jan 27 12:09:24 UTC 2016
Control: severity -1 normal
Am 27.01.2016 um 11:13 schrieb Gianfranco Costamagna:
> control: reopen -1
> control: tags -1 patch
>
> Hi, please revert the change, and sorry for breaking the API in the
> libsdl2 2.0.4 upload
>
> the correct fix comes from upstream, and it is included in the
> following three commits
> https://github.com/renpy/pygame_sdl2/commit/10b13b65173207d274ffa9570ec7
> 7a1aed6bc7e8
> https://github.com/renpy/pygame_sdl2/commit/5605247b8b2c704238508a13bfc3
> 3b3e62dba852
> https://github.com/renpy/pygame_sdl2/commit/c50dd46eb332c572349b02241014
> 911d5f23004c
>
> or to sum them in a single patch file
>
> --- pygame-sdl2-6.99.8.orig/src/pygame_sdl2/error.pyx
> +++ pygame-sdl2-6.99.8/src/pygame_sdl2/error.pyx
> @@ -36,4 +36,4 @@ def get_error():
>
> def set_error(message):
> message = bytes(message)
> - SDL_SetError(message)
> + SDL_SetError("%s", <char *>message)
> --- pygame-sdl2-6.99.8.orig/src/pygame_sdl2/rwobject.pyx
> +++ pygame-sdl2-6.99.8/src/pygame_sdl2/rwobject.pyx
> @@ -53,7 +53,7 @@ cdef set_error(e):
> cdef char *msg
> e = str(e)
> msg = <char *> e
> - SDL_SetError(e)
> + SDL_SetError("%s", msg)
>
> cdef Sint64 python_size(SDL_RWops *context) with gil:
> f = <object> context.hidden.unknown.data1
>
>
> sorry again for the break of your package!
>
Thanks for the patch. I will apply it with the next upload.
Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20160127/c0014377/attachment.sig>
More information about the Pkg-games-devel
mailing list