On May 20, 2007, at 10:55 AM, Matisse Enzer wrote:

I uploaded a new version of Perl::Metrics::Simple (0.032) and noticed that 3 failing reports from CPAN testers, all because I didn't include a Makefile.PL and the generated one (from my Build.PL) didn't include the prerequisites.

Here is one of the failure reports:
http://www.nntp.perl.org/group/perl.cpan.testers/2007/05/ msg482176.html

So - what's the "right" way to remedy this?

- The author (that's me!) provides a Makefile.PL as well as Build.PL?
  - Fix something in the CPAN tester system?
  - Other?
  - Some combination of the above ? :-)

-Matisse

Personally, I've found that adding

  create_makefile_pl => 'traditional'

to my Build.PL file is the best solution for pure-perl packages. The Makefile.PL that is generated has all of the Build.PL optional prereqs turned into mandatory ones, and any dynamic config you do in Build.PL becomes static. However, if you make good default choices in Build.PL that may just mean that the Makefile.PL-using end user installs more of CPAN than they really need, which is definitely a lesser evil than a broken build.

Chris

--
Chris Dolan, Equilibrious LLC, http://equilibrious.net/
Public key: http://chrisdolan.net/public.key
vCard: http://chrisdolan.net/ChrisDolan.vcf



Reply via email to