Package Details: perl-sdl 2.548-15

Git Clone URL: https://aur.archlinux.org/perl-sdl.git (read-only, click to copy)
Package Base: perl-sdl
Description: Simple DirectMedia Layer for Perl
Upstream URL: https://metacpan.org/dist/SDL
Keywords: perl
Licenses: LGPL
Submitter: arojas
Maintainer: lighterowl
Last Packager: lighterowl
Votes: 5
Popularity: 0.021186
First Submitted: 2022-04-01 18:12 (UTC)
Last Updated: 2025-06-12 19:59 (UTC)

Latest Comments

1 2 Next › Last »

lighterowl commented on 2025-06-12 19:58 (UTC)

Thanks DarkShadow44.

I believe the proper value that the test should be using is 4 indeed and this is probably due to a bugfix in SDL itself but I wasn't able to track down the exact commit. See GitHub PR for more info : https://github.com/PerlGameDev/SDL/pull/310

The issue you're referencing has already been fixed in GitHub so I just added a patch generated from the relevant commit.

DarkShadow44 commented on 2025-06-10 20:56 (UTC)

Fails for compile for me

lib/SDL_perl.c:654:13: error: conflicting types for ‘boot_SDL’; have ‘void(PerlInterpreter *, CV *)’ {aka ‘void(struct interpreter *, struct cv *)’}
  654 | XS_EXTERNAL(boot_SDL); /* prototype to pass -Wmissing-prototypes */

Also got a test failure, but that seems unrelated

t/core_surface.t ................ 1/41 
#   Failed test ' BitsPerPixel'
#   at t/core_surface.t line 54.
#          got: '4'
#     expected: '8'

I had to disable the tests.

Proposing the following fix: https://gist.github.com/DarkShadow44/fd16336557c93b12cbdf771f7f8b5074 Not 100% sure if that's correct, but it works for frozen bubble, so there's that.

lighterowl commented on 2024-10-25 15:07 (UTC)

Hi @MarsSeed , thanks for the kind words, I adopted that package.

MarsSeed commented on 2024-10-25 14:59 (UTC)

Hi @lighterowl,

I have orphaned the companion package, perl-alien-sdl due little free time and winding down my active focus on Arch Linux.

You might wanna take it under your competent ownership. :)

Cheers.

ketmorco commented on 2024-09-10 18:46 (UTC)

Looks like that works, thanks!

lighterowl commented on 2024-09-02 17:54 (UTC)

Thanks, this is now fixed, must be a compiler/makepkg related change as this should've failed much earlier.

Also added a patch from PR 308 to fix a test failure.

MarsSeed commented on 2024-09-02 08:06 (UTC)

I can verify, this is happening on my end too, in clean chroot. I've rebuilt all AUR dependencies (perl-alien-sdl, sdl_pango) before testing this build.

ketmorco commented on 2024-09-01 21:16 (UTC)

Getting an issue with:

lib/SDLx/Surface.xs: In function ‘get_pixel32’: lib/SDLx/Surface.xs:25:25: error: implicit declaration of function ‘_calc_offset’ [-Wimplicit-function-declaration] 25 | void* s = pixels + _calc_offset(surface, x, y); | ^~~~ error building lib/SDLx/Surface.o from 'lib/SDLx/Surface.c' at /usr/share/perl5/core_perl/ExtUtils/CBuilder/Base.pm line 185. ==> ERROR: A failure occurred in build().

lighterowl commented on 2023-08-09 19:17 (UTC)

Thanks.

core_video.t worked for me out of the box so I didn't worry too much about it. I added the diff for the PR you mentioned and it still passes, so at least it's not more broken than before.

MarsSeed commented on 2023-08-09 00:54 (UTC)

It seems this relatively recent, still open PR#306 fixes a bug relating to SDL_Surface * reference ownership, preventing a use-after-free crash manifesting as the reported test failure in t/core_video.t.