On Tue, May 13, 2014 at 08:31:20AM -0300, Alceu Rodrigues de Freitas Junior 
wrote:
> Greetings,
> 
> I'm receiving FAIL reports from one of my distributions and I'm
> wondering if is a problem with the distribution itself or the smoker
> configuration.

...

> Maybe is due old versions of ExtUtils::MakeMaker? I'm using 6.96,
> one of the smokers was with 6.63_02.

That's exactly it -- TEST_REQUIRES wasn't added until 6.63_03 -- one
version later than what came with core until perl 5.17.6 (just over a year
ago).

You can solve this in a few ways:

- add a prereq of ExtUtils::MakeMaker 6.64 to CONFIGURE_REQUIRES, and also
  "use ExtUtils::MakeMaker 6.64" at the top of Makefile.PL

- duplicate your TEST_REQUIRES prereqs as BUILD_REQUIRES -- this is a little
  inaccurate, but not too bad usually

- selectively move TEST_REQUIRES content to BUILD_REQUIRES if the version
  is too low -- this is what dists generated via Dist::Zilla do, and many
  hand-written Makefile.PLs -- e.g. see
  https://metacpan.org/source/ETHER/Class-Method-Modifiers-2.10/Makefile.PL#L63
  or https://metacpan.org/source/HAARG/Moo-1.004002/Makefile.PL#L75

You can easily get yourself into a hole writing lots of custom Makefile.PL
code (I speak from experience!) :) -- so I'd strongly recommend options 1
or 2 for all but the most complicated distributions.

Reply via email to