Sun May 31 12:54:18 2015 UTC ()
Update to 4.20:

4.20 2015-05-29

    [ RELEASE NOTES ]
    - CGI.pm is now considered "done". See also "mature" and "legacy"
      Features requests and none critical issues will be outright rejected.
      The module is now in maintenance mode for critical issues only.

    - This release removes the AUTOLOAD and compile optimisations from CGI.pm
      that were introduced into CGI.pm twenty (20) years ago as a response to
      its large size, which meant there was a significant compile time penalty.

    - This optimisation is no longer relevant and makes the code difficult to
      deal with as well as making test coverage metrics incorrect. Benchmarks
      show that advantages of AUTOLOAD / lazy loading / deferred compile are
      less than 0.05s, which will be dwarfed by just about any meaningful code
      in a cgi script. If this is an issue for you then you should look at
      running CGI.pm in a persistent environment (FCGI, etc)

    - To offset some of the time added by removing the AUTOLOAD functionality
      the dependencies have been made runtime rather than compile time. The
      POD has also been split into its own file. CGI.pm now contains around
      4000 lines of code, which compared to some modules on CPAN isn't really
      that much

    - This essentially deprecates the -compile pragma and ->compile method. The
      -compile pragma will no longer do anything, whereas the ->compile method
      will raise a deprecation warning. More importantly this also REMOVES the
      -any pragma because as per the documentation this pragma needed to be
      "used with care or not at all" and allowing arbitrary HTML tags is almost
      certainly a bad idea. If you are using the -any pragma and using arbitrary
      tags (or have typo's in your code) your code will *BREAK*

    - Although this release should be back compatible (with the exception of any
      code using the -any pragma) you are encouraged to test it throughly as if
      you are doing anything out of the ordinary with CGI.pm (i.e. have bugs
      that may have been masked by the AUTOLOAD feature) you may see some issues.

    - References: GH #162, GH #137, GH #164

    [ SPEC / BUG FIXES ]
    - make the list context warning in param show the filename rather than
      the package so we have more information on exactly where the warning
      has been raised from (GH #171)
    - correct self_url when PATH_INFO and SCRIPT_NAME are the same but we
      are not running under IIS (GH #176)
    - Add the multi_param method to :cgi export (thanks to xblitz for the patch
      and tests. GH #167)
    - Fix warning for lack of HTTP_USER_AGENT in CGI::Carp (GH #168)
    - Fix imports when called from CGI::Fast, restores the import of CGI functions
      into the callers namespace for users of CGI::Fast (GH leejo/cgi-fast#11 and
      GH leejo/cgi-fast#12)

    [ FEATURES ]
    - CGI::Carp now has $CGI::Carp::FULL_PATH for displaying the full path to the
      offending script in error messages
    - CGI now has env_query_string() for getting the value of QUERY_STRING from
      the environment and not that fiddled with by CGI.pm (which is what
      query_string() does) (GH #161)
    - CGI::ENCODE_ENTITIES var added to control which chracters are encoded by
      the call to the HTML::Entities module - defaults to &<>"' (GH #157 - the
      \x8b and \x9b chars have been removed from this list as we are concerned
      more about unicode compat these days than old browser support.)

    [ DOCUMENTATION ]
    - Fix some typos (GH #173, GH #174)
    - All *documentation* for HTML functionality in CGI has been moved into
      its own namespace: CGI::HTML::Functions - although the functionality
      continues to exist within CGI.pm so there are no code changes required
      (GH #142)
    - Add missing documentation for env variable fetching routines (GH #163)

    [ TESTING ]
    - Increase test coverage (GH #3)

    [ INTERNALS ]
    - Cwd made a TEST_REQUIRES rather than a BUILD_REQUIRES in Makefile.PL
      (GH #170)
    - AutoloadClass variables have been removed as AUTOLOAD was removed in
      v4.14 so these are no longer necessary (GH #172 thanks to alexmv)
    - Remove dependency on constant - internal DEBUG, XHTML_DTD and EBCDIC
      constants changes to $_DEBUG, $_XHTML_DTD, and $_EBCDIC


(wiz)
diff -r1.75 -r1.76 pkgsrc/www/p5-CGI/Makefile
diff -r1.37 -r1.38 pkgsrc/www/p5-CGI/distinfo

cvs diff -r1.75 -r1.76 pkgsrc/www/p5-CGI/Makefile (expand / switch to unified diff)

--- pkgsrc/www/p5-CGI/Makefile 2015/04/22 06:33:25 1.75
+++ pkgsrc/www/p5-CGI/Makefile 2015/05/31 12:54:18 1.76
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.75 2015/04/22 06:33:25 wiz Exp $ 1# $NetBSD: Makefile,v 1.76 2015/05/31 12:54:18 wiz Exp $
2 2
3DISTNAME= CGI-4.15 3DISTNAME= CGI-4.20
4PKGNAME= p5-${DISTNAME} 4PKGNAME= p5-${DISTNAME}
5CATEGORIES= www perl5 5CATEGORIES= www perl5
6MASTER_SITES+= ${MASTER_SITE_PERL_CPAN:=CGI/} 6MASTER_SITES+= ${MASTER_SITE_PERL_CPAN:=CGI/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://search.cpan.org/dist/CGI.pm/ 9HOMEPAGE= http://search.cpan.org/dist/CGI.pm/
10COMMENT= Perl5 module for writing forms-based CGI programs 10COMMENT= Perl5 module for writing forms-based CGI programs
11LICENSE= gnu-gpl-v2 OR artistic-2.0 11LICENSE= gnu-gpl-v2 OR artistic-2.0
12 12
13DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser 13DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
14BUILD_DEPENDS+= p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep 14BUILD_DEPENDS+= p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
15BUILD_DEPENDS+= p5-Test-Warn-[0-9]*:../../devel/p5-Test-Warn 15BUILD_DEPENDS+= p5-Test-Warn-[0-9]*:../../devel/p5-Test-Warn
16 16

cvs diff -r1.37 -r1.38 pkgsrc/www/p5-CGI/distinfo (expand / switch to unified diff)

--- pkgsrc/www/p5-CGI/distinfo 2015/04/22 06:33:25 1.37
+++ pkgsrc/www/p5-CGI/distinfo 2015/05/31 12:54:18 1.38
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.37 2015/04/22 06:33:25 wiz Exp $ 1$NetBSD: distinfo,v 1.38 2015/05/31 12:54:18 wiz Exp $
2 2
3SHA1 (CGI-4.15.tar.gz) = 425bbfd5f92f499e5aa02e0f75ac1be1ce04cdfe 3SHA1 (CGI-4.20.tar.gz) = 30b12a988a955c9e526b5af23ffce4fb8fc3a417
4RMD160 (CGI-4.15.tar.gz) = 4bc6f9f44dd018e810531de7236fadfdd9deda82 4RMD160 (CGI-4.20.tar.gz) = 5832413ce4eac3ad5b81cf1a9fd95b5baa0d7794
5Size (CGI-4.15.tar.gz) = 193740 bytes 5Size (CGI-4.20.tar.gz) = 193964 bytes