On Sun, Apr 14, 2002 at 03:01:08PM +0400, Ingvarr Zhmakin wrote: > Запутался я совсем. Помогите выбраться. > > Вот есть библиотека под GPL (не LGPL). И я хочу использовать её кусок > в коммерческом коде. > Есть ли способ это сделать? > > Мне мнилось, что можно сделать некий "гейт" -- либу под LGPL, берущую > на себя все взаимодействия с GPL-ной, которую поставлять с сорцами, а > из основного кода общаться только с нею. Это катит? Возможно, есть > лучший способ? > Или пролезть не получится?
http://www.gnu.org/licenses/gpl-faq.html#IfLibraryIsGPL - If a library is released under the GPL (not the LGPL), does that mean that any program which uses it has to be under the GPL? - Yes, because the program as it is actually run includes the library. http://www.gnu.org/licenses/gpl-faq.html#TOCGPLPluginsInNF - Can I use the GPL for a plug-in for a non-free program? - If the program uses fork and exec to invoke plug-ins, then the plug-ins are separate programs, so the license for the main program makes no requirements for them. So you can use the GPL for a plug-in, and there are no special requirements. If the program dynamically links plug-ins, and they make function calls to each other and share data structures, we believe they form a single program, so plug-ins must be treated as extensions to the main program. This means that linking the GPL-covered plug-in with the main program would violate the GPL. However, you can resolve that legal problem by adding an exception to your program's license which gives permission to link it with the non-free main program. For more details, see the question above that starts with, "I am writing free software that uses a non-free library." Отсюда следует, что нужно писать плагин для несвободной программы, который будет вызываться через fork/exec, использовать библиотеку, защищенную GPL, и при этом код плагина тоже должен быть GPL. -- Дмитрий Бородаенко -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

