Skip Menu |

This queue is for tickets about the HTML-Template-Pro CPAN distribution.

Report information
The Basics
Id: 44210
Status: resolved
Priority: 0/
Queue: HTML-Template-Pro

People
Owner: Nobody in particular
Requestors: imp [...] hannover.ccc.de
Cc:
AdminCc:

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



Subject: please add license information on the cpan page
Date: Mon, 16 Mar 2009 20:28:50 +0100
To: bug-HTML-Template-Pro [...] rt.cpan.org
From: imp <imp [...] hannover.ccc.de>
Heyho, please add license information on the cpan page: http://search.cpan.org/~viy/HTML-Template-Pro-0.72/ . the README says it's gpl-2. Thanks, imp
hmm... how?
Subject: Re: [rt.cpan.org #44210] please add license information on the cpan page
Date: Mon, 16 Mar 2009 20:48:53 +0100
To: bug-HTML-Template-Pro [...] rt.cpan.org
From: imp <imp [...] hannover.ccc.de>
Igor Yu. Vlasenko via RT wrote: Show quoted text
guess you only need to add a license line like: license: perl (right now there is just: "license: ~") to your META.yml so it can be parsed :) (but I dunno if it's all you have to do). imp
Пнд. Мар. 16 15:49:05 2009, imp@hannover.ccc.de писал: Show quoted text
> guess you only need to add a license to your META.yml
done in .git
Subject: Re: [rt.cpan.org #44210] please add license information on the cpan page
Date: Mon, 16 Mar 2009 21:11:30 +0100
To: bug-HTML-Template-Pro [...] rt.cpan.org
From: imp <imp [...] hannover.ccc.de>
Igor Yu. Vlasenko via RT wrote: Show quoted text
> done in .gi
thanks :)
now it is really done - commit c209a7d: fixed license I got it. It is Makefile.Pl that should be fixed. + LICENSE => 'perl or LGPL2+',

HI there, seems this bug has cropped up again. In truth, it was really never "resolved", just it was resolved enough for most people not to notice.

   https://metacpan.org/module/HTML::Template::Pro&nbsp; # on the left.
 

Its mostly because the literal string 'perl or LGPL2+' is not recognised by either the META1.4 or META2.0 Specifications.

According to the META1.4 spec , a valid license string can only be one of the following:

https://metacpan.org/module/Module::Build::API#license

And this is somewhat limiting.

 

Your choices are as follows:

1. Use only a license string from the above list.

2. Upgrade to a very recent version of ExtUtils::MakeMaker that supports emitting META.json ( in the META2.0 format )  which will let you then specifiy an array as your license string, ie: 

LICENSE => [ 'perl', 'lgpl_2_1']  

Which will then populate the META.json (  2.0 spec ) correctly as :

 "license" : [
      "perl_5",
      "lgpl_2_1"
   ],

And populate the META.yaml ( 1.4 spec )  as the closest approximation supported

license: unknown

I tested this myself by augmenting your Makefile.PL as stated above and the resulting files in my "make distdir" came out like this:

https://gist.github.com/1937763

But Do note I'm using an incredibly recent ExtUtils::MakeMaker for this ( blead perl  )  and I'm not sure how recent a version you need ( But I *Can* tell you 6.56 is too old )

This will also likely require you to depend on a very recent version of EUMM and propagate that dependency to your users.

 

Hope this helps.