views:

682

answers:

5

I have a discussion with a friend regarding the Lesser GNU General Public License, LGPL, for server side code - in this case a PHP library.
He argues that since the PHP application is not distributed to the user - it is merely running on the server - he doesn't have to re-distribute the library sources after he modified it. This is basically the motivation behind the AGPL license. But AFAIK there is no corresponding license for LGPL libraries.
So, the question is: is the LGPL license pointless for PHP libraries, in that the user can modify the library all he wants without having to re-distribute the library? (Assuming the website code is not distributed in turn.)

Edit: There is some confusion on my AGPL example. For GPLed code, you can release under AGPL and have the desired effect (basically: anyone using the code on, in this example, a website, must release the complete sources under an AGPL compliant license.) For LGPL licensed code, there seemed to be no equally functioning license (that would basically work like: anyone can use your library on their website without releasing the full sources, but if she makes changes to your library, she must release the changes.)

Solution: My friend was right, and the solution seems to be to release under LGPLv3 with Affero clause.

A: 

I'm definitely not a lawyer, but I think the difference is that instead of selling your software to the user so they can do (insert service), you're providing the service to them, and using the software you wrote to assist you. You wouldn't be profiting from the sale of your software, just the use of it.

Andy Mikula
The difference between a commercial license and a GNU license, or what do you mean? Ofcourse the LGPL library would be without profit, but it kindof defeats the whole point of LGPL if the users can modify and use the library all they want without contributing it back. But I guess this is the case...
E Dominique
LPGP and GPL don't mention the profit motive.
anon
Right, but what I'm saying is that the users won't be using your software - you will. If you own a restaurant that sells toast, your customers won't be using the toaster themselves....this makes more sense to me than I can properly explain, I think :)
Andy Mikula
@Andy: the whole point of GPLv3 with Affero clause is that toast made with GPLv3 toaster have to be GPLv3. Stallmanist call that "closing the SaaS loophole".
vartec
Fair enough! I don't like it, but I see where they're coming from. It's been awhile since I've tried to muddle my way through the wording of the licenses, too.
Andy Mikula
+1  A: 

Yes, I would not license PHP code under LGPL. Why don't you just use the AGPL? If you don't want to use AGPL, you might as well use something non-restrictive like BSD, because it will have essentially the same affect.

Zifre
I would say that the reason against AGPL in this case is the same as GPL vs. LGPL in the first place - you don't want to impose a license on the user of your library, only on the library itself. Isn't a "LAGPL" a missing kind of license?
E Dominique
"LAGPL" would be LGPLv3 with Affero clause.
vartec
+4  A: 

If you don't distribute the code - i.e. if it is for use in your company or on your own web server (even an Internat facing one) then you do not need to provide the changes you have made. This is true for both LGPL and GPL - the key is distribution.

And please note that licenses cannot be retroactive - the text of the license that came with the software you are asking about is the only thing you need worry about.

anon
That *was* true. Until GPLv3, which allows Affero clause. "versions of the AGPL were designed to close a perceived application service provider "loophole" (the "ASP loophole") in the ordinary GPL "
vartec
"provision requires that the complete source code be made available to any network user of the AGPL-licensed work, typically a web application"
vartec
http://www.fsf.org/blogs/licensing/2007-03-29-gplv3-saas
vartec
OK - but I'm not clear if the questioners code actually is AGPL licensed - he seems to be asking about LGPL and asking about AGPL in passing.
anon
the problem is that LGPLv3 allows Affero clause.
vartec
If the actual license text for the version of the software the questioner is asking about does not contain such a clause, then there is no problem.
anon
+2  A: 

That depends if it's LGPLv2 or LGPLv3. If it's LGPLv2 you're safe. If it's LGPLv3, that depend if it has infamous Affero clause. In later case I'd suggest you stay away from it and choose something Open Source instead.

On the other hand remember that under LGPL you only have to distribute changes to the library itself, not the source of entire application.

vartec
Hum, are you sure? How then to interpret 2a: "The modified work must itself be a software library" and 3: "Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library"?
Jonas Byström
LGPL says: "A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License."
vartec
A: 

I am not a lawyer, this is not legal advice, and I'm not responsible for what you do with this.

I just recently looked into this issue myself and this is what I found:

http://mohammed.morsi.org/blog/?q=node/270

Mo