PSARC/2016/388 CGI perl module integration to Solaris
authorVladimir Marek <Vladimir.Marek@oracle.com>
Wed, 22 Jun 2016 11:11:34 +0200
changeset 6501 0b2e4d3429a9
parent 6500 eb9df404cf15
child 6502 568ea88798fa
PSARC/2016/388 CGI perl module integration to Solaris 23038270 Introduce CGI.pm 4.28
components/perl_modules/CGI/CGI-PERLVER.p5m
components/perl_modules/CGI/CGI.license
components/perl_modules/CGI/Makefile
components/perl_modules/CGI/TESTING
components/perl_modules/CGI/test/results-5.22-64.master
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/CGI/CGI-PERLVER.p5m	Wed Jun 22 11:11:34 2016 +0200
@@ -0,0 +1,69 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> default mangler.man.stability committed>
+set name=pkg.fmri \
+    value=pkg:/library/perl-5/CGI-$(PLV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary \
+    value="Handle Common Gateway Interface requests and responses"
+set name=pkg.description \
+    value="CGI is perl module for processing and preparing HTTP requests and responses."
+set name=com.oracle.info.description \
+    value="CGI is perl module for processing and preparing HTTP requests and responses."
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:Development/Perl
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/388
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+
+#file path=usr/perl5/$(PERLVER)/lib/$(PERL_ARCH)/perllocal.pod
+file path=usr/perl5/$(PERLVER)/man/man3/CGI.3
+file path=usr/perl5/$(PERLVER)/man/man3/CGI::Carp.3
+file path=usr/perl5/$(PERLVER)/man/man3/CGI::Cookie.3
+file path=usr/perl5/$(PERLVER)/man/man3/CGI::HTML::Functions.3
+file path=usr/perl5/$(PERLVER)/man/man3/CGI::Pretty.3
+file path=usr/perl5/$(PERLVER)/man/man3/CGI::Push.3
+file path=usr/perl5/$(PERLVER)/man/man3/CGI::Util.3
+file path=usr/perl5/vendor_perl/$(PERLVER)/$(PERL_ARCH)/auto/CGI/.packlist
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI.pod
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/Carp.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/Cookie.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/File/Temp.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/HTML/Functions.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/HTML/Functions.pod
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/Pretty.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/Push.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/CGI/Util.pm
+file path=usr/perl5/vendor_perl/$(PERLVER)/Fh.pm
+license CGI.license license=Artistic
+
+# force a dependency on the Perl runtime
+depend type=require fmri=__TBD pkg.debug.depend.file=perl \
+    pkg.debug.depend.path=usr/perl5/$(PERLVER)/bin
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/CGI/CGI.license	Wed Jun 22 11:11:34 2016 +0200
@@ -0,0 +1,204 @@
+Portions of this program use CGI perl module, the open source version is made available by Lincoln Stein under the terms of the below version of the Artistic License.  As such, Oracle is required to provide the following notices.  Note, however, that the Oracle program license that accompanied this program determines your right to use the Oracle program, including CGI perl module, and the terms contained in the following notices do not change those rights.
+ 	
+The Artistic License 2.0
+
+	 Copyright (c) 2000-2006, The Perl Foundation.
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+Preamble
+
+This license establishes the terms under which a given free software
+Package may be copied, modified, distributed, and/or redistributed.
+The intent is that the Copyright Holder maintains some artistic
+control over the development of that Package while still keeping the
+Package available as open source and free software.
+
+You are always permitted to make arrangements wholly outside of this
+license directly with the Copyright Holder of a given Package. If the
+terms of this license do not permit the full use that you propose to
+make of the Package, you should contact the Copyright Holder and seek
+a different licensing arrangement. 
+
+Definitions
+
+"Copyright Holder" means the individual(s) or organization(s)
+named in the copyright notice for the entire Package.
+
+"Contributor" means any party that has contributed code or other
+material to the Package, in accordance with the Copyright Holder's
+procedures.
+
+"You" and "your" means any person who would like to copy,
+distribute, or modify the Package.
+
+"Package" means the collection of files distributed by the
+Copyright Holder, and derivatives of that collection and/or of
+those files. A given Package may consist of either the Standard
+Version, or a Modified Version.
+
+"Distribute" means providing a copy of the Package or making it
+accessible to anyone else, or in the case of a company or
+organization, to others outside of your company or organization.
+
+"Distributor Fee" means any fee that you charge for Distributing
+this Package or providing support for this Package to another
+party. It does not mean licensing fees.
+
+"Standard Version" refers to the Package if it has not been
+modified, or has been modified only in ways explicitly requested
+by the Copyright Holder.
+
+"Modified Version" means the Package, if it has been changed, and
+such changes were not explicitly requested by the Copyright
+Holder. 
+
+"Original License" means this Artistic License as Distributed with
+the Standard Version of the Package, in its current version or as
+it may be modified by The Perl Foundation in the future.
+
+"Source" form means the source code, documentation source, and
+configuration files for the Package.
+
+"Compiled" form means the compiled bytecode, object code, binary,
+or any other form resulting from mechanical transformation or
+translation of the Source form.
+
+
+Permission for Use and Modification Without Distribution
+
+(1) You are permitted to use the Standard Version and create and use
+Modified Versions for any purpose without restriction, provided that
+you do not Distribute the Modified Version.
+
+
+Permissions for Redistribution of the Standard Version
+
+(2) You may Distribute verbatim copies of the Source form of the
+Standard Version of this Package in any medium without restriction,
+either gratis or for a Distributor Fee, provided that you duplicate
+all of the original copyright notices and associated disclaimers. At
+your discretion, such verbatim copies may or may not include a
+Compiled form of the Package.
+
+(3) You may apply any bug fixes, portability changes, and other
+modifications made available from the Copyright Holder. The resulting
+Package will still be considered the Standard Version, and as such
+will be subject to the Original License.
+
+
+Distribution of Modified Versions of the Package as Source 
+
+(4) You may Distribute your Modified Version as Source (either gratis
+or for a Distributor Fee, and with or without a Compiled form of the
+Modified Version) provided that you clearly document how it differs
+from the Standard Version, including, but not limited to, documenting
+any non-standard features, executables, or modules, and provided that
+you do at least ONE of the following:
+
+(a) make the Modified Version available to the Copyright Holder
+of the Standard Version, under the Original License, so that the
+Copyright Holder may include your modifications in the Standard
+Version.
+
+(b) ensure that installation of your Modified Version does not
+prevent the user installing or running the Standard Version. In
+addition, the Modified Version must bear a name that is different
+from the name of the Standard Version.
+
+(c) allow anyone who receives a copy of the Modified Version to
+make the Source form of the Modified Version available to others
+under
+		
+	(i) the Original License or
+
+	(ii) a license that permits the licensee to freely copy,
+	modify and redistribute the Modified Version using the same
+	licensing terms that apply to the copy that the licensee
+	received, and requires that the Source form of the Modified
+	Version, and of any works derived from it, be made freely
+	available in that license fees are prohibited but Distributor
+	Fees are allowed.
+
+
+Distribution of Compiled Forms of the Standard Version 
+or Modified Versions without the Source
+
+(5) You may Distribute Compiled forms of the Standard Version without
+the Source, provided that you include complete instructions on how to
+get the Source of the Standard Version. Such instructions must be
+valid at the time of your distribution. If these instructions, at any
+time while you are carrying out such distribution, become invalid, you
+must provide new instructions on demand or cease further distribution.
+If you provide valid instructions or cease distribution within thirty
+days after you become aware that the instructions are invalid, then
+you do not forfeit any of your rights under this license.
+
+(6) You may Distribute a Modified Version in Compiled form without
+the Source, provided that you comply with Section 4 with respect to
+the Source of the Modified Version.
+
+
+Aggregating or Linking the Package 
+
+(7) You may aggregate the Package (either the Standard Version or
+Modified Version) with other packages and Distribute the resulting
+aggregation provided that you do not charge a licensing fee for the
+Package. Distributor Fees are permitted, and licensing fees for other
+components in the aggregation are permitted. The terms of this license
+apply to the use and Distribution of the Standard or Modified Versions
+as included in the aggregation.
+
+(8) You are permitted to link Modified and Standard Versions with
+other works, to embed the Package in a larger work of your own, or to
+build stand-alone binary or bytecode versions of applications that
+include the Package, and Distribute the result without restriction,
+provided the result does not expose a direct interface to the Package.
+
+
+Items That are Not Considered Part of a Modified Version 
+
+(9) Works (including, but not limited to, modules and scripts) that
+merely extend or make use of the Package, do not, by themselves, cause
+the Package to be a Modified Version. In addition, such works are not
+considered parts of the Package itself, and are not subject to the
+terms of this license.
+
+
+General Provisions
+
+(10) Any use, modification, and distribution of the Standard or
+Modified Versions is governed by this Artistic License. By using,
+modifying or distributing the Package, you accept this license. Do not
+use, modify, or distribute the Package, if you do not accept this
+license.
+
+(11) If your Modified Version has been derived from a Modified
+Version made by someone other than you, you are nevertheless required
+to ensure that your Modified Version complies with the requirements of
+this license.
+
+(12) This license does not grant you the right to use any trademark,
+service mark, tradename, or logo of the Copyright Holder.
+
+(13) This license includes the non-exclusive, worldwide,
+free-of-charge patent license to make, have made, use, offer to sell,
+sell, import and otherwise transfer the Package with respect to any
+patent claims licensable by the Copyright Holder that are necessarily
+infringed by the Package. If you institute patent litigation
+(including a cross-claim or counterclaim) against any party alleging
+that the Package constitutes direct or contributory patent
+infringement, then this Artistic License to you shall terminate on the
+date that such litigation is filed.
+
+(14) Disclaimer of Warranty:
+THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
+IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
+WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
+NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
+LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/CGI/Makefile	Wed Jun 22 11:11:34 2016 +0200
@@ -0,0 +1,63 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		CGI
+COMPONENT_VERSION=	4.28
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	\
+    sha256:1297d3ed6616cacb4eb57860e3e743f3890111e7a63ca08849930f42f1360532
+COMPONENT_ARCHIVE_URL=	http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/$(COMPONENT_ARCHIVE)
+COMPONENT_PROJECT_URL=	http://search.cpan.org/~leejo/CGI
+COMPONENT_BUGDB=	perl-mod/cgi
+
+TPNO=			29151
+
+include $(WS_MAKE_RULES)/prep.mk
+include $(WS_MAKE_RULES)/ips.mk
+include $(WS_MAKE_RULES)/makemaker.mk
+
+# The test results are full of missing "Test::Entities" and "Test::Deep"
+# modules. That means we can't run all the tests, but it does not limit use of
+# the CGI perl module itself.
+COMPONENT_TEST_TARGETS = test
+
+COMPONENT_TEST_TRANSFORMS += \
+	 '-e "s/\s*[0-9][0-9]* wallclock secs (.*CPU)$$/ <TIMINGS REMOVED>/" ' \
+	 '-e "s/^\[... ... [0-9][0-9]* [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]\]/[date]/" ' \
+	 '-e "s/$(PERL_ARCH)/\$$(PERL_ARCH)/g" ' \
+
+ASLR_MODE = $(ASLR_NOT_APPLICABLE)
+
+build:		$(BUILD_64)
+
+install:	$(INSTALL_64)
+
+test:		$(TEST_64)
+
+system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
+
+REQUIRED_PACKAGES += system/library
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/CGI/TESTING	Wed Jun 22 11:11:34 2016 +0200
@@ -0,0 +1,49 @@
+========================== Create file /var/tmp/a.pl ===========================
+use strict;
+use warnings;
+
+use CGI;
+
+my $q = CGI->new;
+
+# Process an HTTP request
+my @values  = $q->multi_param('form_field');
+my $value   = $q->param('param_name');
+
+my $fh      = $q->upload('file_field');
+
+my $riddle  = $q->cookie('riddle_name');
+my %answers = $q->cookie('answers');
+
+# Prepare various HTTP responses
+print $q->header();
+print $q->header('application/json');
+
+my $cookie1 = $q->cookie(
+    -name  => 'riddle_name',
+    -value => "The Sphynx's Question"
+);
+
+my $cookie2 = $q->cookie(
+    -name  => 'answers',
+    -value => \%answers
+);
+
+print $q->header(
+    -type    => 'image/gif',
+    -expires => '+3d',
+    -cookie  => [ $cookie1,$cookie2 ]
+);
+================================================================================
+
+$ perl /var/tmp/a.pl
+Content-Type: text/html; charset=ISO-8859-1
+
+Content-Type: application/json; charset=ISO-8859-1
+
+Set-Cookie: riddle_name=The%20Sphynx%27s%20Question; path=/
+Set-Cookie: answers=; path=/
+Expires: Sat, 25 Jun 2016 10:55:24 GMT
+Date: Wed, 22 Jun 2016 10:55:24 GMT
+Content-Type: image/gif; charset=ISO-8859-1
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl_modules/CGI/test/results-5.22-64.master	Wed Jun 22 11:11:34 2016 +0200
@@ -0,0 +1,228 @@
+make[1]: Entering directory '$(@D)'
+PERL_DL_NONLAZY=1 "$(PERL)" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/headers/*.t
+t/arbitrary_handles.t ...... ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like your test exited with 2 before it could output anything.
+t/autoescape.t ............. 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 18/18 subtests 
+t/can.t .................... ok
+[date] carp.t: foo at $(@D)/blib/lib/CGI/Carp.pm line 356.
+t/carp.t ................... ok
+Can't locate Test/Deep.pm in @INC (you may need to install the Test::Deep module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at t/cgi.t line 9.
+BEGIN failed--compilation aborted at t/cgi.t line 9.
+# Looks like your test exited with 2 before it could output anything.
+t/cgi.t .................... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 25/25 subtests 
+t/changes.t ................ skipped: Test::CPAN::Changes required for this test
+t/charset.t ................ ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like you planned 3 tests but ran 1.
+# Looks like your test exited with 2 just after 1.
+t/checkbox_group.t ......... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 2/3 subtests 
+t/compiles_pod.t ........... ok
+t/cookie.t ................. ok
+t/delete.t ................. ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like your test exited with 2 before it could output anything.
+t/Dump.t ................... 
+Dubious, test returned 2 (wstat 512, 0x200)
+No subtests run 
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like you planned 2 tests but ran 1.
+# Looks like your test exited with 2 just after 1.
+t/end_form.t ............... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 1/2 subtests 
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like your test exited with 2 before it could output anything.
+t/form.t ................... 
+Dubious, test returned 2 (wstat 512, 0x200)
+No subtests run 
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2222.
+t/function.t ............... 
+Failed 9/33 subtests 
+t/gh-155.t ................. ok
+
+#   Failed test 'redirect with known header with CRLF embedded blows up'
+#   at t/headers.t line 38.
+#                   'Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2222.
+# '
+#     doesn't match '(?^:contains a newline)'
+
+#   Failed test 'redirect with unknown header with CRLF embedded blows up'
+#   at t/headers.t line 41.
+#                   'Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2222.
+# '
+#     doesn't match '(?^:contains a newline)'
+
+#   Failed test 'redirect with leading newlines blows up'
+#   at t/headers.t line 44.
+#                   'Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2222.
+# '
+#     doesn't match '(?^:contains a newline)'
+
+#   Failed test 'redirect does not allow double-newline injection'
+#   at t/headers.t line 51.
+#                   'Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2222.
+# '
+#     doesn't match '(?^:contains a newline)'
+# Looks like you failed 4 tests of 11.
+t/headers.t ................ 
+Dubious, test returned 4 (wstat 1024, 0x400)
+Failed 4/11 subtests 
+t/headers/attachment.t ..... ok
+t/headers/charset.t ........ ok
+t/headers/cookie.t ......... ok
+t/headers/default.t ........ ok
+t/headers/nph.t ............ ok
+t/headers/p3p.t ............ ok
+t/headers/target.t ......... ok
+t/headers/type.t ........... ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like your test exited with 2 before it could output anything.
+t/hidden.t ................. 
+Dubious, test returned 2 (wstat 512, 0x200)
+No subtests run 
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like you planned 40 tests but ran 13.
+# Looks like your test exited with 2 just after 13.
+t/html.t ................... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 27/40 subtests 
+t/html_functions.t ......... ok
+t/http.t ................... ok
+t/init.t ................... ok
+t/multipart_init.t ......... ok
+t/multipart_start.t ........ ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like you planned 18 tests but ran 3.
+# Looks like your test exited with 2 just after 3.
+t/no_tabindex.t ............ 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 15/18 subtests 
+t/param_fetch.t ............ ok
+Can't locate Test/Deep.pm in @INC (you may need to install the Test::Deep module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at t/param_list_context.t line 7.
+BEGIN failed--compilation aborted at t/param_list_context.t line 7.
+t/param_list_context.t ..... 
+Dubious, test returned 2 (wstat 512, 0x200)
+No subtests run 
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like your test exited with 2 before it could output anything.
+t/popup_menu.t ............. 
+Dubious, test returned 2 (wstat 512, 0x200)
+No subtests run 
+t/postdata.t ............... ok
+CGI::Pretty is DEPRECATED and will be removed in a future release. Please see https://github.com/leejo/CGI.pm/issues/162 for more information at $(@D)/blib/lib/CGI/Pretty.pm line 19.
+t/pretty.t ................. ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like you planned 12 tests but ran 2.
+# Looks like your test exited with 2 just after 2.
+t/push.t ................... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 10/12 subtests 
+t/query_string.t ........... ok
+t/redirect_query_string.t .. ok
+Can't locate Test/Deep.pm in @INC (you may need to install the Test::Deep module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at t/request.t line 7.
+BEGIN failed--compilation aborted at t/request.t line 7.
+# Looks like your test exited with 2 before it could output anything.
+t/request.t ................ 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 71/71 subtests 
+t/rt-31107.t ............... ok
+t/rt-52469.t ............... ok
+t/rt-57524.t ............... ok
+t/rt-75628.t ............... ok
+t/rt-84767.t ............... ok
+t/save_read_roundtrip.t .... ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2210.
+# Looks like you planned 5 tests but ran 3.
+# Looks like your test exited with 2 just after 3.
+t/sorted.t ................. 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 2/5 subtests 
+t/start_end_asterisk.t ..... ok
+t/start_end_end.t .......... ok
+t/start_end_start.t ........ ok
+Can't locate HTML/Entities.pm in @INC (you may need to install the HTML::Entities module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at $(@D)/blib/lib/CGI.pm line 2222.
+# Looks like your test exited with 2 before it could output anything.
+t/unescapeHTML.t ........... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 7/7 subtests 
+t/upload.t ................. ok
+t/uploadInfo.t ............. ok
+t/url.t .................... ok
+t/user_agent.t ............. ok
+t/utf8.t ................... ok
+t/util-58.t ................ ok
+Can't locate Test/Deep.pm in @INC (you may need to install the Test::Deep module) (@INC contains: $(@D)/blib/lib $(@D)/blib/arch /usr/perl5/site_perl/5.22/$(PERL_ARCH) /usr/perl5/site_perl/5.22 /usr/perl5/vendor_perl/5.22/$(PERL_ARCH) /usr/perl5/vendor_perl/5.22 /usr/perl5/5.22/lib/$(PERL_ARCH) /usr/perl5/5.22/lib .) at t/util.t line 9.
+BEGIN failed--compilation aborted at t/util.t line 9.
+# Looks like your test exited with 2 before it could output anything.
+t/util.t ................... 
+Dubious, test returned 2 (wstat 512, 0x200)
+Failed 80/80 subtests 
+
+Test Summary Report
+-------------------
+t/autoescape.t           (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 18 tests but ran 0.
+t/cgi.t                  (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 25 tests but ran 0.
+t/checkbox_group.t       (Wstat: 512 Tests: 1 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 3 tests but ran 1.
+t/Dump.t                 (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: No plan found in TAP output
+t/end_form.t             (Wstat: 512 Tests: 1 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 2 tests but ran 1.
+t/form.t                 (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: No plan found in TAP output
+t/function.t             (Wstat: 0 Tests: 24 Failed: 0)
+  Parse errors: Bad plan.  You planned 33 tests but ran 24.
+t/headers.t              (Wstat: 1024 Tests: 11 Failed: 4)
+  Failed tests:  8-11
+  Non-zero exit status: 4
+t/hidden.t               (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: No plan found in TAP output
+t/html.t                 (Wstat: 512 Tests: 13 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 40 tests but ran 13.
+t/no_tabindex.t          (Wstat: 512 Tests: 3 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 18 tests but ran 3.
+t/param_list_context.t   (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: No plan found in TAP output
+t/popup_menu.t           (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: No plan found in TAP output
+t/push.t                 (Wstat: 512 Tests: 2 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 12 tests but ran 2.
+t/request.t              (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 71 tests but ran 0.
+t/sorted.t               (Wstat: 512 Tests: 3 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 5 tests but ran 3.
+t/unescapeHTML.t         (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 7 tests but ran 0.
+t/util.t                 (Wstat: 512 Tests: 0 Failed: 0)
+  Non-zero exit status: 2
+  Parse errors: Bad plan.  You planned 80 tests but ran 0.
+Files=60, Tests=1205, <TIMINGS REMOVED>
+Result: FAIL
+Failed 18/60 test programs. 4/1205 subtests failed.
+Makefile:930: recipe for target 'test_dynamic' failed
+make[1]: *** [test_dynamic] Error 2
+make[1]: Leaving directory '$(@D)'