ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-mod_perl
perl-mod_perl
Re: CPAN tests fail Makefile.PL using Apache::TestMM
by Torsten Foertsch other posts by this author
Jul 4 2008 1:20AM messages near this date
CPAN tests fail Makefile.PL using Apache::TestMM | Re: CPAN tests fail Makefile.PL using Apache::TestMM
On Fri 04 Jul 2008, Mark Hedges wrote:
>  How am I supposed to tell CPAN that the distribution
>  requires Apache::TestMM when Makefile.PL uses it before
>  `make` is even executed?

You mustn't die that means return an OK result (exit 0). But you mustn't 
create a Makefile. I do that this way:

BEGIN {
  eval {
    require ModPerl::MM;
    require Apache::TestMM;
  };
  if( $@ ) {
    exit 0;
  }
  Apache::TestMM-> import( qw(test clean) );
}

# accept the configs from command line
Apache::TestMM::filter_args();
...

It is documented, see http://cpantest.grango.org/wiki/CPANAuthorNotes. Look 
for "How can I stop getting FAIL reports for missing libraries or other 
non-Perl dependencies?"

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net
Thread:
Mark Hedges
Torsten Foertsch
Mark Hedges
Fred Moyer
Mark Hedges
Geoffrey Young

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved