r72003 - in /branches/upstream/libwww-perl/current: ./ lib/ lib/LWP/ lib/LWP/Protocol/ t/ t/live/
periapt-guest at users.alioth.debian.org
periapt-guest at users.alioth.debian.org
Mon Mar 28 15:25:04 UTC 2011
Author: periapt-guest
Date: Mon Mar 28 15:24:24 2011
New Revision: 72003
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72003
Log:
[svn-upgrade] new version libwww-perl (6.02)
Removed:
branches/upstream/libwww-perl/current/lib/LWP/Protocol/http10.pm
branches/upstream/libwww-perl/current/lib/LWP/Protocol/https.pm
branches/upstream/libwww-perl/current/lib/LWP/Protocol/https10.pm
branches/upstream/libwww-perl/current/t/live/https.t
Modified:
branches/upstream/libwww-perl/current/Changes
branches/upstream/libwww-perl/current/MANIFEST
branches/upstream/libwww-perl/current/META.yml
branches/upstream/libwww-perl/current/Makefile.PL
branches/upstream/libwww-perl/current/README
branches/upstream/libwww-perl/current/README.SSL
branches/upstream/libwww-perl/current/lib/LWP.pm
branches/upstream/libwww-perl/current/lib/LWP/ConnCache.pm
branches/upstream/libwww-perl/current/lib/LWP/UserAgent.pm
branches/upstream/libwww-perl/current/t/TEST
Modified: branches/upstream/libwww-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/Changes?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/Changes (original)
+++ branches/upstream/libwww-perl/current/Changes Mon Mar 28 15:24:24 2011
@@ -1,3 +1,29 @@
+_______________________________________________________________________________
+2011-03-27 Release 6.02
+
+This is the release where we try to help the CPAN-toolchain be able to install
+the modules required for https-support in LWP. We have done this by unbundling
+the LWP::Protocol::https module from the libwww-perl distribution. In order to
+have https support you now need to install (or depend on) 'LWP::Protocol::https'
+and then this will make sure that all the prerequsite modules comes along.
+See [RT#66838].
+
+This release also removes the old http10 modules that has really been
+deprecated since v5.60. These should have been removed at the v6.00 jump, but
+I forgot.
+
+
+Christopher J. Madsen (1):
+ Ignores env variables when ssl_opts provided [RT#66663]
+
+Gisle Aas (4):
+ Fix typo; Authen::NTLM [RT#66884]
+
+Yury Zavarin (1):
+ Support LWP::ConnCache->new(total_capacity => undef)
+
+
+
_______________________________________________________________________________
2011-03-09 Release 6.01
Modified: branches/upstream/libwww-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/MANIFEST?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/MANIFEST (original)
+++ branches/upstream/libwww-perl/current/MANIFEST Mon Mar 28 15:24:24 2011
@@ -25,9 +25,6 @@
lib/LWP/Protocol/ftp.pm Access with the FTP protocol
lib/LWP/Protocol/gopher.pm Access with the Gopher protocol
lib/LWP/Protocol/http.pm Access with HTTP/1.1 protocol
-lib/LWP/Protocol/http10.pm Access with HTTP/1.0 protocol
-lib/LWP/Protocol/https.pm Access with HTTP/1.1 protocol over SSL
-lib/LWP/Protocol/https10.pm Access with HTTP/1.0 protocol over SSL
lib/LWP/Protocol/loopback.pm Returns request (like HTTP TRACE)
lib/LWP/Protocol/mailto.pm Allows you to POST mail using sendmail
lib/LWP/Protocol/nntp.pm Handles access to news: and nntp: URLs
@@ -41,7 +38,6 @@
t/TEST Run tests
t/base/protocols.t Test protocol methods of LWP::UserAgent
t/base/ua.t Basic LWP::UserAgent tests
-t/live/https.t
t/live/jigsaw-auth-b.t
t/live/jigsaw-auth-d.t
t/live/jigsaw-chunk.t
Modified: branches/upstream/libwww-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/META.yml?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/META.yml (original)
+++ branches/upstream/libwww-perl/current/META.yml Mon Mar 28 15:24:24 2011
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: libwww-perl
-version: 6.01
+version: 6.02
abstract: The World-Wide Web library for Perl
author:
- Gisle Aas <gisle at activestate.com>
@@ -42,13 +42,11 @@
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.56
+generated_by: ExtUtils::MakeMaker version 6.57_05
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
recommends:
- Authen::NTML: 2.12
- Data::Dump: 0
- IO::Socket::SSL: 1.38
- Mozilla::CA: 20110101
- Net::HTTPS: 6
+ Authen::NTLM: 1.02
+ Data::Dump: 0
+ LWP::Protocol::https: 6.02
Modified: branches/upstream/libwww-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/Makefile.PL?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/Makefile.PL (original)
+++ branches/upstream/libwww-perl/current/Makefile.PL Mon Mar 28 15:24:24 2011
@@ -66,10 +66,8 @@
},
META_MERGE => {
recommends => {
- 'Net::HTTPS' => 6,
- 'IO::Socket::SSL' => "1.38",
- 'Mozilla::CA' => "20110101",
- 'Authen::NTML' => "2.12",
+ 'LWP::Protocol::https' => '6.02',
+ 'Authen::NTLM' => "1.02",
'Data::Dump' => 0,
},
resources => {
Modified: branches/upstream/libwww-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/README?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/README (original)
+++ branches/upstream/libwww-perl/current/README Mon Mar 28 15:24:24 2011
@@ -36,8 +36,7 @@
WWW-RobotRules
If you want to access sites using the https protocol, then you need to
-install the IO::Socket::SSL module or the Crypt::SSLeay module. The
-README.SSL file will tell you more about how libwww-perl supports SSL.
+install the LWP::Protocol::https module from CPAN.
INSTALLATION
Modified: branches/upstream/libwww-perl/current/README.SSL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/README.SSL?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/README.SSL (original)
+++ branches/upstream/libwww-perl/current/README.SSL Mon Mar 28 15:24:24 2011
@@ -1,21 +1,7 @@
-SSL SUPPORT
------------
+As of libwww-perl v6.02 you need to install the LWP::Protocol::https module
+from its own separate distribution to enable support for https://... URLs for
+LWP::UserAgent.
-The libwww-perl package has support for using SSL/TLSv1 with its HTTP
-client and server classes. This support makes it possible to access
-https schemed URLs with LWP. Because of the problematic status of
-encryption software in general and certain encryption algorithms in
-particular, in several countries, libwww-perl package doesn't include
-SSL functionality out-of-the-box.
-
-Encryption support is obtained through the use of IO::Socket::SSL or
-Crypt::SSLeay, which can both be found from CPAN. While libwww-perl
-has "plug-and-play" support for both of these modules (as of v5.45),
-the recommended module to use is IO::Socket::SSL.
-
-There is yet another SSL interface for perl called Net::SSLeay. It has
-a more complete SSL interface and can be used for web client
-programming among other things but doesn't directly support LWP.
-
-The underlying SSL support in all of these modules is based on OpenSSL
-<http://www.openssl.org/> (formerly SSLeay).
+This makes it possible for that distribution to state the required dependencies
+as non-optional. See <https://rt.cpan.org/Ticket/Display.html?id=66838> for
+further discussion why we ended up with this solution.
Modified: branches/upstream/libwww-perl/current/lib/LWP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/lib/LWP.pm?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/lib/LWP.pm (original)
+++ branches/upstream/libwww-perl/current/lib/LWP.pm Mon Mar 28 15:24:24 2011
@@ -1,6 +1,6 @@
package LWP;
-$VERSION = "6.01";
+$VERSION = "6.02";
sub Version { $VERSION; }
require 5.008;
@@ -595,13 +595,6 @@
The file and/or directory
where the trusted Certificate Authority certificates
is located. See L<LWP::UserAgent> for details.
-
-=item PERL_LWP_USE_HTTP_10
-
-Enable the old HTTP/1.0 protocol driver instead of the new HTTP/1.1
-driver. You might want to set this to a TRUE value if you discover
-that your old LWP applications fails after you installed LWP-5.60 or
-better.
=item PERL_HTTP_URI_CLASS
Modified: branches/upstream/libwww-perl/current/lib/LWP/ConnCache.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/lib/LWP/ConnCache.pm?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/lib/LWP/ConnCache.pm (original)
+++ branches/upstream/libwww-perl/current/lib/LWP/ConnCache.pm Mon Mar 28 15:24:24 2011
@@ -3,13 +3,16 @@
use strict;
use vars qw($VERSION $DEBUG);
-$VERSION = "6.00";
+$VERSION = "6.02";
sub new {
my($class, %cnf) = @_;
- my $total_capacity = delete $cnf{total_capacity};
- $total_capacity = 1 unless defined $total_capacity;
+
+ my $total_capacity = 1;
+ if (exists $cnf{total_capacity}) {
+ $total_capacity = delete $cnf{total_capacity};
+ }
if (%cnf && $^W) {
require Carp;
Carp::carp("Unrecognised options: @{[sort keys %cnf]}")
Modified: branches/upstream/libwww-perl/current/lib/LWP/UserAgent.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/lib/LWP/UserAgent.pm?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/lib/LWP/UserAgent.pm (original)
+++ branches/upstream/libwww-perl/current/lib/LWP/UserAgent.pm Mon Mar 28 15:24:24 2011
@@ -5,7 +5,7 @@
require LWP::MemberMixin;
@ISA = qw(LWP::MemberMixin);
-$VERSION = "6.00";
+$VERSION = "6.02";
use HTTP::Request ();
use HTTP::Response ();
@@ -15,16 +15,6 @@
use LWP::Protocol ();
use Carp ();
-
-if ($ENV{PERL_LWP_USE_HTTP_10}) {
- require LWP::Protocol::http10;
- LWP::Protocol::implementor('http', 'LWP::Protocol::http10');
- eval {
- require LWP::Protocol::https10;
- LWP::Protocol::implementor('https', 'LWP::Protocol::https10');
- };
-}
-
sub new
@@ -56,9 +46,13 @@
else {
$ssl_opts->{verify_hostname} = 1;
}
+ }
+ unless (exists $ssl_opts->{SSL_ca_file}) {
if (my $ca_file = $ENV{PERL_LWP_SSL_CA_FILE} || $ENV{HTTPS_CA_FILE}) {
$ssl_opts->{SSL_ca_file} = $ca_file;
}
+ }
+ unless (exists $ssl_opts->{SSL_ca_path}) {
if (my $ca_path = $ENV{PERL_LWP_SSL_CA_PATH} || $ENV{HTTPS_CA_DIR}) {
$ssl_opts->{SSL_ca_path} = $ca_path;
}
@@ -183,12 +177,11 @@
$@ =~ s/ at .* line \d+.*//s; # remove file/line number
$response = _new_response($request, &HTTP::Status::RC_NOT_IMPLEMENTED, $@);
if ($scheme eq "https") {
- $response->message($response->message . " (IO::Socket::SSL not installed)");
+ $response->message($response->message . " (LWP::Protocol::https not installed)");
$response->content_type("text/plain");
$response->content(<<EOT);
-LWP will support https URLs if either IO::Socket::SSL or Crypt::SSLeay
-is installed. More information at
-<http://search.cpan.org/dist/libwww-perl/README.SSL>.
+LWP will support https URLs if the LWP::Protocol::https module
+is installed.
EOT
}
}
@@ -1361,10 +1354,10 @@
When TRUE LWP will for secure protocol schemes ensure it connects to servers
that have a valid certificate matching the expected hostname. If FALSE no
checks are made and you can't be sure that you communicate with the expected peer.
-The no checks behaviour was the default for libwww-perl-5.837 and older.
+The no checks behaviour was the default for libwww-perl-5.837 and earlier releases.
This option is initialized from the L<PERL_LWP_SSL_VERIFY_HOSTNAME> environment
-variable. If the this envirionment variable isn't set; then C<verify_hostname>
+variable. If this envirionment variable isn't set; then C<verify_hostname>
defaults to 1.
=item C<SSL_ca_file> => $path
@@ -1385,11 +1378,9 @@
Other options can be set and are processed directly by the SSL Socket implementation
in use. See L<IO::Socket::SSL> or L<Net::SSL> for details.
-If hostname verification is requested, and neither C<SSL_ca_file> nor
-C<SSL_ca_path> is set, then C<SSL_ca_file> is implied to be the one
-provided by L<Mozilla::CA>. If the Mozilla::CA module isn't available
-SSL requests will fail. Either install this module, set up an alternative
-SSL_ca_file or disable hostname verification.
+The libwww-perl core no longer bundles protocol plugins for SSL. You will need
+to install L<LWP::Protocol::https> separately to enable support for processing
+https-URLs.
=back
Modified: branches/upstream/libwww-perl/current/t/TEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libwww-perl/current/t/TEST?rev=72003&op=diff
==============================================================================
--- branches/upstream/libwww-perl/current/t/TEST (original)
+++ branches/upstream/libwww-perl/current/t/TEST Mon Mar 28 15:24:24 2011
@@ -39,7 +39,6 @@
@tests = (<base/*.t>, <html/*.t>, <robot/*.t>, <local/*.t>);
push(@tests, <live/*.t>) if -f "live/ENABLED";
push(@tests, <net/*.t>) if -f "net/config.pl";
- @tests = grep !/jigsaw/, @tests; # service is not reliable any more
}
if ($formatter) {
More information about the Pkg-perl-cvs-commits
mailing list