How do licenses such as the GPL view code copying?

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

What is the proper etiquette for copying code? Credit at the top of your file, next to the code used? What to do if the code is redefined beyond recognition?

+5
source share
3 answers

The GNU GPL describes in great detail how you can use the code obtained with this license. (Be careful: if your license for this code is not a GPL, but, for example, LGPL, different rules apply.) Basically, the GPL comes down to the following:

  • , , , - .
  • - , GPL. , ( !), , GPL ( !) .

: , , ( ;-)). : , !

, BSD, . , BSD, , , , .

+9

-, , , . / , .

-, , . ( , ), () .

, - , - , .

Of course, you must comply with all other restrictions. You mentioned the GPL; in this case, the entire product must be redistributed under the GPL or not redistributed at all. It doesn’t matter if the code is refactored beyond recognition and shared between files if you directly use the code in your code. Of course, different parts of the code may be under additional licenses if they are GPL compatible, but you must follow the GPL requirements to distribute them.

0
source

All Articles