SDL2 2.0.4 is out!

Felix Geyer fgeyer at debian.org
Mon Jan 11 12:33:12 UTC 2016


Hi,

On 2016-01-11 13:05, Gianfranco Costamagna wrote:
> Hi Felix,
> 
> [...]
> 
> # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
> set(SDL_MAJOR_VERSION 2)
> set(SDL_MINOR_VERSION 0)
> -set(SDL_MICRO_VERSION 2)
> +set(SDL_MICRO_VERSION 4)
> set(SDL_INTERFACE_AGE 0)
> -set(SDL_BINARY_AGE 2)
> +set(SDL_BINARY_AGE 4)
> set(SDL_VERSION
> "${SDL_MAJOR_VERSION}.${SDL_MINOR_VERSION}.${SDL_MICRO_VERSION}")
> 
> 
> this is the patch when the new upstream has been imported.
> 
> they bumped the ABI and API AFAICS

Please read the comment above that code in configure.in.
It means that SDL 2.0.0 is ABI compatible with 2.0.4 but new interfaces 
have been introduced in 2.0.4.

> what about the link?
> dh_link -plibsdl2-dev
> usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so.0.4.0
> usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so

Ah right, we should automate that.

> I see they changed prototypes, e.g.
> -extern DECLSPEC int SDLCALL SDL_SetError(const char *fmt, ...);
> +extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING
> const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
> 
> and something added to structs.
> 
> Are them API compatible changes? I think/guess not, right?

It highly depends on the details.
What do those macros expand to?
Changing the size of a struct that's exposed would certainly be not ABI 
compatible.

Felix



More information about the Pkg-sdl-maintainers mailing list