13

We develop a commercial desktop application that uses an AGPL library. The lib's code is just used, not modified. Our application runs completely offline.

May we use the AGPL library without having to make our application's code open source? As I understood it, this is allowed. But still I am not sure.

Does anyone know if my conclusion is right?

0

3 Answers 3

23

There is a lot of confusion regarding modification. You claim that "The lib's code is just used, not modified." That's a very narrow interpretation of modification. In court, integrating the library into your desktop application also counts as modification, hence you also need to open source the code of your desktop application.

As Amon indicates, your use of the AGPL corresponds with use under the GPL. The FAQ from the Free Software Foundation on gnu.org is clear:

I'd like to incorporate GPL-covered software in my proprietary system. Can I do this?

You cannot incorporate GPL-covered software in a proprietary system. The goal of the GPL is to grant everyone the freedom to copy, redistribute, understand, and modify a program. If you could incorporate GPL-covered software into a nonfree system, it would have the effect of making the GPL-covered software nonfree too. A system incorporating a GPL-covered program is an extended version of that program. The GPL says that any extended version of the program must be released under the GPL if it is released at all. This is for two reasons: to make sure that users who get the software get the freedom they should have, and to encourage people to give back improvements that they make.

However, in many cases you can distribute the GPL-covered software alongside your proprietary system. To do this validly, you must make sure that the free and nonfree programs communicate at arms length, that they are not combined in a way that would make them effectively a single program.

The difference between this and “incorporating” the GPL-covered software is partly a matter of substance and partly form. The substantive part is this: if the two programs are combined so that they become effectively two parts of one program, then you can't treat them as two separate programs. So the GPL has to cover the whole thing.

If the two programs remain well separated, like the compiler and the kernel, or like an editor and a shell, then you can treat them as two separate programs—but you have to do it properly. The issue is simply one of form: how you describe what you are doing. Why do we care about this? Because we want to make sure the users clearly understand the free status of the GPL-covered software in the collection.

If people were to distribute GPL-covered software calling it “part of” a system that users know is partly proprietary, users might be uncertain of their rights regarding the GPL-covered software. But if they know that what they have received is a free program plus another program, side by side, their rights will be clear.

An example: suppose that you have created an accounting app on the desktop, and that you need to create PDF invoices and PDF reports from this app. Suppose that you use an AGPL PDF library to create the PDF.

In this example, your own code defines the GUI, and it allows people to enter data that is stored in a database. When they click a button, PDF's are created using the PDF library.

That PDF library is considered being a part of the accounting app because the functionality of the library is triggered by an action of the end user in the accounting application (e.g. a PDF invoice is created when the end user clicks a button). You can't "work around" the copyleft license by saying: we separate the GUI part from the PDF generation part. It's all connected.

The difference that is explained in the FAQ is for instance: when you compile your app with a specific compiler, then that compiler doesn't have to be open source because there's a clear separation between the application and the compiler. When you run the application on an operating system, then that operating system (or specific components of that operating system, such as the code that defines visual controls) doesn't have to be open source.

To make a long story short: your conclusion was wrong, because modification has a broader meaning than you initially assumed.

Update in answer to comments asking for proof of my claims:

Note: most of the comments I refer to were removed by their author.

The example of the accounting software and the PDF invoices wasn't chosen at random. I'm the original developer of iText, an open source PDF library released as AGPL software.

In June 2015, I discovered that iText was used in a closed source module that served as an add-on to closed source accounting software. This is the first thing I did: I went to a bailiff to document the infringement (June 12, 2015):

enter image description here

Then I went to a lawyer, who sent a cease and desist letter:

enter image description here

The infringing party stalled, and came back with false arguments (similar to some arguments made in the comments).

Hence we went to court (July 8, 2015):

enter image description here

Our case was very clear, and it didn't take long for the court to issue a ruling (July 17, 2015):

enter image description here

Eventually, the infringing party accepted the ruling of the court:

enter image description here

These slides were taken from my JavaOne talk IANAL: What Developers should know about IP and Legal (I won a JavaOne Rockstar Award with this talk).

In the comments, I read claims that this isn't an illustrative example because creating invoices isn't an essential part of accounting software. Landsgericht Köln didn't agree with that point of view. All software using the infringing module was taken from the market because the infringing party didn't want to open source it. Notice the word v e r b o t e n in the rulling. It was forbidden to distribute software that uses iText as a whole or in part without permission of the copyright owners of iText, given the fact that the copyleft of the AGPL wasn't respected.

