perlPackages.POE: init at 1.367
Note that I encountered bugs as part of this effort as documented in the following github PRs and CPAN bug tickets: https://github.com/rcaputo/poe/pull/25 https://rt.cpan.org/Ticket/Display.html?id=124495 POE-1.367 failed t/10_units/01_pod/03_pod_no404s.t https://github.com/rcaputo/poe/pull/26 https://rt.cpan.org/Ticket/Display.html?id=124496 POE-1.367 failed t/10_units/01_pod/04_pod_linkcheck.t ... and these bugs are addressed by the perl-POE-1.367-pod_no404s.patch and perl-POE-1.367-pod_linkcheck.patch files included with this patch, respectively.
This commit is contained in:
parent
bc6508b7f4
commit
1f3780135e
@ -0,0 +1,40 @@
|
||||
commit 6d985026
|
||||
Author: Michael Brantley <limeytexan@gmail.com>
|
||||
Date: Tue Feb 20 07:12:06 2018 -0500
|
||||
|
||||
Update broken Pod links in lib/POE/Filter/HTTPD.pm
|
||||
|
||||
Update Pod links to refer only to the utf8 module and not its methods,
|
||||
fix a mis-capitalized internal reference, and convert the dangling
|
||||
"MaxContent" link into a code reference.
|
||||
|
||||
Resolves bug: https://rt.cpan.org/Public/Bug/Display.html?id=124496
|
||||
|
||||
diff --git a/lib/POE/Filter/HTTPD.pm b/lib/POE/Filter/HTTPD.pm
|
||||
index 9d4898e3..517be691 100644
|
||||
--- a/lib/POE/Filter/HTTPD.pm
|
||||
+++ b/lib/POE/Filter/HTTPD.pm
|
||||
@@ -621,10 +621,10 @@ how to use these objects.
|
||||
|
||||
HTTP headers are not allowed to have UTF-8 characters; they must be
|
||||
ISO-8859-1. POE::Filter::HTTPD will convert all UTF-8 into the MIME encoded
|
||||
-equivalent. It uses L<utf8::is_utf8> for detection-8 and
|
||||
+equivalent. It uses C<utf8::is_utf8> for detection-8 and
|
||||
L<Email::MIME::RFC2047::Encoder> for convertion. If L<utf8> is not
|
||||
installed, no conversion happens. If L<Email::MIME::RFC2047::Encoder> is
|
||||
-not installed, L<utf8::downgrade> is used instead. In this last case, you will
|
||||
+not installed, C<utf8::downgrade> is used instead. In this last case, you will
|
||||
see a warning if you try to send UTF-8 headers.
|
||||
|
||||
|
||||
@@ -651,8 +651,8 @@ streaming mode this filter will return either an HTTP::Request object or a
|
||||
block of content. The HTTP::Request object's content will return empty.
|
||||
The blocks of content will be parts of the request's body, up to
|
||||
Content-Length in size. You distinguish between request objects and content
|
||||
-blocks using C<Scalar::Util/bless> (See L</Streaming request> below). This
|
||||
-option supersedes L</MaxContent>.
|
||||
+blocks using C<Scalar::Util/bless> (See L</Streaming Request> below). This
|
||||
+option supersedes C<MaxContent>.
|
||||
|
||||
=head1 CAVEATS
|
||||
|
@ -0,0 +1,46 @@
|
||||
commit 32571a21
|
||||
Author: Michael Brantley <limeytexan@gmail.com>
|
||||
Date: Tue Feb 20 07:07:22 2018 -0500
|
||||
|
||||
Update old URLs referenced in Pod
|
||||
|
||||
Remove mention of old URLs, replace mention of canonical SVN repo with
|
||||
the new git-based one at github.com.
|
||||
|
||||
Resolves bug: https://rt.cpan.org/Public/Bug/Display.html?id=124495
|
||||
|
||||
diff --git a/lib/POE.pm b/lib/POE.pm
|
||||
index 80e7feac..0554ff70 100644
|
||||
--- a/lib/POE.pm
|
||||
+++ b/lib/POE.pm
|
||||
@@ -465,7 +465,7 @@ code snippets there as well.
|
||||
The following command will fetch the most current version of POE into
|
||||
the "poe" subdirectory:
|
||||
|
||||
- svn co https://poe.svn.sourceforge.net/svnroot/poe poe
|
||||
+ git clone https://github.com/rcaputo/poe.git
|
||||
|
||||
=head2 SourceForge
|
||||
|
||||
@@ -535,18 +535,9 @@ https://rt.cpan.org/Dist/Display.html?Status=Active&Queue=POE
|
||||
|
||||
=head2 Repositories and Changes
|
||||
|
||||
-Thanks to the magic of distributed version control, POE is hosted at
|
||||
-three locations for redundancy. You can browse the source at any one
|
||||
-of:
|
||||
-
|
||||
-https://github.com/rcaputo/poe
|
||||
-
|
||||
-https://gitorious.org/poe
|
||||
-
|
||||
-http://poe.git.sourceforge.net/git/gitweb-index.cgi
|
||||
-
|
||||
-Complete change logs can also be browsed at those sites. They all
|
||||
-provide RSS news feeds for those who want to follow development in
|
||||
+You can browse the POE source and complete change logs at
|
||||
+https://github.com/rcaputo/poe. It also provides an RSS
|
||||
+news feed for those who want to follow development in
|
||||
near-realtime.
|
||||
|
||||
=head2 Other Resources
|
@ -11375,6 +11375,47 @@ let self = _self // overrides; _self = with self; {
|
||||
};
|
||||
};
|
||||
|
||||
POE = buildPerlPackage rec {
|
||||
name = "POE-1.367";
|
||||
patches = [
|
||||
../development/perl-modules/perl-POE-1.367-pod_linkcheck.patch
|
||||
../development/perl-modules/perl-POE-1.367-pod_no404s.patch
|
||||
];
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/R/RC/RCAPUTO/POE-1.367.tar.gz";
|
||||
sha256 = "0b9s7yxaa2lgzyi56brgygycfjk7lz33d1ddvc1wvwwvm45p4wmp";
|
||||
};
|
||||
# N.B. removing TestPodLinkCheck from buildInputs because tests requiring
|
||||
# this module don't disable themselves when "run_network_tests" is
|
||||
# not present (see below).
|
||||
buildInputs = [
|
||||
Curses EmailMIME HTTPMessage IOTty LWPProtocolHttps POETestLoops
|
||||
TermReadKey TestPod TestPodCoverage TestPodNo404s YAML
|
||||
];
|
||||
propagatedBuildInputs = [ pkgs.cacert IOPipely ];
|
||||
meta = {
|
||||
maintainers = [ maintainers.limeytexan ];
|
||||
description = "Portable multitasking and networking framework for any event loop";
|
||||
license = stdenv.lib.licenses.artistic2;
|
||||
};
|
||||
preCheck = ''
|
||||
set -x
|
||||
|
||||
: Makefile.PL touches the following file as a "marker" to indicate
|
||||
: it should perform tests which use the network. Delete this file
|
||||
: for sandbox builds.
|
||||
rm -f run_network_tests
|
||||
|
||||
: Certs are required if not running in a sandbox.
|
||||
export SSL_CERT_FILE=${pkgs.cacert.out}/etc/ssl/certs/ca-bundle.crt
|
||||
|
||||
: The following flag enables extra tests not normally performed.
|
||||
export RELEASE_TESTING=1
|
||||
|
||||
set +x
|
||||
'';
|
||||
};
|
||||
|
||||
POETestLoops = buildPerlPackage rec {
|
||||
name = "POE-Test-Loops-1.360";
|
||||
src = fetchurl {
|
||||
|
Loading…
Reference in New Issue
Block a user