Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 101205
Status: resolved
Worked: 1.2 hours (75 min)
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: ETJ [...] cpan.org
Requestors: DUNCAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 7.04
Fixed in: (no value)



Hi, I've used "make dist" to create a distribution and upload it to CPAN. It's been rejected with the following message: META-File: Alien-Microsoft-Outlook-0.05/META.json found but error encountered while loading: unexpected end of string while parsing JSON string, at character offset 2 (before "{}\r\n{ "abstract"...") at /opt/perl/v5.16.2/165a/lib/site_perl/5.16.2/Parse/CPAN/Meta.pm line 51. The problem is that MakeMaker is generating a META.json file which contains invalid JSON. The commas between the elements are missing. I assume it's something to do with Windows 7 line endings. {{{} { "abstract" : "Fail if Microsoft Outlook is not installed.",} { "author" : [} { "Duncan Garland <duncan@cpan.org>"} { ],} { "dynamic_config" : 1,} { "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.132140",} { "license" : [} { "unknown"} { ],} { "meta-spec" : {{} { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",} { "version" : "2"} { }},} { "name" : "Alien-Microsoft-Outlook",} { "no_index" : {{} { "directory" : [} { "t",} { "inc"} { ]} { }},} { "prereqs" : {{} { "build" : {{} { "requires" : {{} { "Test::Exception" : "0",} { "Test::More" : "0"} { }}} { }},} { "configure" : {{} { "requires" : {{} { "ExtUtils::MakeMaker" : "0"} { }}} { }},} { "runtime" : {{} { "requires" : {{} { "Win32::OLE" : "0",} { "Win32::OLE::Const" : "0",} { "perl" : "5.006"} { }}} { }}} { }},} { "release_status" : "stable",} { "version" : "0.05"} {}}} Regards Duncan
Hi Duncan, I tried to reproduce this with EUMM 7.04, using EUMM 7.04, same as you have, and could not. We have different versions of CPAN::Meta installed/available, however. I have 2.120351, how about you? It's CPAN::Meta::save that actually writes the data out to disk. Ed
Subject: RE: [rt.cpan.org #101205]
Date: Tue, 30 Dec 2014 17:41:06 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Hi Ed, Thanks for getting onto this so quickly. I've got: Show quoted text
cpan> i CPAN::Meta
Database was generated on Tue, 30 Dec 2014 14:08:23 GMT Module id = CPAN::Meta CPAN_USERID DAGOLDEN (David Golden <dagolden@cpan.org>) CPAN_VERSION 2.143240 CPAN_FILE D/DA/DAGOLDEN/CPAN-Meta-2.143240.tar.gz UPLOAD_DATE 2014-11-20 MANPAGE CPAN::Meta - the distribution metadata for a CPAN dist INST_FILE C:\strawberry\perl\site\lib\CPAN\Meta.pm INST_VERSION 2.143240 Did you use the same tar file that I used? I've attached it, just in case. Regards Duncan Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 30 December 2014 16:11 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > Hi Duncan, I tried to reproduce this with EUMM 7.04, using EUMM 7.04, same as you have, and could not. We have different versions of CPAN::Meta installed/available, however. I have 2.120351, how about you? It's CPAN::Meta::save that actually writes the data out to disk. Ed

Message body not shown because it is not plain text.

RT-Send-CC: duncan.garland [...] ntlworld.com
On 2014-12-30 06:33:27, DUNCAN wrote: Show quoted text
> Hi, > > I've used "make dist" to create a distribution and upload it to CPAN. > It's been rejected with the following message: > > META-File: Alien-Microsoft-Outlook-0.05/META.json found but error > encountered while loading: unexpected end of string while parsing JSON > string, at character offset 2 (before "{}\r\n{ "abstract"...") at > /opt/perl/v5.16.2/165a/lib/site_perl/5.16.2/Parse/CPAN/Meta.pm line > 51.
Could you please include (as an attachment) the full response you got back from PAUSE for this distribution? This error sounds a lot like issues we've been having with old smokers running a buggy version of JSON::PP, but (so far as I know) we've never encountered this on the PAUSE systems themselves, as they are running an updated version of the toolchain.
Could you tell me which version of JSON::PP you have? Easiest way is: perl "-MJSON::PP 9"
Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Tue, 30 Dec 2014 19:43:51 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>

Message body is not shown because sender requested not to inline it.

Subject: PAUSE indexer report DUNCAN/Alien-Microsoft-Outlook-0.05.tar.gz
Date: Tue, 30 Dec 2014 13:29:37 -0000
To: <duncan.garland [...] ntlworld.com>, <andreas.koenig.gmwojprw+pause [...] franz.ak.mind.de>
From: "PAUSE" <upload [...] pause.perl.org>
The following report has been written by the PAUSE namespace indexer. Please contact modules@perl.org if there are any open questions. User: DUNCAN (Duncan Garland) Distribution file: Alien-Microsoft-Outlook-0.05.tar.gz Number of files: 11 *.pm files: 1 README: Alien-Microsoft-Outlook-0.05/README META-File: Alien-Microsoft-Outlook-0.05/META.json found but error encountered while loading: unexpected end of string while parsing JSON string, at character offset 2 (before "{}\r\n{ "abstract"...") at /opt/perl/v5.16.2/165a/lib/site_perl/5.16.2/Parse/CPAN/Meta.pm line 51. META-Parser: Parse::CPAN::Meta 1.4404 META-driven index: no Timestamp of file: Tue Dec 30 13:28:08 2014 UTC Time of this run: Tue Dec 30 13:29:37 2014 UTC Status of this distro: OK ========================= The following packages (grouped by status) have been found in the distro: Status: Successfully indexed ============================ module : Alien::Microsoft::Outlook version: 0.05 in file: Alien-Microsoft-Outlook-0.05/lib/Alien/Microsoft/Outlook.pm status : indexed __END__
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Tue, 30 Dec 2014 19:44:43 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Duncan>perl "-MJSON::PP 9" JSON::PP version 9 required--this is only version 2.27203. BEGIN failed--compilation aborted. C:\Users\Duncan> Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 30 December 2014 18:37 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > Could you tell me which version of JSON::PP you have? Easiest way is: perl "-MJSON::PP 9"
Subject: Re: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Tue, 30 Dec 2014 21:09:56 +0100
To: ether [...] cpan.org
To: bug-ExtUtils-MakeMaker [...] rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
Sorry, no, Pause's perl is not up to date. I do not want to post in public what exactly we are running. I don't think that JSON::PP is involved. Would you know any version requirements fr the various JSON modules? -- andreas
RT-Send-CC: andreas.koenig.7os6VVqR [...] franz.ak.mind.de, duncan.garland [...] ntlworld.com
On 2014-12-30 12:10:14, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote: Show quoted text
> Sorry, no, Pause's perl is not up to date. I do not want to post in > public what exactly we are running. I don't think that JSON::PP is > involved. Would you know any version requirements fr the various JSON > modules?
Right, this looks like an issue on the author's side, not PAUSE, so the next thing to do would be to check the versions of the other JSON backends: perl -MJSON\ 999 -e1 perl -MJSON::XS\ 999 -e1
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Wed, 31 Dec 2014 10:20:39 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
C:\Users\Duncan>perl "-MJSON 999" -e1 JSON version 999 required--this is only version 2.59. BEGIN failed--compilation aborted. C:\Users\Duncan>perl "-MJSON::XS 999" -e1 JSON::XS version 999 required--this is only version 2.34. BEGIN failed--compilation aborted. C:\Users\Duncan> Show quoted text
-----Original Message----- From: Karen Etheridge via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 30 December 2014 20:24 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > On 2014-12-30 12:10:14, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
> Sorry, no, Pause's perl is not up to date. I do not want to post in > public what exactly we are running. I don't think that JSON::PP is > involved. Would you know any version requirements fr the various JSON > modules?
Right, this looks like an issue on the author's side, not PAUSE, so the next thing to do would be to check the versions of the other JSON backends: perl -MJSON\ 999 -e1 perl -MJSON::XS\ 999 -e1
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Sat, 3 Jan 2015 13:32:27 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Hi, I've just updated those two JSON modules and updated Module::Starter. I then used module-starter to create an empty distribution called Tmp. I ran: perl Makefile.PL make dist I unzipped and extracted the tar file and examined META.json. It contains invalid JSON. Something is very broken. Regards Duncan Show quoted text
-----Original Message----- From: Duncan Garland [mailto:duncan.garland@ntlworld.com] Sent: 31 December 2014 10:21 To: bug-ExtUtils-MakeMaker@rt.cpan.org; DUNCAN@cpan.org Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 C:\Users\Duncan>perl "-MJSON 999" -e1 JSON version 999 required--this is only version 2.59. BEGIN failed--compilation aborted. C:\Users\Duncan>perl "-MJSON::XS 999" -e1 JSON::XS version 999 required--this is only version 2.34. BEGIN failed--compilation aborted. C:\Users\Duncan>
-----Original Message----- From: Karen Etheridge via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 30 December 2014 20:24 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > On 2014-12-30 12:10:14, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
> Sorry, no, Pause's perl is not up to date. I do not want to post in > public what exactly we are running. I don't think that JSON::PP is > involved. Would you know any version requirements fr the various JSON > modules?
Right, this looks like an issue on the author's side, not PAUSE, so the next thing to do would be to check the versions of the other JSON backends: perl -MJSON\ 999 -e1 perl -MJSON::XS\ 999 -e1
Could you update JSON::PP? There's now a version 2.27300. Also, could you run these commands? (They're in Windows format, Linux shell is different syntax) perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON->new->pretty->canonical->encode({ qw(hello one bye two) })" perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, JSON::PP->new->pretty->canonical->encode({ qw(hello one bye two) })" perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, JSON::XS->new->pretty->canonical->encode({ qw(hello one bye two) })" They should all produce various version numbers plus the same JSON: { "bye" : "two", "hello" : "one" } (I have JSON 2.90, JSON::PP 2.27203, JSON::XS 3.01)
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Sat, 3 Jan 2015 16:46:53 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
C:\Windows\system32>perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON->new->pretty- Show quoted text
>canonical->encode({ qw(hello one bye two) })"
2.90 { "bye" : "two", "hello" : "one" } C:\Windows\system32> C:\Windows\system32>perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, JSON::PP-> new->pretty->canonical->encode({ qw(hello one bye two) })" 2.27300 { "bye" : "two", "hello" : "one" } C:\Windows\system32>perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, JSON::XS-> new->pretty->canonical->encode({ qw(hello one bye two) })" 3.01 { "bye" : "two", "hello" : "one" } G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp>module-starter --module Tmp --email duncan@cpan.org --author DMG Added to MANIFEST: Changes Added to MANIFEST: ignore.txt Added to MANIFEST: lib/Tmp.pm Added to MANIFEST: Makefile.PL Added to MANIFEST: MANIFEST Added to MANIFEST: README Added to MANIFEST: t/00-load.t Added to MANIFEST: t/boilerplate.t Added to MANIFEST: t/manifest.t Added to MANIFEST: t/pod-coverage.t Added to MANIFEST: t/pod.t Created starter directories and files G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp>cd TMP G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>perl Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Tmp Writing MYMETA.yml and MYMETA.json G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>make dist "C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e rm_rf -- Tmp-0.01 "C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Manifest=manicopy,maniread" \ -e "manicopy(maniread(),'Tmp-0.01', 'best');" mkdir Tmp-0.01 mkdir Tmp-0.01/t mkdir Tmp-0.01/lib {Generating META.yml} {Generating META.json} tar cvf Tmp-0.01.tar Tmp-0.01 Tmp-0.01/ Tmp-0.01/Changes Tmp-0.01/t/ Tmp-0.01/t/manifest.t Tmp-0.01/t/pod.t Tmp-0.01/t/00-load.t Tmp-0.01/t/pod-coverage.t Tmp-0.01/MANIFEST Tmp-0.01/Makefile.PL Tmp-0.01/README Tmp-0.01/lib/ Tmp-0.01/lib/Tmp.pm Tmp-0.01/META.yml Tmp-0.01/META.json "C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e rm_rf -- Tmp-0.01 gzip -9f Tmp-0.01.tar {'Created Tmp-0.01.tar.gz'} G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp> G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>tar -xvf Tmp-0.01.tar Tmp-0.01/ Tmp-0.01/Changes Tmp-0.01/t/ Tmp-0.01/t/manifest.t Tmp-0.01/t/pod.t Tmp-0.01/t/00-load.t Tmp-0.01/t/pod-coverage.t Tmp-0.01/MANIFEST Tmp-0.01/Makefile.PL Tmp-0.01/README Tmp-0.01/lib/ Tmp-0.01/lib/Tmp.pm Tmp-0.01/META.yml Tmp-0.01/META.json G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp> META.json: {{{} { "abstract" : "The great new Tmp!",} { "author" : [} { "DMG <duncan@cpan.org>"} { ],} { "dynamic_config" : 1,} { "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240",} { "license" : [} { "unknown"} { ],} { "meta-spec" : {{} { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",} { "version" : "2"} { }},} { "name" : "Tmp",} { "no_index" : {{} { "directory" : [} { "t",} { "inc"} { ]} { }},} { "prereqs" : {{} { "build" : {{} { "requires" : {{} { "Test::More" : "0"} { }}} { }},} { "configure" : {{} { "requires" : {{} { "ExtUtils::MakeMaker" : "0"} { }}} { }},} { "runtime" : {{} { "requires" : {{} { "perl" : "5.006"} { }}} { }}} { }},} { "release_status" : "stable",} { "version" : "0.01"} {}}} Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 03 January 2015 16:32 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > Could you update JSON::PP? There's now a version 2.27300. Also, could you run these commands? (They're in Windows format, Linux shell is different syntax) perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON->new->pretty->canonical->encode({ qw(hello one bye two) })" perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, JSON::PP->new->pretty->canonical->encode({ qw(hello one bye two) })" perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, JSON::XS->new->pretty->canonical->encode({ qw(hello one bye two) })" They should all produce various version numbers plus the same JSON: { "bye" : "two", "hello" : "one" } (I have JSON 2.90, JSON::PP 2.27203, JSON::XS 3.01)
RT-Send-CC: ether [...] cpan.org
On Sat Jan 03 11:47:14 2015, duncan.garland@ntlworld.com wrote: Show quoted text
> C:\Windows\system32>perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON-
> >new->pretty- > > canonical->encode({ qw(hello one bye two) })"
> 2.90
[...] Show quoted text
> C:\Windows\system32>perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, > JSON::PP-> > new->pretty->canonical->encode({ qw(hello one bye two) })" > 2.27300
[...] Show quoted text
> C:\Windows\system32>perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, > JSON::XS-> > new->pretty->canonical->encode({ qw(hello one bye two) })" > 3.01
[...] [...] Show quoted text
> G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>perl > Makefile.PL
[...] Show quoted text
> G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>make dist
[...] FYI you can do "make distdir" here and miss out the step of having to re-extract from the archive. Show quoted text
> META.json: > {{{} > { "abstract" : "The great new Tmp!",}
[...] Can I ask you to start adding: warn $INC{'CPAN/Meta.pm'} etc in various places, to track down which module versions you're using? The path I'd like you to track is: ExtUtils::MM_Any::metafile_target (find which CPAN::Meta) CPAN::Meta::as_string (find which $backend it uses - represented next as JSON*) JSON*::encode
Subject: Re: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Sat, 3 Jan 2015 19:01:07 +0000
To: bug-ExtUtils-MakeMaker [...] rt.cpan.org
From: GARLAND DUNCAN <duncan.garland [...] ntlworld.com>
Where do you want me to put those commands, On 03/01/2015, Ed J via RT <bug-ExtUtils-MakeMaker@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > > > On Sat Jan 03 11:47:14 2015, duncan.garland@ntlworld.com wrote:
>> C:\Windows\system32>perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON-
>> >new->pretty- >> > canonical->encode({ qw(hello one bye two) })"
>> 2.90
> [...]
>> C:\Windows\system32>perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, >> JSON::PP-> >> new->pretty->canonical->encode({ qw(hello one bye two) })" >> 2.27300
> [...]
>> C:\Windows\system32>perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, >> JSON::XS-> >> new->pretty->canonical->encode({ qw(hello one bye two) })" >> 3.01
> [...] > [...]
>> G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>perl >> Makefile.PL
> [...]
>> G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>make dist
> [...] > > FYI you can do "make distdir" here and miss out the step of having to > re-extract from the archive. >
>> META.json: >> {{{} >> { "abstract" : "The great new Tmp!",}
> [...] > > Can I ask you to start adding: warn $INC{'CPAN/Meta.pm'} etc in various > places, to track down which module versions you're using? The path I'd like > you to track is: > > ExtUtils::MM_Any::metafile_target (find which CPAN::Meta) > CPAN::Meta::as_string (find which $backend it uses - represented next as > JSON*) > JSON*::encode >
On Sat Jan 03 14:01:19 2015, duncan.garland@ntlworld.com wrote: Show quoted text
> Where do you want me to put those commands,
I'm proposing that you would temporarily edit your installed versions of the various modules, and seeing the warnings generated would tell you you'd located the right file in each case.
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Sun, 4 Jan 2015 15:33:05 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>perl Makefile.PL Warning: something's wrong at C:/strawberry/perl/site/lib/ExtUtils/MM_Any.pm lin e 955. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. Generating a dmake-style Makefile Writing Makefile for Tmp C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. Writing MYMETA.yml and MYMETA.json Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 03 January 2015 19:19 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > On Sat Jan 03 14:01:19 2015, duncan.garland@ntlworld.com wrote:
> Where do you want me to put those commands,
I'm proposing that you would temporarily edit your installed versions of the various modules, and seeing the warnings generated would tell you you'd located the right file in each case.
Another idea: what's your make? Is it dmake, nmake or even gmake?
On Sun Jan 04 17:04:46 2015, SREZIC wrote: Show quoted text
> Another idea: what's your make? Is it dmake, nmake or even gmake?
That is an excellent point! Find out with: perl -e "die $Config{make}" Could you try updating your EUMM to 7.05_05, which changes the way META.* files are generated, and try again? You can easily achieve this with: cpanm ExtUtils::MakeMaker@7.05_05 You can revert to the released one with: cpanm ExtUtils::MakeMaker@7.04
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Mon, 5 Jan 2015 07:54:56 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Hi, When I first tried to run "make dist", it would recognise make, tar or zip. I downloaded and installed the gnu tools for Windows and added GnuWin32\bin to the PATH. When I type the commands you've given me: C:\Users\Duncan>perl -e "die $Config{make};" Died at -e line 1. C:\Users\Duncan>perl -MConfig -e "use Data::Dumper; die Dumper $Config{make};" $VAR1 = 'dmake'; C:\Users\Duncan> I've attached the result of the following command: C:\Users\Duncan>perl -MConfig -e "use Data::Dumper; die Dumper \%Config;" > tmp. txt 2>&1 I'll install EUMM 7.05_05 this evening and let you know the results. Regards Duncan Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 04 January 2015 23:01 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > On Sun Jan 04 17:04:46 2015, SREZIC wrote:
> Another idea: what's your make? Is it dmake, nmake or even gmake?
That is an excellent point! Find out with: perl -e "die $Config{make}" Could you try updating your EUMM to 7.05_05, which changes the way META.* files are generated, and try again? You can easily achieve this with: cpanm ExtUtils::MakeMaker@7.05_05 You can revert to the released one with: cpanm ExtUtils::MakeMaker@7.04
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Mon, 5 Jan 2015 07:56:18 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Show quoted text
-----Original Message----- From: Duncan Garland via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 05 January 2015 07:55 To: DUNCAN@cpan.org Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > Hi, When I first tried to run "make dist", it would recognise make, tar or zip. I downloaded and installed the gnu tools for Windows and added GnuWin32\bin to the PATH. When I type the commands you've given me: C:\Users\Duncan>perl -e "die $Config{make};" Died at -e line 1. C:\Users\Duncan>perl -MConfig -e "use Data::Dumper; die Dumper $Config{make};" $VAR1 = 'dmake'; C:\Users\Duncan> I've attached the result of the following command: C:\Users\Duncan>perl -MConfig -e "use Data::Dumper; die Dumper \%Config;" > tmp. txt 2>&1 I'll install EUMM 7.05_05 this evening and let you know the results. Regards Duncan
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 04 January 2015 23:01 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > On Sun Jan 04 17:04:46 2015, SREZIC wrote:
> Another idea: what's your make? Is it dmake, nmake or even gmake?
That is an excellent point! Find out with: perl -e "die $Config{make}" Could you try updating your EUMM to 7.05_05, which changes the way META.* files are generated, and try again? You can easily achieve this with: cpanm ExtUtils::MakeMaker@7.05_05 You can revert to the released one with: cpanm ExtUtils::MakeMaker@7.04

Message body is not shown because sender requested not to inline it.

Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Mon, 5 Jan 2015 21:06:36 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
C:\Windows\system32>cpanm ExtUtils::MakeMaker@7.05_05 --> Working on ExtUtils::MakeMaker Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.05_05.t ar.gz ... OK Configuring ExtUtils-MakeMaker-7.05_05 ... OK Building and testing ExtUtils-MakeMaker-7.05_05 ... FAIL ! Installing ExtUtils::MakeMaker failed. See C:\Users\Duncan\.cpanm\work\1420490 400.3104\build.log for details. Retry with --force to force install it. C:\Windows\system32> Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 04 January 2015 23:01 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > On Sun Jan 04 17:04:46 2015, SREZIC wrote:
> Another idea: what's your make? Is it dmake, nmake or even gmake?
That is an excellent point! Find out with: perl -e "die $Config{make}" Could you try updating your EUMM to 7.05_05, which changes the way META.* files are generated, and try again? You can easily achieve this with: cpanm ExtUtils::MakeMaker@7.05_05 You can revert to the released one with: cpanm ExtUtils::MakeMaker@7.04
Download build.log
application/octet-stream 75.8k

Message body not shown because it is not plain text.

Thanks for the build.log! That shows a minor "offside trap" in that we've modified your EUMM to make warnings, which the tests see as a failure. You'll need to use something like: cpanm --force ExtUtils::MakeMaker@7.05_05
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Tue, 6 Jan 2015 21:11:34 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
OK, thanks. I can't do anything for a couple of days, but I'll get back to you. Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 06 January 2015 00:40 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > Thanks for the build.log! That shows a minor "offside trap" in that we've modified your EUMM to make warnings, which the tests see as a failure. You'll need to use something like: cpanm --force ExtUtils::MakeMaker@7.05_05
On 2015-01-05 02:55:17, duncan.garland@ntlworld.com wrote: Show quoted text
> Hi, > > When I first tried to run "make dist", it would recognise make, tar or > zip. I downloaded and installed the gnu tools for Windows and added > GnuWin32\bin to the PATH. > > When I type the commands you've given me: > > C:\Users\Duncan>perl -e "die $Config{make};" > Died at -e line 1. > > C:\Users\Duncan>perl -MConfig -e "use Data::Dumper; die Dumper > $Config{make};" > $VAR1 = 'dmake';
You seem to use "make". Maybe "make" is not "dmake" on your system? What if you're using "dmake" instead of "make"?
Subject: RE: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
Date: Sun, 11 Jan 2015 13:27:37 -0000
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>, <DUNCAN [...] cpan.org>
From: "Duncan Garland" <duncan.garland [...] ntlworld.com>
Hi Ed, I've followed your instructions and I'm now getting valid JSON, which is great. There are some warnings about an invalid licence. I haven't tried uploading anything to CPAN with the new set up. I've cut and pasted the terminal output into this email: C:\Windows\system32>cpanm --force ExtUtils::MakeMaker@7.05_05 --> Working on ExtUtils::MakeMaker Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.05_05.t ar.gz ... OK Configuring ExtUtils-MakeMaker-7.05_05 ... OK Building and testing ExtUtils-MakeMaker-7.05_05 ... FAIL ! Testing ExtUtils-MakeMaker-7.05_05 failed but installing it anyway. Successfully installed ExtUtils-MakeMaker-7.05_05 (upgraded from 7.04) 1 distribution installed +++++++++++++++++++++++++++++++++++ G:\Documents\PerlSystems>module-starter --module Tmp --author DMG --email duncan .garland@ntlworld.com Added to MANIFEST: Changes Added to MANIFEST: ignore.txt Added to MANIFEST: lib/Tmp.pm Added to MANIFEST: Makefile.PL Added to MANIFEST: MANIFEST Added to MANIFEST: README Added to MANIFEST: t/00-load.t Added to MANIFEST: t/boilerplate.t Added to MANIFEST: t/manifest.t Added to MANIFEST: t/pod-coverage.t Added to MANIFEST: t/pod.t Created starter directories and files G:\Documents\PerlSystems> G:\Documents\PerlSystems>cd Tmp G:\Documents\PerlSystems\Tmp>perl Makefile.PL Checking if your kit is complete... Looks good C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. Invalid LICENSE value 'Artistic_2_0' ignored C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. Generating a dmake-style Makefile Writing Makefile for Tmp C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. Invalid LICENSE value 'Artistic_2_0' ignored C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. C:/strawberry/perl/site/lib/CPAN/Meta.pm 2.143240 at C:/strawberry/perl/site/lib /CPAN/Meta.pm line 598. Writing MYMETA.yml and MYMETA.json G:\Documents\PerlSystems\Tmp>make distdir "C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e rm_rf -- Tmp-0.01 "C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Manifest=manicopy,maniread" \ -e "manicopy(maniread(),'Tmp-0.01', 'best');" mkdir Tmp-0.01 mkdir Tmp-0.01/t mkdir Tmp-0.01/lib {Generating META.yml} {Generating META.json} G:\Documents\PerlSystems\Tmp> METEA.json contains valid JSON according to jsonlint.com +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Regards Duncan Show quoted text
-----Original Message----- From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Sent: 06 January 2015 00:40 To: DUNCAN@cpan.org Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7 <URL: https://rt.cpan.org/Ticket/Display.html?id=101205 > Thanks for the build.log! That shows a minor "offside trap" in that we've modified your EUMM to make warnings, which the tests see as a failure. You'll need to use something like: cpanm --force ExtUtils::MakeMaker@7.05_05
On Sun Jan 11 08:28:13 2015, duncan.garland@ntlworld.com wrote: Show quoted text
> I've followed your instructions and I'm now getting valid JSON, which > is great.
That IS great. If you want to get rid of the now-unnecessary warnings from CPAN::Meta, you could reinstall with: cpanm --reinstall CPAN::Meta Show quoted text
> There are some warnings about an invalid licence.
Those are correct, and possibly a bug in module-starter which you might report. See valid values at https://metacpan.org/pod/CPAN::Meta::Spec#license Show quoted text
> I haven't tried uploading anything to CPAN with the new set up.
I'm going to mark this as resolved, but if any further problems arise, please add to the ticket and I'll try to help you fix it.