Debian Patches

Status for libsdl-perl/2.548-5

Patch Description Author Forwarded Bugs Origin Last update
fix-runaway-test Fix runaway test Test case requires the creation of an event. This creation require the specification of an event type. Otherwise the event may not fire on some arch like ia64 or armhf. If the event does not fire, the test does not end. kthakore no debian upstream
fix-centered-text Fix centered text Centered text was off-center dod invalid
do_not_ship_ttf_font Avoid shipping fonts provided elsewhere no
install_man_pages_correctly Fix build so that man pages do not being with pods:: no
fix_whatis_entries Fix NAME section no
fix_spelling Makes lintian happy no
fix_api_spelling Fix spelling error in API and documentation Spelling errors in API are bad because they confuse users. This patch makes the API accept correct spelling and also accept bad spelling to preserve backward compatibility no
hardcode-default-font Hardcode default font upstream SDL delivers a default font for SDLx::Text. This font is
provided by package fonts-sil-gentium-basic in Debian. This patch
hardcodes the default font path and remove the dependency on
File::ShareDir which is no longer required.
dod no debian
fix-inline-ccflags Description:Fix inline ccflags
When Inline::C, CFLAGS is overridden with the flags provided by
'sdl-config --cflags'. This command does not provide the flags used
to compile Perl. In Debian case, omitting the flags used to compile
Perl will lead to exceution failure when using Inline::C on i386.
.
This patch uses Inline::C CFLAGSEX to extend the original Perl compilation
flags with sdl flags.
.
Thamks to Niko Tyni for the analysis and fix.
Bug:https://github.com/PerlGameDev/SDL_Manual/issues/15
Bug-Debian:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730549
Author:dod
no
reproducible-build Fix reproducible build Replaced relevant occurrence of 'keys %foo' with 'sort keys %foo' in libs used by Build.PL (in inc) dod invalid
perl_5.37.1.patch [PATCH] Adapt to perl 5.37.1
Perl 5.37.1 removed a deprecated sv_nv() macro and SDL fails to build
with Perl 5.38.0:

lib/SDLx/Controller/Interface.xs:60:26: error: implicit declaration of function 'sv_nv'
60 | out->dv_x = sv_nv(temp);
| ^~~~~

Users are advised to use SvNVx() macro instead. SvNVx() seems to have been
available all the time (it predates a commit from 1993-10-07).

This patch does that.

https://github.com/PerlGameDev/SDL/issues/303
=?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> no debian 2023-07-12
PR306.patch [PATCH] Distinguish between owned and borrowed references to a SDL_Surface

In many SDL APIs that return a SDL_Surface *, the surface is considered
to be owned by the caller, and must be freed by the caller.

However, SDL_SetVideoMode and presumably SDL_GetVideoSurface return
a pointer to SDL's internal video surface, which will be freed by SDL
if necessary, and must not be freed by library users.
Incorrectly freeing this surface can lead to a use-after-free crash,
manifesting as a test failure in t/core_video.t.

See also https://github.com/libsdl-org/sdl12-compat/issues/305
Simon McVittie <smcv@debian.org> yes debian upstream https://github.com/PerlGameDev/SDL/pull/306 2023-07-18
implicit-declaration.patch [PATCH] Fix implicit declaration of _calc_offset Ryan Schmidt <git@ryandesign.com> no https://github.com/PerlGameDev/SDL/pull/299 2022-01-26
event-filter-refcount.patch [PATCH] Fix reference-counting in set_event_filter
This previously resulted in the following test failure with Perl 5.38.2
on Debian unstable (https://bugs.debian.org/1064761):

t/core_events.t ................. 1/? Can't use an undefined value as a subroutine reference during global destruction.
t/core_events.t ................. Dubious, test returned 22 (wstat 5632, 0x1600)
All 691 subtests passed
(less 1 skipped subtest: 690 okay)
Colin Watson <cjwatson@debian.org> yes debian 2024-03-28

All known versions for source package 'libsdl-perl'

Links