Skip Menu |

This queue is for tickets about the PAR-Dist CPAN distribution.

Report information
The Basics
Id: 72112
Status: resolved
Priority: 0/
Queue: PAR-Dist

People
Owner: Nobody in particular
Requestors: pozpl [...] dvo.ru
Cc:
AdminCc:

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



Subject: PAR::Dist META.json problem
Date: Wed, 02 Nov 2011 16:38:45 +1100
To: bug-par [...] rt.cpan.org
From: "pozpl [...] dvo.ru" <pozpl [...] dvo.ru>
Hi all. I've started to use PAR::Dist::FromCPAN to create standalone repository for my project, but during compilation of some modules it fails. Some analysis show that this modules do not have proper META.yml file but have META.json. In building time as I can see some data from this META.json are stored in MYMETA.yml. In the code CPAN::Distribution module I have read that " # if MYMETA.yml exists, that takes precedence over META.yml". So I've wrote small patch to fix problem with installation.

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

CC: par [...] perl.org, jesse+par [...] bestpractical.com
Subject: Re: [rt.cpan.org #72112] PAR::Dist META.json problem
Date: Sat, 05 Nov 2011 12:08:50 +0100
To: bug-PAR-Dist [...] rt.cpan.org
From: Steffen Mueller <smueller [...] cpan.org>
Hi, On 11/02/2011 06:39 AM, pozpl@dvo.ru via RT wrote: Show quoted text
> I've started to use PAR::Dist::FromCPAN to create standalone repository > for my project, but during > compilation of some modules it fails. Some analysis show that this > modules do not have proper META.yml > file but have META.json. In building time as I can see some data from > this META.json are stored in MYMETA.yml. > In the code CPAN::Distribution module I have read that " # if MYMETA.yml > exists, that takes precedence over META.yml". > So I've wrote small patch to fix problem with installation.
Indeed. MYMETA.yml is the authoritative source of any dependency information and other meta info. Its inception was after I last touched the PAR::Dist code and I don't think anybody else has since. The problem with MYMETA is ordinarily that it's not available before building, so most tools can't rely on it. This is different for the part of PAR::Dist that you care about as it comes in only after build time. Either way, we may have to eventually add META.json support to PAR::Dist. The modules currently does many nasty things in order not to require a YAML parser in order to work out of the box on old perls. Repeating that for JSON would be horrible. When I spent a bit of time to think about it, I couldn't come up with a very good solution. If it's the case that the recent toolchain will always generate MYMETA.yml even if there was a META.json, then we just bought some time. I'll upload a patched PAR::Dist 0.48 within the hour. Best regards, Steffen
Thanks, applied. Will hit your CPAN mirrors soon as version 0.48. --Steffen