16

I'm working on a personal project that I'm planning on licensing under GNU Affero GPL. However, I found some code that's licensed under MIT that really want to utilize, but I'm not sure what I should do about licensing.

The rest of the code will be mine under GNU Affero, it's just a source file and a header file that I'm utilizing that's licensed under MIT.

I've read this Q here on Programmers about MIT/GPL code working together, and this one on SO about software under MIT using GPL libraries, as well as several others, but I'm still not entirely clear on what I should do with the licensing.

As far as I can tell, all I need to do is leave the MIT license on the library and include a note in the license file about the two different licenses and what code they apply to, is that correct?

1 Answers1

9

AFAIK, the typical GPL variants apply only to your work "as a whole", and the MIT license is "compatible" with GPL. That means, if parts of your program are under MIT license, that is fine, as long as you do obey to the terms of the MIT license for that part (which is what you have in mind). And the only requirement that license states is

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

Most Linux systems contain MIT licensed parts (like the X Window System) which are under MIT license. The GPL only applies to Linux "as a whole", not to the individual MIT licensed parts. Same will be true for your program if you combine those two licenses in a similar manner.

Doc Brown
  • 218,378