From owner-freebsd-amd64@freebsd.org Mon Jan 16 07:44:51 2017 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC8BFCB28BF for ; Mon, 16 Jan 2017 07:44:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E4D61D87 for ; Mon, 16 Jan 2017 07:44:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0G7ipKq045244 for ; Mon, 16 Jan 2017 07:44:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 216133] p5-HTTP-Daemon-SSL Date: Mon, 16 Jan 2017 07:44:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Package Infrastructure X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fm@tpbox.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 07:44:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216133 Bug ID: 216133 Summary: p5-HTTP-Daemon-SSL Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Package Infrastructure Assignee: portmgr@FreeBSD.org Reporter: fm@tpbox.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org The latest pkg updates perl to 5.24, and the p5-HTTP-Daemon-SSL package is = now broken. Everything would work with perl 5.20 (previous pkg version). The example script provided in the perl module documentation (see below) crashes with the following error message: > Bad arg length for Socket::inet_ntoa, length is 16, should be 4 at=20 > /usr/local/lib/perl5/site_perl/HTTP/Daemon.pm line 51. Previously, the very same error would happen with Perl5 IPv6 socket modules installed, and a possible workaround was manually uninstalling the following packages: p5-IO-Socket-INET6, p5-Socket, p5-Socket6, p5-IO-Socket-IP. Script example: use HTTP::Daemon::SSL; use HTTP::Status; # Make sure you have a certs/ directory with "server-cert.pem" # and "server-key.pem" in it before running this! my $d =3D HTTP::Daemon::SSL->new || die; print "Please contact me at: url, ">\n"; while (my $c =3D $d->accept) { while (my $r =3D $c->get_request) { if ($r->method eq 'GET' and $r->url->path eq "/dir") { # remember, this is *not* recommened practice :-) $c->send_file_response("f.html"); } else { $c->send_error(RC_FORBIDDEN); } } $c->close; undef($c); } --=20 You are receiving this mail because: You are on the CC list for the bug.=