Actually, being an essential part isn't even a criterium. In Artifex versus Hancom, the South-Korean company Hancom used Artifex's Ghostscript to create PDF output from documents created with their office suite. Creating PDF was an optional feature that wasn't essential for the rest of the office functionality to work. However, Artifex went to court, and a Californian judge issued a ruling that the GPL could indeed be enforced even in cases where the GPL code is only used for a small feature that isn't essential in the context of the complete work.

Often you read about thought experiments that tend to work around the (A)GPL, but such thought experiments are usually based on wishful thinking. In my (real-world) experience, a judge takes into account the technical effect rather than the technical implementation.

If user A pushes a button in product X, and by doing a technical effect is triggered that results in an action in (A)GPL library Y, then product X needs to be released under the same license as library Y to user A no matter how product X is technically implemented!

If you don't understand the difference between technical effect and technical implementation, consider this: suppose that person A wants to murder person X, but he hires person B to kill person X, then person A isn't technically the murderer of person X, but the effect is the same: person X is murdered because of person A, and for a judge person A will be guilty all the same (and usually get a higher sentence than person B).

If a counter-party tells the judge that the AGPL doesn't apply when you access an AGPL library from a closed source system through a service that is open sourced under the AGPL, feel free to use the "murder" comparison in court to explain why the judge should discard the technical details of such a workaround. You'll increase your chances at winning your case. Actually, the infringing party might get a more severe sentence because of the intentional attempt to avoid compliance with the open source license.

If you do not agree with the above, please document with existing cases that went to court. Please be aware of the fact that allegations that have not been proven in court have no value whatsoever.

Personal background:

Regarding the first example: I am the original developer of iText, an AGPL PDF library, and I wrote most of the Affidavits that were used in the case documented with the screen shots above.

Regarding the second example: I was consulted by the CEO of Artifex for advice in December 2016, and by Hancom in the Summer of 2017. Eventually, the case was settled.

I have quite some firsthand experience in matters like these, and it's quite disappointing to see how many developers are interpreting the law in a way that best suits the open source user, going against the rights of the open source producer. I would expect developers to stand up for each other, and respect the rights of their fellow open source developers. In my experience however, decision makers at a company have a better understanding than the company's developers. Management usually makes much less of a problem of the dual license system that allows their company to use software under a commercial license in cases where the company can't comply with the copyleft license.

2
  • I'm sorry, I didn't intend to "force" you into divulging such information (especially product and company names), I just thought that it was a poor example of what not to do since (in trying to think from the perspective of the question asker) it made me think about workarounds instead of (since it was an example of what's not allowed) being something that was obviously not allowed.
    – 3D1T0R
    Commented Jun 2, 2018 at 18:29
  • 1
    "If user A pushes a button in product X, and by doing a technical effect is triggered that results in an action in (A)GPL library Y." This explanation does not really make sense, nor does your murder analogy. People produce non-GPL software all the time where you press a "button" in a product and it causes an effect in the Linux kernel, which is a GPL program. Microsoft's Visual Studio can be configured so that pressing a button launches the GNU compiler, a GPL program, and so on. Is Visual Studio therefore infringing? No
    – Brandin
    Commented Oct 11, 2018 at 5:08
9

The GPL license family consists of three kinds of licenses:

  • The GPL is the most widespread variant. If you include GPL software into your software, you can only distribute the result under the terms of the GPL. Those terms include providing your source code.

  • The AGPL is the same as the GPL, but also requires you to offer the source if users only interact with the software over a network, i.e. your software is a webapp that wouldn't normally be distributed.

  • The LGPL is the same as the GPL, but relaxes its terms: under certain conditions you can link to a LGPL library without having to disclose your source.

In your case, you have a desktop app so the AGPL is equivalent to the GPL. If you want to use the AGPL code, you will have to license your application under the AGPL and offer the source code for that app.

2

I believe the answer provided by amon is accurate regarding the effect of using [AL]GPL licensed software as part of your software, however there is a 'loophole' of sorts, in that it is legal for software developers to 'dual license' their software, so you should check if there's a second license that you can choose to use instead, or if there is an option to purchase a license that gives you permission to use it in your closed source software.

2
  • 2
    Dual licensing is not a 'loophole'. If you hold the copyright on the software you have the right to license it in one or more ways.
    – Brandin
    Commented Oct 11, 2018 at 4:57
  • Of course, it's a perfectly acceptable thing to do. However many people who are just starting in the world of software licensing don't think of it and find themselves searching for 'the perfect license', this is a way out of that which isn't immediately obvious unless you're already fairly familiar with such licenses. It's not technically a loophole, but it is, as I said in my answer "a 'loophole' of sorts", in that it allows people to do something they would likely otherwise think wasn't allowed.
    – 3D1T0R
    Commented Oct 12, 2018 at 0:45

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.