Package Details: perl-sdl 2.548-12

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: XAVeRY
Last Packager: XAVeRY
Votes: 3
Popularity: 0.004286
First Submitted: 2022-04-01 18:12 (UTC)
Last Updated: 2023-08-09 19:16 (UTC)

Latest Comments

XAVeRY 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.

MarsSeed commented on 2023-08-08 23:46 (UTC) (edited on 2023-08-09 00:11 (UTC) by MarsSeed)

The core_video.t test still fails (I am on X11, not Wayland):

==> Making package: perl-sdl 2.548-11 (2023-08-09, 01:31:45 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found SDL-2.548.tar.gz
  -> Found github-pr304-dont-use-deprecated-macro.diff
==> Validating source files with sha512sums...
    SDL-2.548.tar.gz ... Passed
    github-pr304-dont-use-deprecated-macro.diff ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting SDL-2.548.tar.gz with bsdtar
==> Starting prepare()...
File src/SDLx/Controller/Interface.xs is read-only; trying to patch anyway
patching file src/SDLx/Controller/Interface.xs
==> Sources are ready.
==> Making package: perl-sdl 2.548-11 (2023-08-09, 01:31:47 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
*************************** !!!WARNING!!! ********************************
This Release breaks back compatibility support with versions 2.4x and below
**************************************************************************
Using 'My::Builder::Unix' class ...
[Alien::SDL] Testing header(s): SDL.hDetecting available libraries ...

[Alien::SDL] Testing header(s): SDL_Pango.h
[Alien::SDL] Testing header(s): SDL_mixer.h
[Alien::SDL] Testing header(s): SDL_image.h
[Alien::SDL] Testing header(s): SDL_framerate.h
[Alien::SDL] Testing header(s): SDL_ttf.h
[Alien::SDL] Testing header(s): SDL_rotozoom.h
[Alien::SDL] Testing header(s): SDL_gfxPrimitives.h
[Alien::SDL] Testing header(s): SDL_gfxBlitFunc.h
[Alien::SDL] Testing header(s): SDL_imageFilter.hWriting config_data ...
Saving some info to 'notes' ...

[Alien::SDL] Testing header(s): execinfo.h, signal.hCreated MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'SDL' version '2.548'

[Alien::SDL] Build option used:
        Already installed SDL ver=1.2.64 path=/usr
Building SDL
cc -Isrc -I/usr/lib/perl5/5.38/core_perl/CORE -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe 
    -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' '-march=x86-64' '-mtune=generic' -O2 
    -pipe -fno-plt -fexceptions '-Wp,-D_FORTIFY_SOURCE=2' -Wformat '-Werror=format-security' -fstack-clash-protection -fcf-protection 
    -g '-ffile-prefix-map=/build/perl/src=/usr/src/debug/perl' '-flto=auto' -o src/support/win32.o src/support/win32.c
cc -Isrc -I/usr/lib/perl5/5.38/core_perl/CORE '-DVERSION="2.548"' '-DXS_VERSION="2.548"' -fPIC -DNOSIGCATCH -O2 
    -I/usr/include/SDL '-D_GNU_SOURCE=1' -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/include -I/usr/local/include 
    -DHAVE_SDL -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong 
    -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' '-march=x86-64' '-mtune=generic' -O2 -pipe -fno-plt -fexceptions 
    '-Wp,-D_FORTIFY_SOURCE=2' -Wformat '-Werror=format-security' -fstack-clash-protection -fcf-protection -g 
    '-ffile-prefix-map=/build/perl/src=/usr/src/debug/perl' '-flto=auto' -o lib/SDL/Audio.o lib/SDL/Audio.c
In file included from /usr/lib/perl5/5.38/core_perl/CORE/perl.h:44,
                 from lib/SDL/Audio.xs:2:
/usr/lib/perl5/5.38/core_perl/CORE/config.h:5262: warning: "USE_THREADS" redefined
 5262 | #define         USE_THREADS             /**/
      | 
<command-line>: note: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/SDL/Audio/Audio.bs')

[...]

==> Starting check()...
[Alien::SDL] Build option used:
        Already installed SDL ver=1.2.64 path=/usr
Building SDL
t/00-load.t ..................... ok
t/colorpm.t ..................... ok
t/config.t ...................... ok
t/core.t ........................ ok
t/core_audio.t .................. ok
t/core_audiospec.t .............. skipped: author tests not required for installation
INFO: This app is looking for CD-ROM drives, but no path was specified
INFO: Set the SDL12COMPAT_FAKE_CDROM_PATH environment variable to a directory
INFO: of MP3 files named trackXX.mp3 where XX is a track number in two digits
INFO: from 01 to 99
t/core_cd.t ..................... ok
t/core_error.t .................. ok
t/core_events.t ................. ok
t/core_joystick.t ............... ok
t/core_mouse.t .................. ok
t/core_multi.t .................. ok
t/core_overlay.t ................ ok
t/core_palette.t ................ ok
t/core_rect.t ................... ok
t/core_rwops.t .................. ok
t/core_surface.t ................ ok
t/core_timer.t .................. ok
t/core_version.t ................ ok
corrupted size vs. prev_size
t/core_video.t .................. 
All 66 subtests passed 
        (2 TODO tests unexpectedly succeeded)
t/core_video_convert_surface.t .. ok
t/core_video_gamma.t ............ ok
t/extendingrect.t ............... ok
t/gfx.t ......................... ok
t/gfx_fpsmanager.t .............. ok
t/gfx_framerate.t ............... ok
t/gfx_imagefilter.t ............. ok
t/gfx_primitives.t .............. ok
t/gfx_primitives2.t ............. ok
t/gfx_rotozoom.t ................ ok
t/image.t ....................... ok
t/image_xpm_array.t ............. ok
t/mixer.t ....................... ok
t/mixer_channels.t .............. ok
t/mixer_effects.t ............... ok
t/mixer_groups.t ................ ok
t/mixer_mixchunk.t .............. ok
t/mixer_mixmusic.t .............. ok
t/mixer_music.t ................. ok
t/mixer_samples.t ............... ok
t/pango.t ....................... ok
t/sdlgamerect.t ................. ok
t/sdlx_app.t .................... ok
t/sdlx_controller.t ............. ok
t/sdlx_controller_interface.t ... ok
t/sdlx_fps.t .................... ok
t/sdlx_layermanager.t ........... ok
t/sdlx_music.t .................. ok
t/sdlx_rect.t ................... ok
t/sdlx_sfont.t .................. ok
t/sdlx_sound.t .................. ok
t/sdlx_sprite.t ................. ok
t/sdlx_sprite_animated.t ........ ok
t/sdlx_surface.t ................ ok
t/sdlx_text.t ................... ok
t/sdlx_validate.t ............... ok
t/smpeg.t ....................... skipped: smpeg support not compiled
t/ttf.t ......................... ok
t/ttf_font.t .................... ok

Test Summary Report
-------------------
t/core.t                      (Wstat: 0 Tests: 28 Failed: 0)
  TODO passed:   21-22, 27
t/core_multi.t                (Wstat: 0 Tests: 4 Failed: 0)
  TODO passed:   3
t/core_timer.t                (Wstat: 0 Tests: 6 Failed: 0)
  TODO passed:   6
t/core_video.t                (Wstat: 134 (Signal: ABRT, dumped core) Tests: 66 Failed: 0)
  TODO passed:   57, 59
  Non-zero wait status: 134
  Parse errors: No plan found in TAP output
t/gfx_imagefilter.t           (Wstat: 0 Tests: 8 Failed: 0)
  TODO passed:   7
Files=59, Tests=3783, 175 wallclock secs ( 0.35 usr  0.09 sys + 74.68 cusr  7.06 csys = 82.18 CPU)
Result: FAIL
Failed 1/59 test programs. 0/3783 subtests failed.
==> ERROR: A failure occurred in check().
    Aborting...

mawe commented on 2023-02-23 21:58 (UTC) (edited on 2023-02-23 22:23 (UTC) by mawe)

It freezes here:

is( SDL::Video::display_YUV_overlay( $overlay, $display_at_rect ),
    0, '[display_YUV_overlay] returns 0 on success'
);

I created a minimal C example with the same function calls, that worked.

The equivalent minimal Perl examples both inside of the test suite and outside using the installed sdl-perl leads to the freeze.

frakka commented on 2022-12-28 00:06 (UTC)

Launching makepkg skipping the "check()" function let compile end successfully:

$ makepkg --nocheck

BlueStreak commented on 2022-11-24 21:08 (UTC)

I'm facing same issue here as previous comment. I keep trying to install SDL manually as well through CPAN but no luck. Gets stuck at last line below.

[Alien::SDL] Build option used: Already installed SDL ver=1.2.16 path=/usr Building SDL t/00-load.t ..................... ok
t/colorpm.t ..................... ok
t/config.t ...................... ok
t/core.t ........................ ok
t/core_audio.t .................. ok
t/core_audiospec.t .............. skipped: author tests not required for installation t/core_cd.t ..................... 1/? INFO: This app is looking for CD-ROM drives, but no path was specified INFO: Set the SDL12COMPAT_FAKE_CDROM_PATH environment variable to a directory INFO: of MP3 files named trackXX.mp3 where XX is a track number in two digits INFO: from 01 to 99 t/core_cd.t ..................... ok
t/core_error.t .................. ok
t/core_events.t ................. ok
t/core_joystick.t ............... ok
t/core_mouse.t .................. ok
t/core_multi.t .................. ok
t/core_overlay.t ................ ok
t/core_palette.t ................ ok
t/core_rect.t ................... ok
t/core_rwops.t .................. ok
t/core_surface.t ................ ok
t/core_timer.t .................. ok
t/core_version.t ................ ok
t/core_video.t .................. 70/?

Riedler commented on 2022-10-15 18:13 (UTC)

test case t/core_video.t seems to freeze. Not sure if this is wayland-related, I've tried the SDL x11 and dummy backends, and while the latter at least gets to subtest 58, the former doesn't go further than wayland (stuck at 1).

skipping the test (deleting the contents of the file) seems to work, but I don't think that's an option for this package. Unfortunately, I have zero experience with perl or SDL, so 🤷‍♂️