Skip to content
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

Multiple licenses #13

Open
ronww opened this issue Mar 26, 2015 · 6 comments
Open

Multiple licenses #13

ronww opened this issue Mar 26, 2015 · 6 comments

Comments

@ronww
Copy link

ronww commented Mar 26, 2015

Version 2 of the CPAN Meta Spec specifies the license fields as a list and includes an example with more than 1 license. Currently, this module only allows 1 license.

@Leont
Copy link
Owner

Leont commented Mar 26, 2015

The current paradigm is to detect that from the main source file. I don't know how workable that is with multiple licenses. This needs more investigation.

@ronww
Copy link
Author

ronww commented Mar 26, 2015

Looks like Software::LicenseUtils won't support that.

Maybe have a --license option to override the detected license?

@Leont
Copy link
Owner

Leont commented Mar 27, 2015

Looks like Software::LicenseUtils won't support that.

Probably could be done, but corner cases may be tricky.

Maybe have a --license option to override the detected license?

Probably something using the metamerge file is better.

@ronww
Copy link
Author

ronww commented Mar 27, 2015

Probably something using the metamerge file is better.

If so, then please move the check for a missing license to after the merge.

Also, please change:

croak "Couldn't parse license from $license_section: @guess"

to a "carp" rather than a "croak".

Thanks

@ronww
Copy link
Author

ronww commented Oct 18, 2016

I see that get_license was factored out from get_meta, but any problems getting the license from the .pm file still result in "croak" before metamerge is done.

@Leont
Copy link
Owner

Leont commented Oct 18, 2016

It seems there is no easy way to merge licenses in Software::License either, that is a further problem. Consider this stalled until that is made possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants