-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Formulae missing license stanza #58225
Comments
license
stanza
Would anyone know what licence code to use for the
|
SPDX says blessing. |
Thank you @gromgit -- I should have searched for the word |
@SeekingMeaning could you remove the formula that doesn't have a valid license and disable the one that doesn't have any license? |
Please see the PR #58414 for an example of how to handle formula with multiple licenses. |
I have 97 formula installed on my machine, and I figured that the best place to start helping with this issue was to add a license stanza to each of my installed formula. Of the 97 formula I have installed, 93 of them now have a license stanza, leaving just 4 without. These are: For For For For |
Pretty sure qt is LGPL3: https://doc.qt.io/qt-5/opensourcelicense.html popt looks like MIT with an advertising clause. gd... looks like a weird MIT but it's hard to say. |
|
Let's cheat and just look at what Debian says: https://salsa.debian.org/debian/docbook5-xml/-/raw/master/debian/copyright I believe our |
The DocBook DTD/schema license looks like a condensed I guess it boils down to the purpose of this whole licensing issue (apologies if I missed any previous discussion). If it's simply to record software licenses in a form that can be looked up on SPDX, then "MIT" is probably the closest match. |
Qt has multiple licenses: LGPLv3 for some bits, GPLv3 for others and all available under commercial licenses. |
So in summary:
Thoughts? |
I think that comes from a decision I made to allow this in a new formula. I completely agree with this statement, but I don't think we should be blocking normal core operations until we have a complete license implementation. Allowing new formula to do this so they don't have to wait 👍, adding it to existing formula 👎 . |
So to clarify, this is just talking about the large batch PRs? I interpreted this to main we should just put a hold on any license stuff for now but based on #59231 and #59232 it sounds like we want to move forward with adding licenses for individual formulae as they are updated normally. Either way, it sounds like this is the list of what we're currently missing:
I think it's probably fine to move ahead with individual license PRs that don't fall into any of the above categories and wouldn't have any incorrect or misleading information. |
It is/was just a statement on making comments when multiple licenses apply. If people want to add a license to a formula and that is possible using the current state of the DSL I'm all for it. I don't think we should be batch adding licenses unless we're really sure though. |
wireshark license seems little bit complicated too, #59603 (comment) |
Any thoughts about what to do with the rmtrash license? I downloaded the source code but the only references to copyright are these two lines in the manpage:
|
If it's not a valid license it needs to be removed from homebrew. |
Contact the upstream author to ask what the license is. Their e-mail address is directly above the copyright statement. If we haven't heard from the upstream author in say thirty days, remove the formula. |
The same author's other tool |
I've just messaged the author, using the email address in the manpage and the one listed in the contact page. I'll keep you posted about any response. |
Homebrew/brew#8260 has been merged which means that we have some new license syntax options available. Here's a brief summary, because there have been some changes since the most recent update in this issue. Note that this functionality has been added, but will not be able to be used in homebrew-core formulae until a new version of Homebrew has been released. Single licenses can be specified in the same way license "MIT" Use a symbol for the public domain license :public_domain Add a license "EPL-1.0+" Use license any_of: ["MIT", "0BSD"] Use license all_of: ["MIT", "0BSD"] Use license "MIT" => { with: "LLVM-exception" } You can nest these expressions as needed license any_of: [
"MIT",
all_of: ["0BSD", "Zlib", "Artistic-1.0+"],
"Apache-2.0" => { with: "LLVM-exception" },
] |
Thanks much, @Rylan12! Since it's quite a substantive list, perhaps all these details can be put in a separate page and linked from https://docs.brew.sh/Formula-Cookbook#fill-in-the-license? |
Good idea! There's a minimal explanation here but we should definitely add it to the formula cookbook as well. I'll open a PR sometime today or tomorrow when I have some time. |
These formulae should be updated: % grep -R 'license \[' .
./Formula/transmission-cli.rb: # license ["GPL-2.0", "GPL-3.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/libnice.rb: # license ["LGPL-2.1", "MPL-1.1"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/ttf2eot.rb: # license ["LGPL-2.0", "BSD-*"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/rainbarf.rb: # license ["Artistic-1.0", "GPL-1.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/libiodbc.rb: # license ["BSD-3-Clause", "LGPL-2.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/ipfs.rb: # license ["Apache-2.0", "MIT"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/mongoose.rb: # license ["GPL-2.0", "Cesanta"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/libical.rb: # license ["LGPL-2.1", "MPL-2.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/pkcs11-helper.rb: # license ["BSD-3-Clause", "GPL-2.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/nettle.rb: # license ["GPL-2.0", "GPL-3.0", "LGPL-3.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/log4cplus.rb: # license ["Apache-2.0", "BSD-2-Clause"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/hypre.rb: # license ["MIT", "Apache-2.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/peg-markdown.rb: # license ["GPL-2.0", "MIT"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/libfreenect.rb: # license ["Apache-2.0", "GPL-2.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/plenv.rb: # license ["Artistic-1.0", "GPL-1.0"] - pending https://github.com/Homebrew/brew/pull/7953
./Formula/osquery.rb: # license ["Apache-2.0", "GPL-2.0-only"] - pending https://github.com/Homebrew/brew/pull/7953 |
Seeing as the tracking issue is not really used, I'm closing it. |
See https://github.com/SeekerTestBot/license-checklist/blob/master/all.md
Valid license list: https://spdx.org/licenses/
The text was updated successfully, but these errors were encountered: