licensing gpl
Developing software under GPLv3 and selling the source code
<p>I am a software freelancer (basically, I own a software company which is just myself), so legally, I'm the bearer of responsibility.</p>

<p>Recently, I have been asked to develop a piece of software. However, the deliverable is not a binary file, but source code. This project has been outsourced several times, and I'm at the end of the outsourcing chain.</p>

<p>I use several GPLv3 libraries in this project, and the Qt framework, which has a commercial license, but is free when licensed under LGPLv3. The companies said they are okay with this.</p>

<p>Is it okay to develop the software, sell the source code and not make it available publicly? Or am I legally obligated to make it available publicly? If so, is it okay to wait until the code has been delivered to the initial outsourcing company?</p>

<p>This is in the Czech Republic, by the way. The initial outsourcing company is Italian.</p>

<p>The GPL doesn’t require you to distribute the software to anyone. The only requirement to distribute something is that if you <em>do</em> distribute the software to someone as a binary, you must also distribute the source code to them at no additional charge. The focus of the GPL is ensuring freedom for people who have copies of the software, not ensuring that the software is available to the world at large.</p>
<p>Because your final deliverable is source code, you’ve already complied with the requirement to distribute source alongside object code. You have to comply with the requirements in section 5:</p>
<blockquote>
<p>a) The work must carry prominent notices stating that you modified it, and giving a relevant date.</p>
<p>b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.</p>
<p>c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.</p>
<p>d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.</p>
</blockquote>
<p>You have to license the software to the company that hired you under the GPL v3 (since parts of it were licensed to you under GPL v3), so you can’t stop them from distributing it to the world. But nothing requires <em>you</em> to distribute it to the world.</p>
