Git Product home page Git Product logo

Comments (8)

doy avatar doy commented on August 26, 2024

On Mon, Feb 25, 2013 at 12:29:48AM -0800, Ovid wrote:

Loving Dist::Zilla so far, but I've hit a critical blocker. I'm sure it's me just not reading the right docs, but is there any workaround I can use to get my generated Makefile.PL to assert the correct minimum version of Perl?

In my dist.ini, I have the following:

[Prereqs]
perl = 5.010

That wrote the following in my Makefile.PL:

"PREREQ_PM" => {
      "Perl" => "5.010"
 },

That led to the following bug report: https://rt.cpan.org/Public/Bug/Display.html?id=83563

In short, perldoc ExtUtils::MakeMaker says this is how you assert the minimum Perl version:

MIN_PERL_VERSION
The minimum required version of Perl for this distribution.

Either 5.006001 or 5.6.1 format is acceptable.

So far all workarounds I've tried have failed, including using MinimumPerl, which swears that I need Perl 5.12.0, even though perlver --blame on all files reveals 5.10.0 to be the highest version needed.

I would like to avoid AutoPrereqs yet because it's missed some prereqs at work (I cannot replicate the use case).

Are you sure that's what you specified? I only get a "Perl" key in
PREREQ_PM if I actually list "Perl" (rather than "perl") as a
dependency. Listing "perl = 5.010" in the Prereqs list doesn't add
anything at all to the WriteMakefile args, it just adds a "use 5.010" to
the top of the Makefile.PL. I'm not sure what might be happening in your
case.

-doy

from dist-zilla.

Ovid avatar Ovid commented on August 26, 2024

Ack, sorry about that. I has "Perl", not "perl". The above was a typo.

As far as I can tell, ExtUtils::MakeMaker doesn't recognize a Perl key in PREREQ_PM. However, now that I see the perl (lower-case) key adds that use 5.010 at the top of the Makefile.PL, I think that will be good enough for me for now. Thanks!

Cheers,
Ovid

from dist-zilla.

azawawi avatar azawawi commented on August 26, 2024

the use 5.010 is cool but what about the following NA report:
http://www.cpantesters.org/cpan/report/0334230c-7ff4-11e2-ae72-6e2643cbaa99

Is that the correct approach or simply adding perl to PREREQ_PM?

from dist-zilla.

Ovid avatar Ovid commented on August 26, 2024

I think I'm OK with N/A reports. I'd rather not have the code even tested on unsupported systems, but N/A is better than a failure.
 
Cheers,

Ovid

Twitter - http://twitter.com/OvidPerl/
Buy my book - http://bit.ly/beginning_perl
Buy my other book - http://www.oreilly.com/catalog/perlhks/
Live and work overseas - http://www.overseas-exile.com/


From: Ahmad M. Zawawi [email protected]
To: rjbs/dist-zilla [email protected]
Cc: Ovid [email protected]
Sent: Friday, 1 March 2013, 7:15
Subject: Re: [dist-zilla] BLOCKER: Dist::Zilla::Plugin::MakeMaker gets Perl minimum version wrong (#148)

the use 5.010 is cool but what about the following NA report:
http://www.cpantesters.org/cpan/report/0334230c-7ff4-11e2-ae72-6e2643cbaa99
Is that the correct approach or simply adding perl to PREREQ_PM?

Reply to this email directly or view it on GitHub.

from dist-zilla.

rjbs avatar rjbs commented on August 26, 2024

I'm not sure what the proposed change would do, in practice. That is: in what way is it better than "use 5.10.0;" and why?

from dist-zilla.

azawawi avatar azawawi commented on August 26, 2024

I am OK also with N/A reports. Thanks 👍

from dist-zilla.

karenetheridge avatar karenetheridge commented on August 26, 2024

Where's this at? Is there still a blocker? Is there anything to be done at all?

from dist-zilla.

rjbs avatar rjbs commented on August 26, 2024

I am closing this ticket due to lack of response. I think it's okay to be closed anyway. :)

from dist-zilla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.