develooper Front page | perl.inline | Postings from December 2011

Solution for install problem related to Inline::MakeMaker

Thread Next
From:
David Oswald
Date:
December 13, 2011 15:34
Subject:
Solution for install problem related to Inline::MakeMaker
Message ID:
CAKTcQ96hdomA2HLUpe2_UGouLnZG-hXD1qYK+Y4Q65NCUCt8Ew@mail.gmail.com
I've uploaded a new version (v0.03) of Math::Prime::FastSieve.

There are three changes:

1: Documentation improvements.
2: Within Makefile.PL I listed BUILD_REQUIRES => { 'Inline' => '0.49' }
3: Added a ranged_primes( $lower, $upper ) method.

Really the most important change, and the reason I'm mentioning it
here is #2.  If it works as I think it should, it will cause

    cpan Math::Prime::FastSieve

to pull in and install Inline prior to attempting the build.  That
should take care of the problem where Makefile.PL was aborting at
compiletime because Inline::MakeMaker wasn't installed on systems that
hadn't previously installed Inline.

Here's how it works:  By putting BUILD_REQUIRES ...... in the
Makefile.PL file, when I create the distribution with

    make dist

... the MYMETA.yml and MYMETA.json files will list Inline as a build
requirement (this is different from a module dependency).  The cpan
shell (and presumably cpanm and cpanplus ) will then pull in and build
Inline before invoking its own local "perl Makefile.PL".

If this theory proves to work, the Inline documentation needs to be
updated to mention the need for adding "BUILD_REQUIRES => { 'Inline'
=> '0.49' }" to the distribution's Makefile.PL.

Once Math::Prime::FastSieve v0.03 hits the various CPAN mirrors within
a few hours you should be able to look at the new version of the
Makefile.PL to see what I'm talking about.  Take a look at the smoke
tests, say, tomorrow.  If we stop seeing the "unknown" test results
then we'll know this approach succeeded.

Dave

-- 

David Oswald
daoswald@gmail.com

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About