Bug#444634: libwww-mechanize-shell-perl: build times out
Niko Tyni
ntyni at iki.fi
Mon Oct 1 20:49:23 UTC 2007
tag 444634 patch
forwarded 444634 http://rt.cpan.org/Public/Bug/Display.html?id=29455
thanks
On Mon, Oct 01, 2007 at 09:08:21AM +0200, Lucas Nussbaum wrote:
> On 30/09/07 at 22:26 +0300, Niko Tyni wrote:
> > > Useless content call in void context at /usr/share/perl5/LWP/Simple.pm line 150
> > I don't see these either. I wonder if it's related.
It indeed is. The problem is $ENV{http_proxy}. The test scripts
set up a local web server and then connect to it via the 'external'
address of the host. Almost all of the test scripts delete http_proxy
from the environment, with the exception of t/24-source-file.t.
If http_proxy is set and the test web server isn't reachable by the
proxy, t/24-source-file.t can't send 'GET /quit_server' to the server
and the server never exits, while the test script hangs waiting
for the child to terminate.
This is also CPAN #29455. I just sent the comments there as well.
The 'Useless content call' messages come from the same code path (ie. when
http_proxy is set) and happen because Test::HTTP::LocalServer::stop()
calls LWP::Simple::get() in a void context. Checking the result would
be a good idea, and I have suggested it upstream.
The simplest fix is to unset http_proxy and HTTP_PROXY in debian/rules
when calling the 'test' target. Patch attached.
Cheers,
--
Niko Tyni ntyni at iki.fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 444634.patch
Type: text/x-diff
Size: 314 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20071001/4ddc967b/attachment.patch
More information about the pkg-perl-maintainers
mailing list