Wednesday, August 29, 2007

dual-licensed mole mountain

In reference to this

As is popping up in various places in my blog roll..

Someone proposed a patch on LKML that removes some BSD license headers and replaces them with GPLv2 headers. I've previously hinted at my licensing preferences, but they don't even come into play here, oddly enough.

I'll start with what I believe to be the logic of the people in favour of the patch. In code that is "dual-licensed" GPL/BSD, you must satisfy both licenses. Since the GPL is by far the most restrictive, the BSD license becomes moot and the code is essentially only licensed under the GPL because it's requirements are stronger. So removing the BSD license headers is basically like removing dead code.

The main opposition for this seems to be a bunch of BSD fan boys (as in a subset of BSD users) - and by that I mean they're the ones that are yelling loudest. This is probably how and why it spread so far, which is unfortunate.

From what I can see, there are some actual issues behind this though.

First of all, the word "relicensing" is really a bit of a misnomer in this context. Unless another individual is granted the right, through licensing, then only the original author can release their work under an alternative license. All of these licenses have one thing in common: they grant limited rights to the user of the code. Some think the BSD license is unrestricted, but the fact that you must include the copyright notice is actually a restriction. And contrary to some opinions, it doesn't give you the right to relicense the code.

Secondly, "dual-license" has different meanings in different contexts.

On the one hand, you have Qt and MySQL. Both projects are "dual-licensed" as proprietary code and under the GPL. In this case, "dual-licnesed" means that the original copyright holder (Trolltech and MySQL AB, respectively) offer their product under two distinct distribution models. You can use their product under the terms of the GPL, requiring all of your work be "infected" by that license, OR you can pay them a licensing fee so that you can use their product under the terms of their commercial licence, allowing you to do whatever you want with your source code without restriction.

On the other hand, you have code that was originally released under a BSD license by the author. This code is then extended by someone else. This second developer happens to like the GPL, so they tack the GPL on to the header, to cover their modifications. This code is now "dual-licensed" because it is covered by two different licenses. To use the code as it stands, you must satisfy the GPL AND the BSD licensing requirements, leading to my suspected logic described above. What really happens here is that the code becomes useless to a broad set of people because it is hard to separate the differently licensed code. You can't come along and relicense the whole thing as GPL without the permission of the original author who released under a BSD license.

And then on the third hand (yes, we're dealing with mutants), there is code that is explicitly "dual-licensed", where the file header has wording to the effect of "this code may be redistributed under the terms of the GPL OR the BSD license". This is the form of dual-licensing that actually works as people expect. You take the code, you modify it, and you release the derived work under your pick of the two licenses (or continue the dual-license trend), and everyone is happy. The copyright holder has granted you the right to do this.

In the end, the real problem is that the code in question is actually in two parts. One part falls solely under a BSD license, which can't be relicensed except by the author. Modifying this part in the Linux kernel and added a GPL header results in the second form above. The second part of that driver, however, falls under the 3rd variety (explicitly dual-licensed), and can therefore actually be relicensed as proposed.

In the end, what should have happened was something along the lines of:

"here's a patch to make some dual-licensed code GPLv2 only"
"hey, only some of that code is dual-licensed"
"oh? hey, you're right. my bad. fixed."
"cool. wanna grab a beer?"


Instead we got:
"here's a patch to make some dual-licensed code GPLv2 only"
"hey, that's not allowed! I'm telling!"
"oh? hey, you're right. my bad. fixed."
"too late, I've already told everyone on the internet and they're gonna come beat you up"


It even hit digg, so now we have a real party!

Assuming my post doesn't fuel the "debate", this should be over soon. As far as I'm concerned, the only result that matters is that it motivated me to write about it.

So go now and have non-discussions about this with your peers.

No comments: