On 06/12/12 09:45, Martin J. Evans wrote:
On 06/12/12 09:36, Shmuel Fomberg wrote:
Hi Martin.
I got the following failure report:
which says "Can't locate Module/Loaded.pm" and yet
Module::Loaded is in
the META.yml file for this version:
I don't see this module in the requirements list in your
Makefile.PL.
How did it made its way into the META.yml file?
I manually edit the META.yml file - it is not generated.
I'm not an expert, but I think that the .yml file is there for the automatic
tools, not for installation.
In the installation process only Makefile.PL is used.
So please add this dependency to your Makefile.PL.
Thanks. I'll fix that.
Why do you manually edit the yml file anyway?
No particular reason, I know it can be generated.
Shmuel.
Martin
If I remove the NO_META from my ExtUtils::MakeMaker->writeMakefile:
WriteMakefile(
NAME => 'DBIx::LogAny',
VERSION_FROM => 'lib/DBIx/LogAny.pm', # finds $VERSION
LICENSE => 'perl',
PREREQ_PM => {
Log::Any => 0.14,
Log::Any::Adapter => 0.10,
DBI => 1.50,
File::Spec => 0,
Data::Dumper => 0,
Test::More => 0.62,
Module::Load => 0},
META_MERGE => {
resources => {
bugtracker => {
mailto => 'bug-dbix-logany at rt.cpan.org',
web =>
'http://rt.cpan.org/Public/Dist/Display.html?Name=DBIx-LogAny'
},
repository => {
type => 'git',
url => 'https://github.com/mjegh/DBIx-LogAny.git',
web => 'https://github.com/mjegh/DBIx-LogAny'
},
Mailinglist => 'http://dbi.perl.org/support'
}
},
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/DBIx/LogAny.pm', # retrieve abstract from module
AUTHOR => 'Martin J. Evans <mjev...@cpan.org>') : ()),
);
I don't get the resources out properly:
---
abstract: 'Perl extension for DBI to selectively log DBI'
author:
- 'Martin J. Evans <mjev...@cpan.org>'
build_requires:
ExtUtils::MakeMaker: 0
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter
version 2.120630'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: DBIx-LogAny
no_index:
directory:
- t
- inc
requires:
DBI: 1.5
Data::Dumper: 0
File::Spec: 0
Log::Any: 0.14
Log::Any::Adapter: 0.1
Module::Load: 0
Test::More: 0.62
resources:
x_Mailinglist: http://dbi.perl.org/support
version: 0.02
Martin