Bug#803269: libsdl-perl: FTBFS on hurd-i386
Svante Signell
svante.signell at gmail.com
Wed Oct 28 13:59:43 UTC 2015
Source: libsdl-perl
Version: 2.546-2
Severity: important
Tags: patch
Usertags: hurd
User: debian-hurd at lists.debian.org
Hello,
Currently libsdl-cdrom FTBFS on GNU/Hurd since the test
SDL::CDROM::num_drives() in t/core_cd.t returns -1. This return value is
expected when the SDL_INIT_CDROM flag is not used for SDL_init(). From
/usr/include/SDL/SDL_cdrom.h:
/**
* Returns the number of CD-ROM drives on the system, or -1 if
* SDL_Init() has not been called with the SDL_INIT_CDROM flag.
*/
Note: This is confusing since the test i t/core_cd.t succeeds:
plan( skip_all => 'Failed to init cdrom' )
unless SDL::TestTool->init(SDL_INIT_CDROM);
Anyway, the attached patch, fix-core_cd-tests, fixes the test when
SDL::CDROM::num_drives() returns a number <= 0.
Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-core_cd-tests
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20151028/50388321/attachment.bin>
More information about the pkg-perl-maintainers
mailing list