Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

hex (3272)

hex
  (email not shown publicly)
http://downlode.org/

Perl, RDF and wiki hacker, London, UK. This is my former Perl blog; I now write at Earle's Notebook [downlode.org].

Journal of hex (3272)

Tuesday January 13, 2004
06:11 AM

Curious dependencies in DateTime

[ #16801 ]

richardc - our release manager here at Fotango - just came over to tell me that our build system was choking whilst running the tests for Locale::Object . After a bit of poking around, we traced the problem down to DateTime::TimeZone , which L::O uses.

It turns out that the build was croaking because when Locale::Object::Country did a DateTime::TimeZone->new(), it needed DateTime . However, my Build.PL doesn't list DT as a pre-req, because DT::TZ doesn't either. Combing through the code, we discovered that DT::TZ has an implicit requirement for DateTime because DateTime::TimeZone::OlsonDB does a DateTime->new() . Not a problem, you'd think, right? Add a dependency for DT. Unfortunately, DT depends on DT::TZ.

Our "solution" was to skip tests for DT::TZ. Not ideal. Anybody have any experience of dealing with this kind of thing?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Interesting (Score:3, Interesting)

    by autarch (914) on 2004.01.13 12:31 (#27340) Homepage Journal
    I guess I never anticipated someone installing DateTime::TimeZone without installing DateTime. Normally, I figured that people would install the latter, which reqiures the former.

    If someone comes up with a good solution I'd be happy to use it.