r42079 - in /trunk/libcgi-pm-perl: ./ CGI/ debian/ debian/patches/ examples/ lib/ t/

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Tue Aug 18 18:19:21 UTC 2009


Author: ansgar-guest
Date: Tue Aug 18 18:19:12 2009
New Revision: 42079

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=42079
Log:
* New upstream release
  + update file names in man-cgi-fast.patch
* debian/control: Make build-dep on perl unversioned
* Bump Standards-Version to 3.8.3

Added:
    trunk/libcgi-pm-perl/lib/
      - copied from r42073, branches/upstream/libcgi-pm-perl/current/lib/
    trunk/libcgi-pm-perl/t/Dump.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/Dump.t
    trunk/libcgi-pm-perl/t/popup_menu.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/popup_menu.t
    trunk/libcgi-pm-perl/t/query_string.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/query_string.t
    trunk/libcgi-pm-perl/t/start_end_asterisk.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/start_end_asterisk.t
    trunk/libcgi-pm-perl/t/start_end_end.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/start_end_end.t
    trunk/libcgi-pm-perl/t/start_end_start.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/start_end_start.t
    trunk/libcgi-pm-perl/t/unescapeHTML.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/unescapeHTML.t
    trunk/libcgi-pm-perl/t/user_agent.t
      - copied unchanged from r42073, branches/upstream/libcgi-pm-perl/current/t/user_agent.t
Removed:
    trunk/libcgi-pm-perl/CGI/
    trunk/libcgi-pm-perl/CGI.pm
Modified:
    trunk/libcgi-pm-perl/Changes
    trunk/libcgi-pm-perl/MANIFEST
    trunk/libcgi-pm-perl/META.yml
    trunk/libcgi-pm-perl/Makefile.PL
    trunk/libcgi-pm-perl/cgi_docs.html
    trunk/libcgi-pm-perl/debian/changelog
    trunk/libcgi-pm-perl/debian/control
    trunk/libcgi-pm-perl/debian/patches/man-cgi-fast.patch
    trunk/libcgi-pm-perl/examples/nph-clock.cgi
    trunk/libcgi-pm-perl/t/form.t

