2
  • There is a GPLv2+ library that I want to use in my front-end SaaS web application
  • The library is a JavaScript library
  • There are lot's of valuable front-end code in my SaaS web application that I cannot make them all GPL.

My assumption (correct me if it's wrong):

  • I can use a Closed Source library in a GPL Application. see here

Here is my solution (looking to see if it's a valid legal solution or not):

  • I move all of the valuable parts of the SaaS front-end into closed source libraries
  • I make the entire front-end application open source (GPL v2+)
  • The front-end application (which is open source by itself) references/uses to the open source library (the one that I wanna use) and closed source libraries.

enter image description here

1 Answer 1

3

No, you cannot do this.

The linking exception is something the copyright holder of a piece of code and only the copyright holder can grant. Unless you are the copyright holder of the GPL libraries you wish to use, you cannot grant the linking exception so therefore the whole of the application must be under the GPL.

You could grant a linking exception allowing your front end code to be linked with "Closed Source Library A" and "Closed Source Library B", but that doesn't help you with "Open Source Library".

8
  • Thank you @philip-kendall Your answer described why linking exception doesn't apply here. But I still don't understand why the whole picture doesn't work. Which part is wrong? (1) the entire front-end will be GPL v2. <<this is assumption>> (2) a GPL v2 software could use some commercial (closed-source) libraries. in this case "Closed Source Library A" and "Closed Source Library B" <<I think you mentioned that this is correct>> (3) a GPL v2 software could use some other GPL v2 libraries (in this case the third party library) <<is this wrong?!>>
    – Nerdy
    Dec 4, 2022 at 2:51
  • it's like I have a GPL v2 application that uses some commercial libraries and some GPL v2 libraries at the same time.
    – Nerdy
    Dec 4, 2022 at 2:53
  • The linking exception is something which applies to a library. It can apply to "Closed Source Library A/B" because you own them and can allow the exception. It can't apply to "Open Source Library" because you don't own it. Dec 4, 2022 at 4:50
  • Thanks for reply. I marked as answer and I understand that linking exception doesn't apply here. But I don't understand (and don't see in your answer) why the whole picture doesn't work. is this sentence wrong? "a GPL v2 application can use commercial libraries and GPL v2 libraries at the same time"
    – Nerdy
    Dec 5, 2022 at 16:50
  • 1
    Well, the first thing that is wrong is that "commercial" and "GPL v2" are not exclusive; assuming you mean "proprietary", you can so long as every library has the linking exception. Unless you are the copyright holder of the GPL library, it does not have the linking exception and you cannot grant that exception. Thinking of this another way: your hypothesis would reduce the GPL to the LGPL, there has to be a reason they both exist. Dec 5, 2022 at 17:01

Your Answer

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

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