-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
note license: gplv2 vs. the gpl-3.0.txt link trs++ #27
Comments
Would it be a lot of work to make a pull-request with this? |
mohawk2 I have just refreshed my memory of this topic, and am going to dump some more info here for discussion |
the following is taken from M::I v1.08 #Stolen from M::B
my %license_urls = (
perl => 'http://dev.perl.org/licenses/',
apache => 'http://apache.org/licenses/LICENSE-2.0',
apache_1_1 => 'http://apache.org/licenses/LICENSE-1.1',
artistic => 'http://opensource.org/licenses/artistic-license.php',
artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php',
lgpl => 'http://opensource.org/licenses/lgpl-license.php',
lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php',
lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html',
bsd => 'http://opensource.org/licenses/bsd-license.php',
gpl => 'http://opensource.org/licenses/gpl-license.php',
gpl2 => 'http://opensource.org/licenses/gpl-2.0.php',
gpl3 => 'http://opensource.org/licenses/gpl-3.0.html',
mit => 'http://opensource.org/licenses/mit-license.php',
mozilla => 'http://opensource.org/licenses/mozilla1.1.php',
open_source => undef,
unrestricted => undef,
restrictive => undef,
unknown => undef,
); |
the above hash has been in M::I for over 4 years with little modification :( |
from CPAN::Meta::Spec meta-2 license info
|
extracted from Software::License apache => 'http://www.apache.org/licenses/LICENSE-1.1',
apache => 'http://www.apache.org/licenses/LICENSE-2.0.txt',
artistic => 'http://www.perlfoundation.org/artistic_license_1_0',
artistic_2 => 'http://www.perlfoundation.org/artistic_license_2_0',
bsd => 'http://opensource.org/licenses/BSD-3-Clause',
gpl => 'http://www.gnu.org/licenses/gpl-3.0.txt',
gpl => 'http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt',
gpl => 'http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt',
lgpl => 'http://www.gnu.org/licenses/lgpl-3.0.txt',
lgpl => 'http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt',
mit => 'http://www.opensource.org/licenses/mit-license.php',
mozilla => 'http://www.mozilla.org/MPL/MPL-1.0.txt',
mozilla => 'http://www.mozilla.org/MPL/MPL-1.1.txt',
open_source => 'http://trolltech.com/products/qt/licenses/licensing/qpl',
open_source => 'http://www.freebsd.org/copyright/freebsd-license.html',
open_source => 'http://www.gnu.org/licenses/agpl-3.0.txt',
open_source => 'http://www.gnu.org/licenses/fdl-1.2.txt',
open_source => 'http://www.gnu.org/licenses/fdl-1.3.txt',
open_source => 'http://www.openoffice.org/licenses/sissl_license.html',
open_source => 'http://www.openssl.org/source/license.html',
open_source => 'http://www.zlib.net/zlib_license.html',
perl => 'http://dev.perl.org/licenses/',
unrestricted => 'http://h71000.www7.hp.com/doc/83final/BA554_90007/apcs02.html', |
That seems like the tests aren't catching what the meta spec says is/isn't valid. |
thus if we only allow meta 1.x names that are checkable via Software::License we get the following apache => 'http://www.apache.org/licenses/LICENSE-2.0.txt',
artistic => 'http://www.perlfoundation.org/artistic_license_1_0',
artistic_2 => 'http://www.perlfoundation.org/artistic_license_2_0',
bsd => 'http://opensource.org/licenses/BSD-3-Clause',
gpl => 'http://www.gnu.org/licenses/gpl-3.0.txt',
lgpl => 'http://www.gnu.org/licenses/lgpl-3.0.txt',
mit => 'http://www.opensource.org/licenses/mit-license.php',
mozilla => 'http://www.mozilla.org/MPL/MPL-1.1.txt',
open_source => undef,
perl => 'http://dev.perl.org/licenses/',
unrestricted => undef,
restrictive => undef,
unknown => undef, |
hence license: gplv2 M::I should have barfed - unknown license name |
comments please :) |
How authoritative is the CPAN::Meta::Spec you're citing? |
mohawk2 as far as I can tell, the current tool-chain uses it as it's reference. Software::License uses it as it's reference so i just followed suit I think the main issues here is that the info in pre M:I v1.10 is over 4 years old ( might be out of date now ) |
Does anyone disagree that the code should follow the spec, and should be tested that it is doing so? |
no I have not received any comments either way I made an assumption, to move forward I think we are at a point were a con-censors is required as to the way forward thoughts ? |
A PR reverting those commits is #30. |
from M::I pod license
license 'perl';
The "license" command specifies the license for the distribution.
Most often this value will be 'perl', meaning "the same as for Perl
itself". Other allowed values include 'gpl', 'lgpl', 'bsd', 'MIT', and
'artistic'.
This value is always considered a summary, and it is normal for authors to
include a LICENSE file in the distribution, containing the full license
for the distribution.
You are also reminded that if the distribution is intended to be uploaded
to the CPAN, it must be an OSI-approved open source license. Commercial
software is not permitted on the CPAN. |
my current thought is to implement the following apache => undef
artistic => 'http://www.perlfoundation.org/artistic_license_1_0',
artistic_2 => 'http://www.perlfoundation.org/artistic_license_2_0',
bsd => 'http://opensource.org/licenses/BSD-3-Clause',
gpl => undef,
lgpl => undef,
mit => 'http://www.opensource.org/licenses/mit-license.php',
mozilla => undef,
open_source => undef,
perl => 'http://dev.perl.org/licenses/',
unrestricted => undef,
restrictive => undef,
unknown => undef, |
if we follow CPAN::META::Spec
resources.license: [optional] so there should be no way M::I would right an incorrect - resources.license plus a barf when an Author uses an unapproved license as per pod. |
@kevindawson While not writing a Also, your statement that "plus a barf when an Author uses an unapproved license as per pod." concerns me because M::I should have no place in deciding an "approved" license. Note that the M::I pod you quote says, "Other allowed values include" (emphasis mine). It doesn't say, "Other allowed values are". Can you tell me what's wrong with simply reverting your commits, as PR #30 does, and then only updating the few license urls that have changed rather than completely changing behaviour in a stable release? I see no reason why we can't preserve backwards compat and update license information where it's out of date. |
A more relevant place to look for the meta v1 names would be the v1.4 spec which references Module::Build::API. |
haarg, thanks for the link the following is from Module::Build::API.
|
the only issue here is with: apache_1_1 from Software::License meta_name: apache |
The version of Module::Build::API I linked to is the version that was current when the 1.4 spec was published. In that version, the 'apache' license linked to http://opensource.org/licenses/apachepl.php, which at the time was the 1.1 license. |
haarg, thanks for the correction, so just as there is more than one meta_name: apache from Software::License and it will be up to the author to append the correct LICENSE file to there distribution |
haarg, your link is APR 28, 2007 were there any changes to supported meta list, re Oslo |
honors meta 1.4 Oslo no more ambigious resources.license: compatable with Software::License data dies on unknown meta_name plus some tests to support above
diff --git a/META.yml b/META.yml
index cefd6f4..b6129c8 100644
--- a/META.yml
+++ b/META.yml
@@ -8,7 +8,7 @@ configure_requires:
ExtUtils::MakeMaker: 6.36
distribution_type: module
dynamic_config: 1
-generated_by: 'Module::Install version 1.06'
+generated_by: 'Module::Install version 1.10'
license: gplv2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,5 +21,5 @@ no_index:
requires:
List::MoreUtils: 0
resources:
version: 0.01
The text was updated successfully, but these errors were encountered: