Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do licenses such as GPL regard copying of code? [closed]

Tags:

gpl

I understand it's best to implement other libraries where possible (rather than copying code), but in some cases, it's more convenient to copy code.

What is the correct etiquette for copying code? Credit at the top of your file, near the code used? What if the code is re-factored beyond recognition?

like image 905
Nick Bolton Avatar asked Mar 19 '09 21:03

Nick Bolton


People also ask

Can GPL be used in closed source?

@eMAD parts of it can, yes. For example if it has GPLed JavaScript, then the source code for that must be available.

What is the purpose of GPL license?

The GNU General Public License, often shortened to GNU GPL (or simply GPL), lists terms and conditions for the copying, modification and redistribution of open source software. The GPL was created by Richard Stallman in order to protect GNU software from being made proprietary.

When using GPL when is it required to release the source code?

GPL requires you to release the modified source code only if you release the modified program. If you've modified a program's source code for personal use, there's no need to release its source code. However, if you make the modified program available to the public, you will have to make the code public too.

What is GPL licensed code?

GPL License is a free software license that allows software to be modified or redistributed without any restrictions or compulsory payments for the licensed code. the GPL license is used by Developers to ensure that their code does not become proprietary when modified.


1 Answers

The GNU GPL is very specific about how you may use the code you obtained through that license. (Be careful: If your license to the code in question is not GPL, but for example LGPL, different rules apply.) Basically GPL boils down to this:

  • If you keep the code for yourself and don't redistribute it to anybody else, you can do whatever you want with it without any obligations.
  • If you plan to share your code with somebody else, you are only allowed to do so under the GPL license. This includes that you provide the complete source code with your distribution (including your own code!), that you clearly state to the other party that this code is licensed to them under the GPL (including your own code!) and give complete information on how you altered the original code.

Even if the code is re-factored beyond recognition: If you want to distribute it, you have to follow these terms and make it understandable to the other party which parts you changed (beyond recognition ;-)). Be sure to not forget: This is not etiquette, this is copyright law!

Other licenses, such as the BSD licenses, have different terms. For example, if you use code under the BSD license, you only have to keep the copyright statement, but may happily redistribute the code under any license you like to choose, with source code or not.

like image 99
ypnos Avatar answered Oct 23 '22 05:10

ypnos