MIT License vs GNU GPL v2.0
MIT into GPL-2.0 is fine; the reverse is not.
The same one-way street as with GPL-3.0, and the same trap: a project that says “GPL-2.0 or later” can take the merge one step further than a project pinned to GPL-2.0-only.
Side by side
Rows that differ are marked. Everything else behaves the same in both licences.
| Attribute | MIT License | GNU GPL v2.0 |
|---|---|---|
| OSI approved | Yes | Yes |
| FSF free licence | Yes | Yes |
| Commercial use | Yes | Yes |
| Closed-source product | Yes | No |
| Patent grant | No | Partly |
| Trademark grant | No | No |
| Notice required | Yes | Yes |
| Mark modified files | No | Yes |
| Disclose source | Nothing | Distribution |
| Same licence covers | Nothing | The whole work |
| Network clause | No | No |
| Link into proprietary | Yes | No |
| Relicense freely | Yes | No |
What actually differs
- Closed-source product — Yes for MIT License, No for GNU GPL v2.0.
- Patent grant — No for MIT License, Partly for GNU GPL v2.0.
- Mark modified files — No for MIT License, Yes for GNU GPL v2.0.
- Disclose source — Nothing for MIT License, Distribution for GNU GPL v2.0.
- Same licence covers — Nothing for MIT License, The whole work for GNU GPL v2.0.
- Link into proprietary — Yes for MIT License, No for GNU GPL v2.0.
- Relicense freely — Yes for MIT License, No for GNU GPL v2.0.
Same in both: OSI approved, FSF free licence, Commercial use, Trademark grant, Notice required, Network clause.
Which one to pick
Can you mix them?
MIT License → GNU GPL v2.0
compatible
GNU GPL v2.0 → MIT License
not compatible