On Nov 24, 2007, at 11:49 AM, demerphq wrote:


Hmm, that strikes me as likely being that something used in t/pod.t
(Test::Pod maybe) is broken somehow. Theres a big debate about whether
t/pod.t belongs in the actual module distribution anyway..... It would
be nice would be if you could configure the test harness framework to
ignore t/pod.t :-)


I have started using the CPAN Distroprefs
 
http://search.cpan.org/~andk/CPAN-1.9205/lib/CPAN.pm#Configuration_for_individual_distributions_(Distroprefs)
and they are great - so if maybe there is a per-distro configuration I could use that would skip that test.

Here is what I do to create a DBD-mysql distro-pref file on the fly, so that it contains a dynamically calculated INSTALL_BASE and always sets 4 others arguments for "perl Makefile.PL"


sub write_dbd_mysql_cpan_prefs {
    my $settings   = shift;
    my $cpan_prefs = {
        'match' => { 'module' => 'DBD::mysql' },
        'pl'    => {
            'args' => [
                '--testdb=test',
                '--testhost=localhost',
                '--testport=3306',
                '--testuser=test',
                "INSTALL_BASE='$settings->{install_base}'",
            ]
        },
        'depends' => {
            'requires'           => { 'DBI' => '1.58' },
            'configure_requires' => { 'DBI' => '1.58' }
        }
    };
    my $prefs_file
= File::Spec->catfile( $settings->{cpan_prefs_dir}, 'DBD- mysql.yml' );
    return YAML::Syck::DumpFile( $prefs_file, $cpan_prefs );
}



-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/  - http://www.eigenstate.net/



Reply via email to