pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/p5-CGI Update to 4.14:
details: https://anonhg.NetBSD.org/pkgsrc/rev/a1016e313a88
branches: trunk
changeset: 649358:a1016e313a88
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Apr 02 22:47:24 2015 +0000
description:
Update to 4.14:
4.14 2015-04-01
[ RELEASE NOTES ]
- 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
[ 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 &<>"\x8b\x9b' (GH #157)
[ SPEC / BUG FIXES ]
- 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)
[ INTERNALS ]
- Remove dependency on constant - internal DEBUG, XHTML_DTD and EBCDIC
constants changes to $_DEBUG, $_XHTML_DTD, and $_EBCDIC
[ DOCUMENTATION ]
- Add missing documentation for env variable fetching routines (GH #163)
diffstat:
www/p5-CGI/Makefile | 4 ++--
www/p5-CGI/distinfo | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (25 lines):
diff -r ca4116a5589e -r a1016e313a88 www/p5-CGI/Makefile
--- a/www/p5-CGI/Makefile Thu Apr 02 22:46:31 2015 +0000
+++ b/www/p5-CGI/Makefile Thu Apr 02 22:47:24 2015 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.73 2015/01/23 06:52:03 obache Exp $
+# $NetBSD: Makefile,v 1.74 2015/04/02 22:47:24 wiz Exp $
-DISTNAME= CGI-4.13
+DISTNAME= CGI-4.14
PKGNAME= p5-${DISTNAME}
CATEGORIES= www perl5
MASTER_SITES+= ${MASTER_SITE_PERL_CPAN:=CGI/}
diff -r ca4116a5589e -r a1016e313a88 www/p5-CGI/distinfo
--- a/www/p5-CGI/distinfo Thu Apr 02 22:46:31 2015 +0000
+++ b/www/p5-CGI/distinfo Thu Apr 02 22:47:24 2015 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.35 2014/12/30 13:01:25 wiz Exp $
+$NetBSD: distinfo,v 1.36 2015/04/02 22:47:24 wiz Exp $
-SHA1 (CGI-4.13.tar.gz) = 0364e2d95d4f46303f8f29974e824d9849778dc3
-RMD160 (CGI-4.13.tar.gz) = 9a4920465fea20d09901f8eec410799eed37eaf2
-Size (CGI-4.13.tar.gz) = 186050 bytes
+SHA1 (CGI-4.14.tar.gz) = 389ed544ebf026a95a3e56f4fd3e063d11e10ddb
+RMD160 (CGI-4.14.tar.gz) = 9d6085fe0d90dba22bbab510d9d4864bb40e5901
+Size (CGI-4.14.tar.gz) = 182727 bytes
Home |
Main Index |
Thread Index |
Old Index