-
Notifications
You must be signed in to change notification settings - Fork 14
Licenses #277
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
Licenses #277
Conversation
|
Thanks for pushing this forward. I'm not really sure that we should funnel the license through a custom property. After all, the license can be an expression where parts can be standard identifiers and another part a custom license. So my intention was that we keep the existing The My hope is that
Maybe that is Ok as well. I thought that for any |
For standard licenses it's IMO sufficient to put the license information (not the license text) into to package. Otherwise we'd need to have all texts somewhere available and all packages would depend on the license-texts package? Anyway - how is it supposed to work to collect these licenses later if any standard-licensed-package has the same
Sorry - I still don't get it. Can you give me an example? If there is a package with different licenses we'd have metaEnvironment:
PKG_LICENSE: "LicenseRef-MyExample"
PKG_LICENSE_PATH: |
lib1:foo_license.txt
lib2:bar_license.txtand package or ? |
First of all, this file won't be a single license. It is a license expression. So it will contain something like
So the package contains two libraries with different licenses? Then I would say it should look like this: metaEnvironment:
PKG_LICENSE: "LicenseRef-Foo AND LicenseRef-Bar"
PKG_LICENSE_PATH: |
Foo:foo_license.txt
Bar:bar_license.txtIf the libraries were not split into a multiPackage, I would argue that both licenses must be obeyed. Hence the "AND" in the license expression. Then the Does this make sense? |
|
I updated the PR and added missing licenses. There are still some recipes without a While many of them are expected and do not depend on the Also I'd like to do the split into multipackages in a $later change if the is really necessary. Especially for the To avoid merge-conflicts I added the ninja-license to #282 |
ff14a08 to
c947bf5
Compare
jkloetzke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Just a few nitpicks...
3c28fe7 to
6757869
Compare
|
Thanks for the review 👍 |
|
CI is still failing because |
|
Thanks! |
A first shot of the suggestion in #258 (comment)
Uses a custom recipe property for some basic license expression checks and string functions to pick up the custom properties by a license class handling the packaging of the license files.
I'm not sure of I got the custom license handling right. At least I wasn't sure how to interpret the part before the colon in the example of the
PKG_LICENSE_PATH? Should this go into a separate directory in$ID? 🤔Also I think the
Idcan be easily generated from thepackageNameso it might not be necessary to add aIdin the recipe?As an example I used
devel::m4as it was the first package failing due to a missing license ;) The are many more to follow...