Greetings,

I found a module package name problem in the 0.72 release of 
DateTime::TimeZone 
from CPAN.  I think the problem will only effect VMS systems and it is 
easily 
remedied with this patch (please note that this mailer may wrap long lines 

in odd places):

diff -ru DateTime-TimeZone-0.72.orig/lib/DateTime/TimeZone/Local/VMS.pm 
DateTime-TimeZone-0.72/lib/DateTime/TimeZone/Local/VMS.pm
--- DateTime-TimeZone-0.72.orig/lib/DateTime/TimeZone/Local/VMS.pm 
2007-12-31 14:34:13.000000000 -0500
+++ DateTime-TimeZone-0.72/lib/DateTime/TimeZone/Local/VMS.pm   2008-02-29 
13:24:30.000000000 -0500
@@ -1,4 +1,4 @@
-package DateTime::TimeZone::Local::Win32;
+package DateTime::TimeZone::Local::VMS;
 
 use strict;
 use warnings;
End of Patch.

Folks on the vmsperl list who may be interested in the module
may want to use ExtUtils::MakeMaker to build it instead of Module::Build.
In order to do that I recommend altering the Makefile.PL like so:

--- DateTime-TimeZone-0.72.orig/Makefile.PL     2007-12-31 
14:34:13.000000000 -0500
+++ DateTime-TimeZone-0.72/Makefile.PL  2008-02-29 13:41:48.000000000 
-0500
@@ -1,31 +1,31 @@
-# Note: this file was auto-generated by Module::Build::Compat version 
0.03
- 
-    unless (eval "use Module::Build::Compat 0.02; 1" ) {
-      print "This module requires Module::Build to install itself.\n";
- 
-      require ExtUtils::MakeMaker;
-      my $yn = ExtUtils::MakeMaker::prompt
-       ('  Install Module::Build now from CPAN?', 'y');
- 
-      unless ($yn =~ /^y/i) {
-       die " *** Cannot install without Module::Build.  Exiting ...\n";
-      }
- 
-      require Cwd;
-      require File::Spec;
-      require CPAN;
- 
-      # Save this 'cause CPAN will chdir all over the place.
-      my $cwd = Cwd::cwd();
- 
-      CPAN::Shell->install('Module::Build::Compat');
-      CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
-       or die "Couldn't install Module::Build, giving up.\n";
- 
-      chdir $cwd or die "Cannot chdir() back to $cwd: $!";
-    }
-    eval "use Module::Build::Compat 0.02; 1" or die $@;
- 
-    Module::Build::Compat->run_build_pl(args => [EMAIL PROTECTED]);
-    require Module::Build;
-    Module::Build::Compat->write_makefile(build_class => 
'Module::Build');
+use ExtUtils::MakeMaker;
+use File::Spec;
+
+unless ( -e File::Spec->catfile( qw( lib DateTime TimeZone America 
Chicago.pm ) ) )
+{
+    warn <<'EOF';
+
+It looks like you haven't run tools/parse_olson to generate the time
+zone modules yet.
+
+This script needs the Olson database files to run, which can be found
+at ftp://elsie.nci.nih.gov/pub/ in a file called tzdata*.tar.gz.
+
+Once you've run this script you will be able to test and install this
+distribution.
+
+EOF
+
+    exit;
+}
+
+my %requires = ( 'Class::Singleton' => 1.03,
+                 'Cwd'              => 3,
+                 'Params::Validate' => 0.72,
+                 'Pod::Man'    => 1.14,
+               );
+
+WriteMakefile(      NAME => 'DateTime::TimeZone',
+                    AUTHOR => 'Dave Rolsky <[EMAIL PROTECTED]>',
+                    PREREQ_PM => \%requires,
+                  );
End of Patch.

I hope that helps.

Peter Prymmer

Reply via email to