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

Add license information for a set of ports #42312

Closed

Conversation

aristotelos
Copy link
Contributor

@aristotelos aristotelos commented Nov 22, 2024

@aristotelos aristotelos force-pushed the add-missing-licenses branch 2 times, most recently from 8ed6c02 to 9915ff5 Compare November 22, 2024 13:47
@WangWeiLin-MV WangWeiLin-MV added the category:code-cleanup This PR cleans up code, without fixing any existing bugs nor adding any features. label Nov 25, 2024
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

The ones that are explicitly null need justification as to why null is incorrect beyond a link to a COPYING file, particularly to COPYING files that are not the license you indicated.

Please:

  • Fix the licenses to match what they actually say, and/or
  • Supply more concrete justification that refutes what was said in the PRs that added "license": null, and/or
  • Remove the edits to ports where you can't do that

and un-draft this PR to request a re-review.

Thanks for your contribution to vcpkg!

"description": "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.",
"homepage": "https://github.com/nigels-com/glew",
"license": "MIT AND BSD-3-Clause",
Copy link
Member

Choose a reason for hiding this comment

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

This is not supported by the http://glew.sourceforge.net/mesa.txt in the description of the PR, but is supported by https://github.com/nigels-com/glew#copyright-and-licensing , so no change requested.

"license": null
"license": "LGPL-2.1-only"
Copy link
Member

Choose a reason for hiding this comment

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

This change is wrong, as portfile.cmake explains. (I'm not sure why you linked to this in the PR description despite it contradicting this) null is correct as some parts of the installed port content are not LGPL-2.1-only, and an explanation is necessary to determine which parts are.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought the libiconv port would not distribute iconv itself, I thought it would only distribute the library. But apparently I am mistaken...

"description": "Xlib-based library for common extensions to the X11 protocol",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxext",
"license": null,
"license": "MIT",
Copy link
Member

Choose a reason for hiding this comment

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

Your own reference link contradicts this; it does not point at the MIT license. I believe MIT-open-group might be correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I think indeed this is a complex list of licenses starting wth MIT-open-group but followed by many others...

Comment on lines -6 to +7
"license": null,
"license": "MIT",
Copy link
Member

Choose a reason for hiding this comment

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

As per your own link, I believe 'MIT' is wrong. I know at the top it says 'is licensed under the MIT license', but the actual license text is not the MIT license. In particular this part is closer to the BSD licenses that forbid use of names: https://gitlab.freedesktop.org/xorg/lib/libxi/-/blob/master/COPYING#L23-L41

I think this should remain null.

Copy link
Contributor Author

@aristotelos aristotelos Nov 26, 2024

Choose a reason for hiding this comment

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

Hmm, it should indeed be more specific. When I paste the various licenses in https://tools.spdx.org/app/check_license/, I get:

  • MIT-open-group
  • SMLNJ
  • MIT-open-group
  • MIT

So it should probably be MIT-open-group AND SMLNJ AND MIT

Comment on lines -6 to +7
"license": null,
"license": "X11",
Copy link
Member

Choose a reason for hiding this comment

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

The https://gitlab.freedesktop.org/xorg/lib/libxtst/-/blob/master/COPYING#L101-L104 part is not the X11 license. I believe null is correct.

Comment on lines -6 to +7
"license": null,
"license": "MIT",
Copy link
Member

Choose a reason for hiding this comment

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

https://gitlab.freedesktop.org/xorg/lib/libxv/-/blob/master/COPYING is not the MIT license. I believe null is correct.

Comment on lines -6 to +7
"license": null,
"license": "BSD-3-Clause",
Copy link
Member

Choose a reason for hiding this comment

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

I think this one is OK. https://github.com/google/snappy/blob/32ded457c0b1fe78ceb8397632c416568d6714a0/COPYING#L32C1-L32C65 is here and says testdata is licensed differently, but the port does not install the testdata.

Comment on lines 6 to +7
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxtrans",
"license": null,
"license": "MIT-open-group",
Copy link
Member

Choose a reason for hiding this comment

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

This is not MIT-open-group: https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/blob/master/COPYING#L103-L121

I believe null is correct.

Comment on lines -6 to +7
"license": null,
"license": "LGPL-2.1-or-later",
Copy link
Member

Choose a reason for hiding this comment

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

I don't think https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/libmount/COPYING is sufficient to prove this, https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/README.licensing as the port references explicitly says that the COPYING part only applies to files without their own license inside. #35738 was justified in setting this to null. Or did you actually check every source file?

@BillyONeal BillyONeal marked this pull request as draft November 25, 2024 22:00
@aristotelos
Copy link
Contributor Author

For now, I am going to abandon this PR, as I am not entirely sure about how the license texts should be matched against a template.

@BillyONeal Thanks for the thorough review, and sorry for my lack of confidence to continue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code-cleanup This PR cleans up code, without fixing any existing bugs nor adding any features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants