posted by
perldiver at 01:14pm on 25/06/2008 under catalyst, perl, perl module, perl5.10, solution, tests fail
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Note to future self: the next time that you try to install Catalyst on 5.10 and your project needs Catalyst::Plugin::FormValidator::Simple, here's the problems you're going to have:
- It won't install
- because FormValidator::Simple won't install
- because DateTime::Format::Strptime won't install
- because it has a buggy test file. (!)
Here's the fix:
- sudo emacs /Users/dstorrs/.cpan/build/DateTime-Format-Strptime-1.0702-G9OjjA/t/004_locale_defaults.t (Note: The directory might be slightly different)
- Change the following lines as shown (only the first and third change; you're just adding a period after the 'déc') :
- Build C::P::FV::S
- Smile and post the solution to LiveJournal for future reference.
- It won't install
- because FormValidator::Simple won't install
- because DateTime::Format::Strptime won't install
- because it has a buggy test file. (!)
Here's the fix:
- sudo emacs /Users/dstorrs/.cpan/build/DateTime-Format-Strptime-1.0702-G9OjjA/t/004_locale_defaults.t (Note: The directory might be slightly different)
- Change the following lines as shown (only the first and third change; you're just adding a period after the 'déc') :
['fr', '%x', '31 déc 1998'],- Build DateTime::Format::Strptime to verify that all is kosher.
['fr', '%X', '12:34:56'],
['fr', '%c', '31 déc 1998 12:34:56'],
...to the following...
['fr', '%x', '31 déc. 1998'],
['fr', '%X', '12:34:56'],
['fr', '%c', '31 déc. 1998 12:34:56'],
- Build C::P::FV::S
- Smile and post the solution to LiveJournal for future reference.