Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help identifying a failure report issue

1 view
Skip to first unread message

Martin J. Evans

unread,
Dec 6, 2012, 4:07:58 AM12/6/12
to cpan-teste...@perl.org
Hi,

I got the following failure report:

http://www.cpantesters.org/cpan/report/505848f8-3d40-11e2-9c0b-78150de8c85b

from DCANTRELL

which says "Can't locate Module/Loaded.pm" and yet Module::Loaded is in the META.yml file for this version:

http://cpansearch.perl.org/src/MJEVANS/DBIx-LogAny-0.02/META.yml

The test report shows:

requires:

Module Need Have
------------------- ---- -----
Data::Dumper 0 2.136
DBI 1.5 1.622
File::Spec 0 3.31
Log::Any 0.14 0.14
Log::Any::Adapter 0.1 0.10
Test::More 0.62 0.98

and Module::Load is missing from it.

Any ideas how this can be?

Martin

Shmuel Fomberg

unread,
Dec 6, 2012, 4:19:51 AM12/6/12
to cpan-teste...@perl.org
Oops, forgot to reply-all.
sorry.

---------- Forwarded message ----------
From: Shmuel Fomberg <shmuel...@gmail.com>
Date: Thu, Dec 6, 2012 at 6:18 PM
Subject: Re: Help identifying a failure report issue
To: "Martin J. Evans" <martin...@easysoft.com>


Hi Martin.

On Thu, Dec 6, 2012 at 6:07 PM, Martin J. Evans wrote:


> I got the following failure report:
>
> http://www.cpantesters.org/**cpan/report/505848f8-3d40-**
> 11e2-9c0b-78150de8c85b<http://www.cpantesters.org/cpan/report/505848f8-3d40-11e2-9c0b-78150de8c85b>
>
> from DCANTRELL
>
> which says "Can't locate Module/Loaded.pm" and yet Module::Loaded is in
> the META.yml file for this version:
>
> http://cpansearch.perl.org/**src/MJEVANS/DBIx-LogAny-0.02/**META.yml<http://cpansearch.perl.org/src/MJEVANS/DBIx-LogAny-0.02/META.yml>
>
>
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?

Shmuel.



On Thu, Dec 6, 2012 at 6:18 PM, Shmuel Fomberg <shmuel...@gmail.com>wrote:

> Hi Martin.
>
> On Thu, Dec 6, 2012 at 6:07 PM, Martin J. Evans wrote:
>
>
>> I got the following failure report:
>>
>> http://www.cpantesters.org/**cpan/report/505848f8-3d40-**
>> 11e2-9c0b-78150de8c85b<http://www.cpantesters.org/cpan/report/505848f8-3d40-11e2-9c0b-78150de8c85b>
>>
>> from DCANTRELL
>>
>> which says "Can't locate Module/Loaded.pm" and yet Module::Loaded is in
>> the META.yml file for this version:
>>
>> http://cpansearch.perl.org/**src/MJEVANS/DBIx-LogAny-0.02/**META.yml<http://cpansearch.perl.org/src/MJEVANS/DBIx-LogAny-0.02/META.yml>
>>
>>
> 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?
>
> Shmuel.
>

Martin J. Evans

unread,
Dec 6, 2012, 4:21:00 AM12/6/12
to cpan-teste...@perl.org
I manually edit the META.yml file - it is not generated.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Shmuel Fomberg

unread,
Dec 6, 2012, 4:36:28 AM12/6/12
to Martin J. Evans, cpan-teste...@perl.org
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.

Why do you manually edit the yml file anyway?

Shmuel.

Martin J. Evans

unread,
Dec 6, 2012, 4:45:18 AM12/6/12
to cpan-teste...@perl.org
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 J. Evans

unread,
Dec 6, 2012, 5:29:37 AM12/6/12
to cpan-teste...@perl.org
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 <mje...@cpan.org>') : ()),
);

I don't get the resources out properly:

---
abstract: 'Perl extension for DBI to selectively log DBI'
author:
- 'Martin J. Evans <mje...@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

David Cantrell

unread,
Dec 7, 2012, 7:59:40 AM12/7/12
to cpan-teste...@perl.org
On Thu, Dec 06, 2012 at 06:36:28PM +0900, Shmuel Fomberg wrote:

> 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.

I'm not sure if that's still the case with a modern CPAN.pm, but it
certainly is with the older one that you'll find installed just about
everywhere.

--
David Cantrell | Enforcer, South London Linguistic Massive

If you can read this, thank a teacher.
If you're reading it in English, thank Chaucer.

Andreas Koenig

unread,
Dec 9, 2012, 4:05:39 AM12/9/12
to David Cantrell, cpan-teste...@perl.org
David Cantrell <da...@cantrell.org.uk> writes:

> On Thu, Dec 06, 2012 at 06:36:28PM +0900, Shmuel Fomberg wrote:
>
>> 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.
>
> I'm not sure if that's still the case with a modern CPAN.pm, but it
> certainly is with the older one that you'll find installed just about
> everywhere.

The logic is the following: per default META.{yaml,json} files are not
authoritative, but for the two parameters

configure_requires
dynamic_config

'configure_requires' must be satisfied first. After that the parameter
'dynamic_config' is checked: if it's missing, it defaults to true. If
it's true, then the {Build,Makefile}.PL is used to determine the
remaining dependencies. Otherwise the META file determines them.


(1) has a META.{yml,json}? no goto (4)

yes

(2) has configure_requires yes satisfy configure_requires, fall through

no

(3) dynamic_config exists and is false satisfy dependencies, fall through

yes

(4) {Build,Makefile}.PL

--
andreas
0 new messages