clone 543731 -1 reassign -1 libautodie-perl 2.06-1 retitle -1 libautodie-perl: FTBFS on hppa: lib/autodie/t/flock fails thanks
On Wed, Aug 26, 2009 at 06:44:55PM +0200, Frank Lichtenheld wrote: > Package: perl > Version: 5.10.1~rc2-1 > Severity: serious > | lib/autodie/t/flock...........................................# Failed > test 'Double-flocking should be EWOULDBLOCK' > | # at ../lib/autodie/t/flock.t line 58. > | # got: '11' > | # expected: '246' > | FAILED at test 2 Thanks for the report. This also happens with the separate libautodie-perl package and Perl 5.10.0 so cloning. ok 1 - Test file locked not ok 2 - Double-flocking should be EWOULDBLOCK # Failed test 'Double-flocking should be EWOULDBLOCK' # at t/flock.t line 58. # got: '11' # expected: '246' ok 3 - flocking a file twice should fail not ok 4 - Non-blocking flock should not fail on EWOULDBLOCK # Failed test 'Non-blocking flock should not fail on EWOULDBLOCK' # at t/flock.t line 60. # got: 'Can't lock filehandle for exclusive access: Resource temporarily unavailable at t/flock.t line 55 # ' # expected: '' 1..4 # Looks like you failed 2 tests of 4. The problem is that errno.h has separate values for EAGAIN (11) and EWOULDBLOCK (246) on hppa and the kernel is returning EAGAIN (contrary to the flock(2) manual page.) Some background for this can be found in http://bugs.debian.org/165881 http://lists.parisc-linux.org/hypermail/parisc-linux/9895.html I suppose that regardless of whether this is ever fixed on the kernel and/or documentation side, t/flock.t and lib/Fatal.pm need to check for both EWOULDBLOCK and EAGAIN for compatibility. Cc'ing the upstream author, Paul Fenwick. Paul: just for clarification, hppa is the Debian name for the PA-RISC Linux port. Let me know if you want me to file an RT ticket too. I'm sorry we didn't find out about this quite in time before the 5.10.1 release... -- Niko Tyni nt...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org