33

I'm confused as to what this license really means.

Say I have a large piece of software I plan on selling and keeping closed source. It makes use of several small resources that are under the MIT license.

Do I just have to copy paste each MIT license with their names in it into the source code? That seems pointless since it will remain closed source.

If the software is distributed by a service like Google Play which only takes a .apk file there's no way to distribute the license with the software, if that's what you're supposed to do.

So in this case would using those small resources licensed under MIT not be allowed? Or what?

Also, in the license text, what does "substantial portions of the Software" mean? Which software? The software that is licensed under MIT? Or any other new software using this MIT licensed software?

I'm quite confused as you can tell, so it would be nice if someone could clarify some of this for me.

EDIT: Additionally, how would someone be able to tell what parts of the code were licensed under MIT? If they are able to tell that somehow, how would they be able to tell which person made that specific portion?

3
  • archive.is/e9wqv#selection-331.30-343.1 , archive.is/ADYgb#selection-117.105-223.16
    – Pacerier
    Aug 24, 2020 at 19:48
  • MIT defines the word Software's meaning for us in [this software and associated documentation files (the "Software")] paragraph, and obviously MIT paragraph starts with "this software" (not "the Software") and puts the quotes around "Software" alone (meaning, wherever "Software" is mentioned from that point on, their original content was meant) and later MIT asks "substantial portions of the Software" to attribute, but remember that Software is their original work (i.e. if you got binary from them, then you must attribute where ever you use that binary, else just ensure you compile/Uglify)
    – Top-Master
    Jul 25, 2021 at 11:18
  • You might wanna take a look at a real world example from Microsoft for their game Gears 5 which uses a lot of libraries and source code from third party vendors, some of which fall under the MIT license: microsoft.com/en-us/legal/products/notices/gears5
    – Sam
    Aug 15, 2021 at 17:16

2 Answers 2

23

There seems to be a misconception with how to comply with the MIT license. Here's the relevant sentence, and only condition in the license apart from the warranty disclaimer:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

You can include the license text in your source file. If you do, and if you distribute your software as source code only, as some OSS do, the license text is automatically visible and right there with the MIT-licensed code. But if you distribute binaries, the license text (typically) gets compiled away, therefore you are no longer fulfilling the single condition in the license. What you need to do is include the license with your binary distributions, maybe as a text file, or embedded in the program's about dialog. For most distribution channels, there's some way of including the source code license(s). For an Android example, look at Settings > About > Legal Information > Open source licenses and enjoy.

As for what "substantial portion of the software" means, it refers to the MIT-licensed code. See this question for what "substantial portion" means: How much is "substantial portion" in MIT licence?

Additionally, how would someone be able to tell what parts of the code were licensed under MIT? If they are able to tell that somehow, how would they be able to tell which person made that specific portion?

If you don't follow the MIT license, you are violating copyright. It's true that it's hard to prove copyright violation if you don't have access to source code, but a court can compel you to divulge your source code so that a judgement can be made. If you've genuinely and blatantly violated copyright, it will be very easy to prove.

6
  • 1
    If I do include the MIT license attached to the binary, how would any person know which part of the program is under the MIT license, and which is proprietary, given that it's all compiled together? (Assume I'm coming from the standpoint of a programmer who has used something that is MIT licensed but wants to keep their own additions completely restricted. That is, I'm worried that people will think that the MIT license applies to the entire binary, instead of just the little snippets of code I used.)
    – Pro Q
    Sep 7, 2019 at 4:50
  • 1
    @ProQ In that case it's probably best to include a message in an additional text file and/or in the software's user interface, explaining that portions of the software are Copyright (c) <year> <your name>, and other portions are Copyright (c) <year> <licensor's name> and MIT-licensed.
    – jkdev
    Jun 29, 2020 at 22:48
  • 1
    @congusbongus, you're saying a website needs to have an about page which shows the attribution? Case law citation needed.
    – Pacerier
    Aug 24, 2020 at 6:45
  • MIT defines the word Software's meaning for us in [this software and associated documentation files (the "Software")] paragraph, and obviously MIT paragraph starts with "this software" (not "the Software") and puts the quotes around "Software" alone (meaning, wherever "Software" is mentioned from that point on, their original content was meant) and later MIT asks "substantial portions of the Software" to attribute, but remember that Software is their original work (i.e. if you got binary from them, then you must attribute where ever you use that binary, else just ensure you compile/Uglify)
    – Top-Master
    Jul 25, 2021 at 11:18
  • While some jurisdictions may define the default meaning of "The Software"; What is the definition of "this" in jurisdiction? MIT License calls the entire original content "this software" and defines "Software" to mean same as that. And although very short, MIT does undeniably specify what "Software" means, and excludes default jurisdiction meanings (which was the right choice, in many countries, jurisdiction meanings differ)
    – Top-Master
    Jul 26, 2021 at 20:01
4

Are you perfectly sure that you will never want to transfer this code to someone else? If you ever want to sell it, or license it, or have a change of heart and make it open source, you'll need to be able to document the provenance. If you throw out all the copyright and license information, you'll be up a creek. If you work for a company, the company should have a policy of this kind just in case the whole place gets sold.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.