cpan-testers-discuss  

Re: PM post on Makefile.PL FAIL for missing libraries

Michael G Schwern
Wed, 26 Sep 2007 23:44:43 -0700

David Cantrell wrote:
> On Tue, Sep 25, 2007 at 09:57:39AM -0400, David Golden wrote:
>> On 9/25/07, David Cantrell <[EMAIL PROTECTED]> wrote:
>>> use Devel::DoesLibraryExist;
>>> use Devel::IsOSsupported;
>>> die_if_no_library("foo");
>>> die_if_os_is_not(qw(unix vms));
>> It won't just work unless those are bundled in "inc" and you "use lib
>> qw/inc/" because CPAN resolves dependencies after Makefile.PL, not
>> before.  (Err, well, we do have the new "configure_requires" fields in
>> META.yml, but that's not widely supported yet.)
> 
> "Bother", said Pooh.  "I should have thought of that".

I've been considering making the simple inc/ system that MakeMaker uses for
itself available to the public.  It does the basic logic of "use the bundled
copy unless there's a better version already installed".


-- 
Robrt:   People can't win
Schwern: No, but they can riot after the game.