using GPL licenced code commercially

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Skgoa
Jedi Master
Posts: 1389
Joined: 2007-08-02 01:39pm
Location: Dresden, valley of the clueless

using GPL licenced code commercially

Post by Skgoa »

I tried to research this, but got conflicting answers:
Let's assume I have code that was released under GPL. I would like to use that in a commercial project I am working on. Do I have to release my whole project's source code under GPL, too? Or only the parts of the importet code that I modified? Or not at all?
http://www.politicalcompass.org/test
Economic Left/Right: -7.12
Social Libertarian/Authoritarian: -7.74

This is pre-WWII. You can sort of tell from the sketch style, from thee way it refers to Japan (Japan in the 1950s was still rebuilding from WWII), the spelling of Tokyo, lots of details. Nothing obvious... except that the upper right hand corner of the page reads "November 1931." --- Simon_Jester
Dwelf
Youngling
Posts: 55
Joined: 2011-05-11 05:30am

Re: using GPL licenced code commercially

Post by Dwelf »

If you integrate the GPL code into your own project in any significant manner then you release the code in any form to the public you must release or offer to release the source for that program. The code release as far as I can tell is an all or nothing thing. The version of GPL will be your problem here GPL2 should allow you to release the product not under GPL assuming the GPL code makes up a small portion of the program. GPL3 does not.

Linking to a library that is GPL has a pretty mixed set of views but if you take the spirit of it your not supposed to do that either. If your lucky the code you want to use is also available under LGPL and you should be ok to link to it.

In general if you can find a non GPL alternative for use with a comercial application

I am not a lawyer so depending on the size of this work you may want to consult one.
User avatar
Beowulf
The Patrician
Posts: 10619
Joined: 2002-07-04 01:18am
Location: 32ULV

Re: using GPL licenced code commercially

Post by Beowulf »

I do believe that if you partition the code such that you have two separate executables, with all the GPL code residing in one, then you can keep the code for the other exe confidential. I've seen this dodge used successfully. The GPL'd exe does have to successfully compile, of course.

I am not a lawyer
"preemptive killing of cops might not be such a bad idea from a personal saftey[sic] standpoint..." --Keevan Colton
"There's a word for bias you can't see: Yours." -- William Saletan
rapidsquirrel
Youngling
Posts: 80
Joined: 2008-09-12 11:18am

Re: using GPL licenced code commercially

Post by rapidsquirrel »

From what I understand (it's been a while since I've read the GPL license), if you use GPL code in your own code, your code has to be licensed under GPL for you to distribute it. If you link to libraries, then you must provide the source code for those libraries (or provide links to where one can find the source code for them).

I'll admit though this is from my reading of the GPLv2 and I have yet to read the GPLv3. Have you read the related GPL version for the code you are going to incorporated? There shouldn't be anything that will stop you using the code commercially, just extra requirements.

My advice would be to read the GNU website. The GPL is written in plain English and they do their best to attempt to answer any and all questions. If you still aren't sure, as dwelf said, consult a lawyer.
User avatar
Sarevok
The Fearless One
Posts: 10681
Joined: 2002-12-24 07:29am
Location: The Covenants last and final line of defense

Re: using GPL licenced code commercially

Post by Sarevok »

From what I understand if you are not statically linking it does not count as a derived work.
I have to tell you something everything I wrote above is a lie.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Re: using GPL licenced code commercially

Post by phongn »

Skgoa wrote:I tried to research this, but got conflicting answers:
Let's assume I have code that was released under GPL. I would like to use that in a commercial project I am working on. Do I have to release my whole project's source code under GPL, too? Or only the parts of the importet code that I modified? Or not at all?
In addition to all the above advice - talk to a lawyer since money appears to be involved.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Re: using GPL licenced code commercially

Post by phongn »

Destructionator XIII wrote:My rule of thumb is to say "no" to almost all open source code for commercial projects (and to many open source projects too. I like the GPL, but it comes at a price. And the BSD license just fucking sucks).
Using BSD-licensed (or, for that matter, Apache-licensed) code is pretty trivial, though? You just have to include the license note somewhere.
Dwelf
Youngling
Posts: 55
Joined: 2011-05-11 05:30am

Re: using GPL licenced code commercially

Post by Dwelf »

The BSD style licenses are probably the most developer friendly open source licenses available. That particular clause is almost trivial to meet. Assuming zipping the exe with a txt file is too complicated, just have it write the license to disk next to the executable when run that should tick that box.

Your issues with being told what to do aside, the requirement to convey the license is there to prevent someone taking your open source project calling it their own and selling it which is just plain dishonest. The clause gives the author a legal standing to stop that behavior. Considering that most open source project are for fun and resume padding the attribution is pretty much the point of the code.
Dwelf
Youngling
Posts: 55
Joined: 2011-05-11 05:30am

Re: using GPL licenced code commercially

Post by Dwelf »

Destructionator XIII wrote: Proprietary licenses are easily better; they actually put cash in developer's pockets.
I get that you like them but I'm going to disagree with you that proprietry licenses are by default better. I don't really feel like having a debate on the pros and cons of various licenses so I'm going to leave it at that.
Destructionator XIII wrote:
The clause gives the author a legal standing to stop that behavior.
Who did much of the original work into Webkit? And that was LGPL too.
I have no idea where you are trying to go with this.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Re: using GPL licenced code commercially

Post by phongn »

Destructionator XIII wrote:The open source license did jack and shit to to stop Apple and Google from taking the khtml code, calling it their own product, and selling it.
But permissive licenses like BSD and Apache aren't supposed to do that! They're just for attribution's sake since there are plenty of dicks who wouldn't put something in an About dialogue box or other license document.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Re: using GPL licenced code commercially

Post by Pu-239 »

Sarevok wrote:From what I understand if you are not statically linking it does not count as a derived work.
That's the LGPL. For the regular GPL, dynamic linking to a GPL library still counts as a derived work.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
Post Reply