6

Assume I have a library A which is licensed under a two-clause Free BSD style license. Library A optionally depends on library B (the availability of the dependency is configured at build-time), which is licensed under the GPLv3.

If I distribute both bundled together, the license will need to be GPL. But am I still able to distribute library A under the FreeBSD license? How do I indicate that the license changes, when the use of library B is enabled?

Do I need to distribute two different versions or can I just have one that contains both licenses and states which applies under which conditions? Any example project I can have a look at to see it done?

1 Answer 1

6

This portion of the GPLv2 seems to address your situation:

If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.

Based on that, it would appear that the source of library A can be distributed under a BSD license, and anyone who enables a build of A+B is responsible for understanding that the resulting combined work is under the GPL.

You asked about the GPLv3 specifically. I'm less familiar with it, and its wording is less clear:

To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work...

A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.

It sounds as though library A is separate and independent from library B, and I don't think that optionally depending on library B would count as copying from or adapting part of library B, and assuming the intent of GPLv3 is similar to GPLv2, it again appears that the source of library A can be distributed under a BSD license, and anyone who enables a build of A+B is responsible for understanding that the resulting combined work is under the GPL.

I am not a lawyer, this is not legal advice, etc.

Examples of existing libraries:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.