Hi,

The regression tests of www/p5-LWP-Protocol-https fail if
net/p5-IO-Socket-IP is installed.

===>  Regression tests for p5-LWP-Protocol-https-6.06p0
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" 
"-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" 
t/*.t
t/apache.t ....... ok
unexpected response: 500 Can't connect to 127.0.0.1:41264
Content-Type: text/plain
Client-Date: Tue, 16 Dec 2014 01:45:08 GMT
Client-Warning: Internal response

Can't connect to 127.0.0.1:41264

Resource temporarily unavailable at 
/usr/local/libdata/perl5/site_perl/LWP/Protocol/http.pm line 49.
# Looks like you planned 56 tests but ran 24.
# Looks like your test exited with 35 just after 24.
# creating cert for direct.ssl.access
# SSL handshake failed: SSL accept attempt failed
t/https_proxy.t .. 
Dubious, test returned 35 (wstat 8960, 0x2300)
Failed 32/56 subtests 

There is a bug in p5-IO-Socket-IP-0.33, it does not restore the
blocking mode of the client ssl socket.  This results in the "Resource
temporarily unavailable" error.  The following patch fixes it, while
there update p5-IO-Socket-IP to 0.34.

ok?

bluhm

Index: net/p5-IO-Socket-IP/Makefile
===================================================================
RCS file: /data/mirror/openbsd/cvs/ports/net/p5-IO-Socket-IP/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- net/p5-IO-Socket-IP/Makefile        22 Nov 2014 22:49:09 -0000      1.5
+++ net/p5-IO-Socket-IP/Makefile        16 Dec 2014 00:15:18 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =      family-neutral IP socket supporting both IPv4 and IPv6
 
-DISTNAME =     IO-Socket-IP-0.33
+DISTNAME =     IO-Socket-IP-0.34
 
 CATEGORIES =   net
 
Index: net/p5-IO-Socket-IP/distinfo
===================================================================
RCS file: /data/mirror/openbsd/cvs/ports/net/p5-IO-Socket-IP/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- net/p5-IO-Socket-IP/distinfo        22 Nov 2014 22:49:09 -0000      1.5
+++ net/p5-IO-Socket-IP/distinfo        16 Dec 2014 00:15:22 -0000
@@ -1,2 +1,2 @@
-SHA256 (IO-Socket-IP-0.33.tar.gz) = 
v4fGgQnC4pRlfnVfZq/tzCIl0vLrMjZ9MW6Uyls4QLY=
-SIZE (IO-Socket-IP-0.33.tar.gz) = 43445
+SHA256 (IO-Socket-IP-0.34.tar.gz) = 
jiWt461GsT3/KTxdsLQQYec8bxYdlrlDWuYBDO2KD1o=
+SIZE (IO-Socket-IP-0.34.tar.gz) = 43563
Index: net/p5-IO-Socket-IP/patches/patch-lib_IO_Socket_IP_pm
===================================================================
RCS file: net/p5-IO-Socket-IP/patches/patch-lib_IO_Socket_IP_pm
diff -N net/p5-IO-Socket-IP/patches/patch-lib_IO_Socket_IP_pm
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ net/p5-IO-Socket-IP/patches/patch-lib_IO_Socket_IP_pm       16 Dec 2014 
00:19:57 -0000
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- lib/IO/Socket/IP.pm.orig   Wed Dec  3 01:06:55 2014
++++ lib/IO/Socket/IP.pm        Tue Dec 16 01:19:47 2014
+@@ -672,6 +672,7 @@ sub connect
+ 
+       if( !$err ) {
+          # All happy
++         $self->blocking( $was_blocking );
+          return 1;
+       }
+       elsif( not( $err == EINPROGRESS or $err == EWOULDBLOCK ) ) {

Reply via email to