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

[NO-ISSUE] License check #6174

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tkobayas
Copy link
Contributor

@tkobayas tkobayas commented Nov 27, 2024

  • Remaining Category A license
  • Remove duplicate headers

Not urgent. This is not a blocker of 10.0.0

- Remaining Category A license
- Remove duplicate headers
- Fix .rat-excludes

------------------------------------------------------------------------------------
for drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/OpenBitSet.java
drools-util/src/main/java/org/drools/util/bitmask/OpenBitSet.java
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not understanding why the Python license is necessary for our OpenBitSet, did we take the implementation from Python? Also is the whole history of Python really part of the license?

Copy link
Contributor Author

@tkobayas tkobayas Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry that I didn't provide the information first.

https://github.com/apache/incubator-kie-drools/blob/main/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/OpenBitSet.java#L901-L919

     *  NOTE: this was originally borrowed from Python 2.4.2
     *  listobject.c sources (attribution in LICENSE.txt), but
     *  has now been substantially changed based on
     *  discussions from java-dev thread with subject "Dynamic
     *  array reallocation algorithms", started on Jan 12
     *  2010.

I'm not sure how we should treat "borrowed" and "substantially changed" and it's just one method of the class.

@pjfanning Do we need to list this file as Python Software Foundation License? (although this is not urgent --- PSF is Category A)

is the whole history of Python really part of the license?

It's the content of the LICENSE.

https://github.com/python/cpython/blob/main/LICENSE

@pjfanning If we can drop the "history" part, please let me know.

Copy link

@pjfanning pjfanning Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • if the code is borrowed then we need to include details about its LICENSE in our LICENSE
  • this 'history' seems to be part of the LICENSE so we probably need to include it
  • we could raise a LEGAL JIRA to discuss this but in mean time, it seems best to include full text of cpython license

LICENSE Outdated
Comment on lines 661 to 663
for drools-util/src/main/java/org/drools/util/StringUtils.java

Licensed under the Apache License, Version 2.0 (the "License");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/apache/incubator-kie-drools/blob/main/drools-util/src/main/java/org/drools/util/StringUtils.java#L627-L629

     * Borrowed from Spring, under the ASL2.0 license.

8 methods have this comment.

So I added this entry. I cannot find "copyright" of spring framework, so just noted the Apache License.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is best to mention Spring here. It means it is easier for people to track down the original source code.

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

Successfully merging this pull request may close these issues.

3 participants