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

BSD2_Header templates doesn't match opensource.org reference #109

Closed
crdelsey opened this issue Sep 27, 2018 · 8 comments · Fixed by #205
Closed

BSD2_Header templates doesn't match opensource.org reference #109

crdelsey opened this issue Sep 27, 2018 · 8 comments · Fixed by #205
Labels
enhancement New feature or request

Comments

@crdelsey
Copy link

The reference license at opensource.org uses the phrase COPYRIGHT HOLDER OR CONTRIBUTORS whereas the license template in the ament_copyright tool uses the phrase COPYRIGHT OWNER OR CONTRIBUTORS.

This will cause the copyright linter to fail any source using the standard license text.

@dirk-thomas
Copy link
Contributor

The current snippet matches the copyright notice present in several hundreds of files in ROS 2 (and 1) packages. So changing this from one to the other is not an option.

It would be great making the linter more flexible though to accept both variations. Any PR towards this would be highly appreciated.

@crdelsey
Copy link
Author

crdelsey commented Oct 8, 2018

I kind of figured that would be the answer. I noticed that https://spdx.org lists the phrases of the licenses that are allowed to change while still being considered the same license. I figure that would be a good starting point.

@cottsay
Copy link
Contributor

cottsay commented Jul 23, 2019

Would it be acceptable to simply add another set of templates which matches the opensource.org phrasing and formatting?

The only other solutions I can see are either to curate a set of rules where phrases could change, or introduce an expression that we could embed within the templates that could match multiple wordings or phrases. Either solution sounds much more involved than just maintaining multiple forms as separate templates.

@dirk-thomas
Copy link
Contributor

Would it be acceptable to simply add another set of templates which matches the opensource.org phrasing and formatting?

Sounds good to me too.

@crdelsey
Copy link
Author

I'm ok with that solution. I think I've got other license headers that will need more, but that's a separate issue.

@Blast545
Copy link
Contributor

#205 should close this issue

@tfoote
Copy link
Member

tfoote commented Jan 30, 2020

I would not close this with #205 but think that we should remove those entries. We should not have an unused license in our linters lest it be used by someone to make their linters pass. The original author doesn't know where it came from: ros2/geometry2#222 (comment)

@Blast545
Copy link
Contributor

@tfoote The problem is what dirk-thomas addressed some time ago:

The current snippet matches the copyright notice present in several hundreds of files in ROS 2 (and 1) packages. So changing this from one to the other is not an option.

Removing that license would cause problems with old code, that's why the 'bsd2' license shouldn't be changed, and instead a new one was added.

tfoote added a commit that referenced this issue Jan 31, 2020
Flagged in #109 this  template is not a valid template for a license.
The correct license was added in #205

Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants