question about GPL - selling GPL'd code
Moderator: General Moderators
question about GPL - selling GPL'd code
I am writing a module for an application that is compiled and closed source. I'd like to include jQuery in this module as well as a certain jQuery plugin. jQuery is licensed as GPL, so in order for me to sell my module it must also be licensed as GPL (if I am not mistaken). The problem is that modules for this particular piece of software must be compiled. Would I need to make the source code openly available in order to sell this? How does this work? 
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: question about GPL - selling GPL'd code
So in the case of jQuery, you'd be selling the (proprietary) system you wrote, and including a copy of jQuery with it. You would be responsible for making the source of the GPL library (jQuery) available, which is a non-issue since it's script.http://www.fsf.org/licensing/licenses/gpl-faq.html#GPLInProprietarySystem wrote:However, in many cases you can distribute the GPL-covered software alongside your proprietary system. To do this validly, you must make sure that the free and non-free programs communicate at arms length, that they are not combined in a way that would make them effectively a single program.
You would only have to GPL code that "incorporates" already GPL'd code into it. In this case, however, I would view the jQuery library as a separate system that you call "at arms length".
However, if you modify jQuery core in any way you will of course need to GPL the modified version.
On important issue seems to be disclosure: As long as you make it clear that your software is distributed alongside a GPL'd library you should be free and clear.http://www.fsf.org/licensing/licenses/gpl-faq.html#GPLInProprietarySystem wrote:But if they know that what they have received is a free program plus another program, side by side, their rights will be clear.
So you're not "selling" jQuery, you're including it as a separate piece of software. You're selling an app that interfaces with jQuery. Which is fine.
Anyone disagree?
Re: question about GPL - selling GPL'd code
That makes sense to me. Thanks Kieran. 
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: question about GPL - selling GPL'd code
To put in in straight forward terms most of the GPL variants say this:
"You can do what the hell you want with it, provided you always include the license with it".
I'll be going through some confusion with licensing myself shortly since I need to "sell" a non-free product under a license which forbids redistribution in its entirety, yet the code base will be roughly 50% LGPL code wirtten by myself, with the other 50% commercial written by myself. I'll probably be seeking advice nearer the time.
"You can do what the hell you want with it, provided you always include the license with it".
I'll be going through some confusion with licensing myself shortly since I need to "sell" a non-free product under a license which forbids redistribution in its entirety, yet the code base will be roughly 50% LGPL code wirtten by myself, with the other 50% commercial written by myself. I'll probably be seeking advice nearer the time.
Re: question about GPL - selling GPL'd code
That actually leads me to another question. What is the difference between GPL and LGPL. To be completely honest, I've always gone with LGPL in my libraries because I saw that you used it in Swift and I don't know what the hell I'm doing 
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: question about GPL - selling GPL'd code
Yep, effectively LGPL is for libraries rather than complete apps. GPL is for apps.
Re: question about GPL - selling GPL'd code
Alright... that's what I figured. 
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: question about GPL - selling GPL'd code
I think you may need to be more careful than has been said here. The GPL cannot be mixed with other code easily, the LGPL is designed so that you can "link" LGPL and non-LGPL code and not have to redistribute your own code.
However, that all may be moot because jQuery is also licensed under the MIT license -- which may be a better choice for you.
However, that all may be moot because jQuery is also licensed under the MIT license -- which may be a better choice for you.
(#10850)
Re: question about GPL - selling GPL'd code
Also, it has to be said that there is absolutely no problem to sell GPL software, as long as you provide the source.
Re: question about GPL - selling GPL'd code
GPL can't be used in closed-source code, LGPL can be
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Re: question about GPL - selling GPL'd code
Not entirely true - the GPL ensures the software you receive can be redistributed and modified freely. You can't per se sell GPL software since the buyer is then entirely free to redistribute it on the internet to anyone willing to download itAlso, it has to be said that there is absolutely no problem to sell GPL software, as long as you provide the source.
Correctly speaking you can sell something that's not free - i.e. costs of distribution, packaging or support services. If you intend selling the software itself, then an open source model is not the profitable path - use a commercial license.
Again, not entirely true. The GPL can be distributed alongside closed source software assuming the two are not linked. This is impossible with compiled source code, but easy with interpreted code like PHP and Javascript. Just remember to include the license and make it obvious you are not selling the GPL'd code itself but only distributing it for use by your application (and not as a linked module!).GPL can't be used in closed-source code, LGPL can be
LGPL has fallen out of fashion because it's not as free as you think - that's why a lot of projects have turned to commercial friendly licenses such as MIT and New BSD since it has no limitation on linking/distribution/modification and so it's has no viral qualities to prevent software selling where the software includes such libraries.
In a dual-licensed project - please opt in for the license providing you the most freedom
Being the Copyright holder affords you that right. Nobody else can do that which is why it's so rare since having 100% of the copyright entitlement is unlikely in a community project. That's the real kicker here - if someone has contributed to your LGPL project (generally projects assume that's anyone with commit rights and doesn't include obvious code snippets unaccompanied by a license/copyright) you may not have 100% entitlement. Thread carefully here...
Re: question about GPL - selling GPL'd code
I think you're mixing the "free speech" and "free beer" meanings of the word "free" here. You can exchange GPL software for money (and yes, people are able to download the source and compile it themselves with no monetary charge, but yes, you are allowed to charge as much as you want if you find someone willing to pay you money. It is often the case that the cost of a user or organization to learn to download and compile code will exceed the requested fee, so buying free software is economically plausible).Maugrim_The_Reaper wrote:Not entirely true - the GPL ensures the software you receive can be redistributed and modified freely. You can't per se sell GPL software since the buyer is then entirely free to redistribute it on the internet to anyone willing to download itAlso, it has to be said that there is absolutely no problem to sell GPL software, as long as you provide the source..
Correctly speaking you can sell something that's not free - i.e. costs of distribution, packaging or support services. If you intend selling the software itself, then an open source model is not the profitable path - use a commercial license.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Re: question about GPL - selling GPL'd code
I pre-qualified already
: "Not entirely true" - meaning there is some truth in it but largely it's recommended to base your money making schemes on selling a product the buyer can distribute elsewhere freely.
Also why would other user's need to learn to compile the code if the compiled versions are distributed under the license from rapidshare?
Also why would other user's need to learn to compile the code if the compiled versions are distributed under the license from rapidshare?