Modified: trunk/libcgi-pm-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/Changes?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/Changes (original)
+++ trunk/libcgi-pm-perl/Changes Tue Aug 18 18:19:12 2009
@@ -1,3 +1,42 @@
+Version 3.45
+  [BUG FIXES]
+  1. Prevent warnings about "uninitialized values" for REQUEST_URI, HTTP_USER_AGENT and other environment variables.
+     Patches by Callum Gibson, heiko and Mark Stosberg. (RT#24684, RT#29065)
+  2. Avoid death in some cases when running under Taint mode on Windows. 
+     Patch by Peter Hancock (RT#43796)
+  3. Allow 0 to be used as a default value in popup_menu(). This was broken starting in 3.37.
+     Thanks to Haze, who was the first to report this and supply a patch, and pfschill, who pinpointed
+     when the bug was introduced. A regression test for this was also added. (RT#37908)
+  4. Allow "+" as a valid character in file names, which fixes temp file creation on OS X Leopard.  
+     Thanks to Andy Armstrong, and alech for patches. (RT#30504) 
+  5. Set binmode() on the Netware platform, thanks to Guenter Knauf (RT#27455)
+  6. Don't allow a CGI::Carp error handler to die recursively. Print a warning and exit instead. 
+     Thanks to Marc Chantreux. (RT#45956)
+  7. The Dump() method now is fixed to escape HTML properly. Thanks to Mark Stosberg (RT#21341)
+  8. Support for <optgroup> with scrolling_list() now works the same way as it does for popup_menu().
+     Thanks to Stuart Johnston (RT#30097)
+  9. CGI::Pretty now works properly when $" is set to ''. Thanks to Jim Keenan (RT#12401)
+ 10. Fix crash when used in combination with PerlEx::DBI. Thanks to Burak Gürsoy (RT#19902)
+
+  [DOCUMENTATION]
+  1. Several typos were fixed, Thanks to ambs. (RT#41105)
+  2. A typo related to the nosticky pragma was fixed, thanks to Britton Kerin. (RT#43220)
+  3. examples/nph-clock.cgi is now more portable, by calling localtime() rather than `/bin/date`,
+     thanks to Guenter Knauf. (RT#27456).
+  4. In CGI::Carp, the SEE ALSO section was cleaned up, thanks to Slaven Rezic. (RT#32769)
+  5. The docs for redirect() were updated to reflect that most headers are
+     ignored during redirection. Thanks to Mark Stosberg (RT#44911)
+
+  [INTERNALS]  
+  1. New t/unescapeHTML.t test script has been added. It includes a TODO test for a pre-existing
+     bug which could use a patch. Thanks to Pete Gamache and Mark Stosberg (RT#39122)
+  2. New test scripts have been added for user_agent(), popup_menu() and query_string(), scrolling_list() and Dump()
+     Thanks to Mark Stosberg and Stuart Johnston. (RT#37908, RT#43006, RT#21341, RT#30097)
+  3. CGI::Carp and CGI::Util have been updated to have non-developer version numbers. 
+     Thanks to Slaven Rezic. (RT#48425)
+  4. CGI::Switch and CGI::Apache now properly set their VERSION in their own name space.  
+     Thanks to Alexey Tourbin (RT#11941,RT#11942)
+
   Version 3.44
   1. Patch from Kurt Jaeger to allow HTTP PUT even if the content length is unknown.
   2. Patch from Pavel merdin to fix a problem for one of the FireFox addons.

Modified: trunk/libcgi-pm-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/MANIFEST?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/MANIFEST (original)
+++ trunk/libcgi-pm-perl/MANIFEST Tue Aug 18 18:19:12 2009
@@ -1,19 +1,6 @@
-CGI.pm
-CGI/Carp.pm
-CGI/Cookie.pm
-CGI/Fast.pm
-CGI/Pretty.pm
-CGI/Push.pm
-CGI/Switch.pm
-CGI/Util.pm
-CGI/Apache.pm
-Changes
-MANIFEST
-Makefile.PL
-README
 cgi-lib_porting.html
 cgi_docs.html
-examples/WORLD_WRITABLE/18.157.1.253.sav
+Changes
 examples/caution.xbm
 examples/clickable_image.cgi
 examples/cookie.cgi
@@ -35,26 +22,47 @@
 examples/save_state.cgi
 examples/tryit.cgi
 examples/wilogo.gif
+examples/WORLD_WRITABLE/18.157.1.253.sav
+lib/CGI.pm
+lib/CGI/Apache.pm
+lib/CGI/Carp.pm
+lib/CGI/Cookie.pm
+lib/CGI/Fast.pm
+lib/CGI/Pretty.pm
+lib/CGI/Push.pm
+lib/CGI/Switch.pm
+lib/CGI/Util.pm
+Makefile.PL
+MANIFEST			This list of files
+README
 t/apache.t
 t/can.t
 t/carp.t
 t/cookie.t
+t/Dump.t
 t/fast.t
 t/form.t
 t/function.t
+t/gen-tests/gen-start-end-tags.pl
 t/html.t
-t/no_tabindex.t
-t/gen-tests/gen-start-end-tags.pl
 t/lib/Test/More.pm
 t/lib/Test/Simple.pm
 t/lib/Test/Utils.pm
+t/no_tabindex.t
+t/popup_menu.t
 t/pretty.t
 t/push.t
+t/query_string.t
 t/request.t
+t/start_end_asterisk.t
+t/start_end_end.t
+t/start_end_start.t
 t/switch.t
+t/unescapeHTML.t
 t/upload.t
+t/upload_post_text.txt
 t/uploadInfo.t
-t/upload_post_text.txt
+t/user_agent.t
+t/util-58.t
 t/util.t
-t/util-58.t
 META.yml                                 Module meta-data (added by MakeMaker)

Modified: trunk/libcgi-pm-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/META.yml?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/META.yml (original)
+++ trunk/libcgi-pm-perl/META.yml Tue Aug 18 18:19:12 2009
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:                CGI.pm
-version:             3.44
+version:             3.45
 abstract:            ~
 license:             ~
 author:              ~

Modified: trunk/libcgi-pm-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/Makefile.PL?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/Makefile.PL (original)
+++ trunk/libcgi-pm-perl/Makefile.PL Tue Aug 18 18:19:12 2009
@@ -1,4 +1,6 @@
 use ExtUtils::MakeMaker;
+my $mm = $ExtUtils::MakeMaker::VERSION;
+
 require 5.6.0;
 
 system("perl", "t/gen-tests/gen-start-end-tags.pl");
@@ -6,16 +8,36 @@
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 WriteMakefile(
-    'INSTALLDIRS' => 'perl',
+'INSTALLDIRS' => 'perl',
     'NAME'	=> 'CGI',
     'DISTNAME'  => 'CGI.pm',
-    'VERSION_FROM'   => 'CGI.pm',
+    'VERSION_FROM'   => 'lib/CGI.pm',
      'PREREQ_PM' => {
        'File::Spec'  => .82,
        'FCGI'        => 0.67,
     },
     'linkext'   => { LINKTYPE=>'' },	# no link needed
     'dist'      => {'COMPRESS'=>'gzip -9f', 'SUFFIX' => 'gz',
-	            'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'}
+	            'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'},
+   (   $mm < 6.46
+        ? ()
+        : ( META_MERGE => {
+                requires  => {perl => '5.006000'},
+                resources => {
+                    # homepage => 'http://FIXME.org',
+                    # license  => 'http://dev.perl.org/licenses/',
+                    # MailingList => 'http://FIXME',
+                    repository => 'http://github.com/markstos/CGI.pm/tree/master'
+                },
+                no_index => {directory => [qw/t/]}
+            },
+            META_ADD => {
+                build_requires     => {},
+                configure_requires => {}
+            },
+        )
+    ),
+
+
 );
 

Modified: trunk/libcgi-pm-perl/cgi_docs.html
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/cgi_docs.html?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/cgi_docs.html (original)
+++ trunk/libcgi-pm-perl/cgi_docs.html Tue Aug 18 18:19:12 2009
@@ -1,6 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 <HTML> <HEAD>
-<!-- $Id -->
 <TITLE>CGI.pm - a Perl5 CGI Library</TITLE>
 </HEAD>
 
@@ -6062,6 +6061,6 @@
 <a href="http://www.cshl.org/">Cold Spring Harbor Laboratory</a></ADDRESS>
 <P>
 <!-- hhmts start -->
-Last modified: Thu Nov  2 09:20:02 EST 2006
+Last modified: Sun Aug  2 17:18:01 EDT 2009
 <!-- hhmts end -->
 </BODY> </HTML>

Modified: trunk/libcgi-pm-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/debian/changelog?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/debian/changelog (original)
+++ trunk/libcgi-pm-perl/debian/changelog Tue Aug 18 18:19:12 2009
@@ -1,3 +1,12 @@
+libcgi-pm-perl (3.45-1) unstable; urgency=low
+
+  * New upstream release
+    + update file names in man-cgi-fast.patch
+  * debian/control: Make build-dep on perl unversioned
+  * Bump Standards-Version to 3.8.3
+
+ -- Ansgar Burchardt <ansgar at 43-1.org>  Tue, 18 Aug 2009 20:18:54 +0200
+
 libcgi-pm-perl (3.44-1) unstable; urgency=low
 
   [ Nathan Handler ]

Modified: trunk/libcgi-pm-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/debian/control?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/debian/control (original)
+++ trunk/libcgi-pm-perl/debian/control Tue Aug 18 18:19:12 2009
@@ -2,12 +2,12 @@
 Section: perl
 Priority: optional
 Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7)
-Build-Depends-Indep: perl (>= 5.6.10-12), libfcgi-perl
+Build-Depends-Indep: perl, libfcgi-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: AGOSTINI Yves <agostini at univ-metz.fr>,
  Damyan Ivanov <dmn at debian.org>, Ansgar Burchardt <ansgar at 43-1.org>,
  gregor herrmann <gregoa at debian.org>
-Standards-Version: 3.8.2
+Standards-Version: 3.8.3
 Homepage: http://search.cpan.org/dist/CGI.pm/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcgi-pm-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libcgi-pm-perl/

Modified: trunk/libcgi-pm-perl/debian/patches/man-cgi-fast.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/debian/patches/man-cgi-fast.patch?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/debian/patches/man-cgi-fast.patch (original)
+++ trunk/libcgi-pm-perl/debian/patches/man-cgi-fast.patch Tue Aug 18 18:19:12 2009
@@ -1,7 +1,7 @@
 Change path to FastCGI scripts and perl in documentation
 
---- libcgi-pm-perl.orig/CGI/Fast.pm
-+++ libcgi-pm-perl/CGI/Fast.pm
+--- libcgi-pm-perl.orig/lib/CGI/Fast.pm
++++ libcgi-pm-perl/lib/CGI/Fast.pm
 @@ -141,7 +141,7 @@
  FastCGI scripts must end in the extension .fcgi.  For each script you
  install, you must add something like the following to srm.conf:

Modified: trunk/libcgi-pm-perl/examples/nph-clock.cgi
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/examples/nph-clock.cgi?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/examples/nph-clock.cgi (original)
+++ trunk/libcgi-pm-perl/examples/nph-clock.cgi Tue Aug 18 18:19:12 2009
@@ -5,7 +5,7 @@
 do_push(-next_page=>\&draw_time,-delay=>1);
 
 sub draw_time {
-    my $time = `/bin/date`;
+    my $time = localtime();
     return start_html('Tick Tock'),
            div({-align=>CENTER},
 	       h1('Virtual Clock'),

Modified: trunk/libcgi-pm-perl/t/form.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/t/form.t?rev=42079&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/t/form.t (original)
+++ trunk/libcgi-pm-perl/t/form.t Tue Aug 18 18:19:12 2009
@@ -1,10 +1,6 @@
 #!/usr/local/bin/perl -w
 
-# Due to a bug in older versions of MakeMaker & Test::Harness, we must
-# ensure the blib's are in @INC, else we might use the core CGI.pm
-use lib qw(. ./blib/lib ./blib/arch);
-
-use Test::More tests => 19;
+use Test::More tests => 22;
 
 BEGIN { use_ok('CGI'); };
 use CGI (':standard','-no_debug','-tabindex');
@@ -134,3 +130,48 @@
    qq(<label><input type="checkbox" name="game" value="checkers" checked="checked" tabindex="23" disabled='1'/><span style="color:gray">checkers</span></label> <label><input type="checkbox" name="game" value="chess" checked="checked" tabindex="24" />chess</label> <label><input type="checkbox" name="game" value="cribbage" tabindex="25" />cribbage</label>),
    'checkbox_group()');
 
+my $optgroup = optgroup(-name=>'optgroup_name',
+                        -Values => ['moe','catch'],
+                        -attributes=>{'catch'=>{'class'=>'red'}});
+
+is($optgroup, 
+    qq(<optgroup label="optgroup_name">
+<option value="moe">moe</option>
+<option class="red" value="catch">catch</option>
+</optgroup>),
+    'optgroup()');
+
+is(popup_menu(-name=>'menu_name',
+              -Values=>[qw/eenie meenie minie/, $optgroup],
+              -labels=>{'eenie'=>'one',
+                        'meenie'=>'two',
+                        'minie'=>'three'},
+              -default=>'meenie'),
+    qq(<select name="menu_name" tabindex="26" >
+<option value="eenie">one</option>
+<option selected="selected" value="meenie">two</option>
+<option value="minie">three</option>
+<optgroup label="optgroup_name">
+<option value="moe">moe</option>
+<option class="red" value="catch">catch</option>
+</optgroup>
+</select>),
+    'popup_menu() + optgroup()');
+
+is(scrolling_list(-name=>'menu_name',
+              -Values=>[qw/eenie meenie minie/, $optgroup],
+              -labels=>{'eenie'=>'one',
+                        'meenie'=>'two',
+                        'minie'=>'three'},
+              -default=>'meenie'),
+    qq(<select name="menu_name" tabindex="27"  size="4">
+<option value="eenie">one</option>
+<option selected="selected" value="meenie">two</option>
+<option value="minie">three</option>
+<optgroup label="optgroup_name">
+<option value="moe">moe</option>
+<option class="red" value="catch">catch</option>
+</optgroup>
+</select>),
+    'scrolling_list() + optgroup()');
+




More information about the Pkg-perl-cvs-commits mailing list