Comments (8)
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.
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.
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.
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.
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.
I am OK also with N/A reports. Thanks 👍
from dist-zilla.
Where's this at? Is there still a blocker? Is there anything to be done at all?
from dist-zilla.
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)
- AutoPrereqs should scan xt/author/ and xt/release/ to report Prereqs/DevelopRequires deps [rt.cpan.org #77359]
- AutoPrereq + "use feature 'foo'" adds feature.pm as a dependency [rt.cpan.org #78151]
- [PATCH] PkgVersion: Don't attempt to munge FromCode files [rt.cpan.org #78368]
- authordeps should not output filtered modules [rt.cpan.org #78962]
- Error Handler for config.ini errors suppresses root cause [rt.cpan.org #80113]
- AutoPrereq + "use feature 'foo'" adds feature.pm as a dependency [rt.cpan.org #81309] HOT 3
- GatherDir uses exclude_filename as a regex, causing files to be excluded incorrectly [rt.cpan.org #81492]
- Plugin::Filter can't pass multivalued options to bundle [rt.cpan.org #81958]
- Logging messages log to standard output [rt.cpan.org #82853]
- [PATCH] PluginBundle::Easy: add "log" and "log_fatal" methods [rt.cpan.org #135305]
- Dist::Zilla::Tester dies when run from a read-only working directory
- Broken dependency specification HOT 7
- CPANFile Plugin Creating Two cpanfiles HOT 5
- dzil build --in disables tarball generation HOT 5
- Escape sequences aren't displayed properly on Windows
- The signatures feature is experimental HOT 4
- Feature request: support getting PAUSE credentials from environment variables HOT 1
- dzil setup gives 'uninitialized...' warning if PAUSE password is not specified
- dzil build does not write to tar.gz HOT 1
- listdeps --cpanm-versions returns the version number not in the documented format HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dist-zilla.