Bug#543731: perl_5.10.1~rc2-1(hppa/experimental): FTBFS: Test lib/autodie/t/flock fails

Niko Tyni ntyni at debian.org
Sun Aug 30 19:07:12 UTC 2009


tag 543731 patch
thanks

On Thu, Aug 27, 2009 at 05:39:34PM +1000, Paul Fenwick wrote:
> Niko Tyni wrote:
> 
> > 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
> 
> > 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.
> 
> Drat.  EAGAIN actually makes me feel funny, because I've always interpreted
> it to mean "I got distracted there, please try that again".  However in this
> case, we *don't* want to try again, because we'll spin the CPU trying to get
> a lock in non-blocking mode.
> 
> So ideally I'd only want to check for EAGAIN on hppa architectures.  That
> should be easy enough for me to detect at compile-time, however I don't have
> a PA-RISC box handy to see how they identify themselves.

The attached patch fixes the autodie 2.06_01 test suite for me on
hppa without breaking it on amd64 :) Hope you can use it at least as a
starting point.

(dropped p5p for now)

Cheers,
-- 
Niko Tyni   ntyni at debian.org


More information about the Perl-maintainers mailing list