Slashdot Mirror


LGPL is Viral for Java

carlfish writes "According to this post to POI-dev, Dave Turner (Mr License) of the FSF has decreed that the steps required to use an LGPL'd Java library will actually infect client code with substantial GNU-ness via Section 6 of the LGPL. (The "Lesser" GPL is supposed to protect only the Library, without infecting code using the library) This, as you might imagine, puts a few LGPL Java projects that previously thought they were embeddable without being viral in a bit of a bind. Various weblogs have further coverage." Update: 07/18 02:44 GMT by CN : The FSF's Executive Director, Brad Kuhn adds "LGPL's S. 6 allows you to make new works that link with the LGPL'ed code, and license them any way you see fit. Only the LGPL'ed code itself must remain Free. Such 'client code' can even be proprietary; it need not be LGPL'ed."

18 of 717 comments (clear)

  1. great, microsoft succeed again by Anonymous Coward · · Score: 5, Insightful

    they coined the term "viral" with respect to software licenses, and now everyone's using it.

    good stuff. :\

  2. No problem. by Blackknight · · Score: 4, Insightful

    Just switch to the BSD license, like the Vorbis project did.

    1. Re:No problem. by keesh · · Score: 5, Insightful

      I am a Java developer, and I have used the LGPL on work (and also used work that has been LGPL'ed).

      My intent in using the LGPL is pretty simple: If you want to use my library, go ahead. If you make changes to my library, those have to be released back into the wild, so the library can be improved by everyone's improvements. I'm not a 'Free Software' zealot -- I'm an open-source pragmatist.

      If the LGPL does not meet this intent with Java, then we should find or write a license that has this intent. Perhaps one of the ones at Creative Commons would work...

    2. Re:No problem. by Michael's+a+Jerk! · · Score: 5, Insightful

      Perhaps you need to make an effort to understand the reasons people
      refer to the GPL as viral.

      If I spend years writing a program using no code other than my own, I
      can release it under any license I want. If I incorporate BSD licensed
      code into my program, I can still use any license I want, so long as I
      preserve copyright notices. If, however, I want to include GPLed code in
      my program, the GPL forces me to release my program under the GPL. It
      has *infected* my program. This is where the term `viral' originates
      with regard to the GPL.

      The BSD license does not affect code and cannot affect code since it
      can always be placed under another license. If someone makes proprietary
      enhancements to my BSD licensed code on his own time with his own money,
      the only code that has been infected with a non-free virus is his. My
      code is still perfectly free. I can give it to whoever I want and it
      is still as free as ever. The only thing I can't do is give away the
      other person's proprietary enhancements made with his own time and his
      own money and which could possibly completely overshadow the features
      provided by my small amount of code.

      Although the BSD license encourages the reuse of code for *any* purpose,
      including in projects released under non-free licenses like the GPL or one
      of the dozens of proprietary software licenses, doing it to piss people
      off will not get you very far, and it will make you look foolhardy,
      especially in the eyes of the people who wrote the free software (free
      for *any* purpose) that you would be making non-free. I guess you think
      no one understands the BSD license.

      All in all, a fine spirit to take in the name of free software....

      --

      I'm not Seth.

    3. Re:No problem. by SuperDuG · · Score: 4, Insightful
      I know the other comment-replies to this post have been marked -1 for one reason or the other, but in all honesty I couldn't agree with you more.

      In all honest the BSD license is the "Ultimate Opensource Freedom". You release your code in hopes of the good will of future coders seeing your code. You bank on the fact that if you had the heart to release it to the public that future developers may feel the same way. But you also realize that they may not even explore your code if it has a license that forces them to release their code.

      So corperate america is willing to take a look at the possibility if their hands aren't tied. Eventually it's the hope that they will see the benifit of the source being released in the first place and let their modifications benifit the whole as well, possibly a little later after there has been a corner on the market from the secondary developers.

      Perfect example? Macintosh OS X and FreeBSD. Apple saw that the FreeBSD system was solid and they added to it to make it a system they thought was overly viable for them and then later released an entire project (darwin) back under the BSD code it was incepted with.

      So is BSD dying? Who knows, it's a wonder what exactly BSD code is doing right now as there is no obligation for the developers to release their modifications source. It's like a behind the scenes world where everyone uses the stuff but no one admits it. But yet we still see great projects come out of it, anyone ever used OS X?

      --
      Ignore the "p2p is theft" trolls, they're just uninformed
  3. The GPL is not viral. by oGMo · · Score: 5, Insightful

    Please read that again. And again, until you get it. The GPL is not viral. It's pretty simple, really. If you're going to use [L]GPL'd code, follow the terms of the license, or don't use it.

    You have a choice. The [L]GPL is not a little bug trying to worm its way into your code. If you chose to use GPL code, then you follow the terms, or don't use the code. It's simple.

    If you find some really neat library under the [L]GPL that you want to use, and you don't want to follow the terms, well: tough luck. Offer to compensate the author; perhaps he or she will license it to you differently. Otherwise, write your own code.

    --

    Don't think of it as a flame---it's more like an argument that does 3d6 fire damage

    1. Re:The GPL is not viral. by alienw · · Score: 4, Insightful

      What are you smoking? I want some of that.

      The GPL is a tool to make YOUR software free, not someone else's software. It's not designed to "destroy copyright from within". If you think so, you are a retarded assmonkey who needs to shut up and read what Richard Stallman has to say about the goals of the FSF and the GPL.

      Unlike certain EULAs and NDAs, the GPL is not viral. Looking at GPL'd code is permitted, no strings attached. You just can't copy GPL-licensed code into your program unless it's also GPL-licensed. I don't see how this is viral.

    2. Re:The GPL is not viral. by fanatic · · Score: 4, Insightful

      The GPL is intended to do exactly what you say it doesn't: it's intended to make all software free. It's a tool intended to destroy copyright from within.

      That's right. GPL'd code reaches up, grabs you by the throat and makes you insert it into your project.

      Oh, you mean it doesn't?

      Then, it must, by itself, open your code in your favorite editor, and type itself into your code?

      Oh, it doesn't?

      Gee then you must be a fucking dumbshit, since your code got the GPL-ness in it because you included GPL code in your code. Because that's the only way it can happen.

      CHrist, how many times does it have to be said? If you don't wnat your code GPL'd, don't use GPL'd code in your code. Even a moron like you should be able to undestand that.

      Now this issue of using the LPGL .jars, it looks to me like you escape your whole work being LGPL' if you "b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with." So, if you dind't actually incorporate the libraries into your code, ocne again you are OK.

      --
      "that's not encryption - it's a new perl script that I'm working on..." - from some Matrix parody
  4. OK, so we need a new license by bokmann · · Score: 4, Insightful

    I am a Java developer, and I have used the LGPL on work (and also used work that HAS been LGPLed).

    My intent in using the LGPL is pretty simple: If you want to use my library, go ahead. If you make CHANGES to my library, those have to be released back into the wild, so the library can be improved by everyone's improvements. I'm not a 'Free Software' zealot - I'm an open-source pragmatist.

    If the LGPL does not meet this intent with Java, then we should find or write a license that has this intent. Perhaps one of the ones at Creative Commons would work...

  5. the slashdot story is mis-interpreting the post by Anonymous Coward · · Score: 4, Insightful

    The post states that you cannot import or "lift" any lgpl code * code * code into another project unless that project becomes lgpl'd also. This is correct; however, the resulting lgpl'd library (binary) can be called / used by a non-lgpl'd project. It is really not that confusing.

    1. Re:the slashdot story is mis-interpreting the post by bwt · · Score: 4, Insightful

      But there is a clear distinction. The LGPL library is loaded from one jar on the classpath at runtime and the rest of the code is loaded from somewhere else. They're clearly separable. If you modify anything in the LGPL jar (or class) and distribute it, you must include full source to everything packaged in that jar, but if you don't do that you are fine, even if you're dealing with full GPL java code.

      The JVM plays the same role as bash does: it loads separately packaged programs into memory, and handles messages being sent back and forth, none of which implicates any right held by the copyright holder of either. I my propietary class calls your GPL'd or LGPL'd class, so what!? How is that different than my proprietary bash script calling grep? As long as I don't modify or distribute your code, or copy parts of it into mine, I don't need a licence.

      If you say the method calls are me copying your code, I'll argue back that public method names are a fair use for interoperability.

  6. Big difference between GPL and LGPL by IntelliTubbie · · Score: 4, Insightful

    You have a choice. The [L]GPL is not a little bug trying to worm its way into your code. If you chose to use GPL code, then you follow the terms, or don't use the code. It's simple.

    You seem to miss the entire point of the LGPL. The whole point is that you should be able to use LGPL code in a non-LGPL project. To quote from the website:

    "The choice of license makes a big difference: using the Library GPL permits use of the library in proprietary programs; using the ordinary GPL for a library makes it available only for free programs."

    So whereas the GPL is intended to be somewhat "viral" -- i.e. software using GPL code must also be GPL -- the LGPL is not supposed to. This is why the viral-ness of the LGPL is news, since it's contrary to much of the community's understanding and intent regarding the use of LGPL code.

    Cheers,
    IT

    --

    Power corrupts. PowerPoint corrupts absolutely.

  7. And I suspect most of us feel the same way... by sterno · · Score: 4, Insightful

    The problem here is that the technicality of this section of the LGPL and the FSF's interpretation of it are not in sync with 98% of the people using and releasing code under the LGPL. I've used LGPL code and seeing as the jars were libraries it didn't even occurr to me that this would be an issue.

    This causes uncertainty over the nature of LGPL software right now. Would a court of law agree with this interpretation? Now I'm left with an odd decision. Do I gut my code under the presumption that this FSF lawyer is right, or do I take my chances that a court will interpret this as the vast majority of the community has.

    Open source software lives by the certainty of the licensing it uses. If we can't trust the interpretation of the licenses, then we can't feel confident in working with this code. The FSF is risking a serious blow to the open source community.

    --
    This sig has been temporarily disconnected or is no longer in service
  8. Re:The GPL is like a Vaccine by JonMartin · · Score: 5, Insightful
    This viral stuff is backwards. I think the BSD license is actually more viral than the GPL. Here's why:
    If I decide to write a program and contribute it to free software, the GPL assures me that it will stay free software forever. I'd be bothered if somebody made it non-free, effectively stealing my work for their own remuneration.

    No dumbass, they can't steal your code if it is BSD licensed. What are they going to do, break into your house and remove the source from your HD? And do the same to every person who downloaded it? Repeat after me: YOU CANNOT STEAL WHAT IS FREE. As long as someone out there has a copy of your BSD code it will always be free.

    The next point is that if someone copies your free BSD code and charges money for it they are NOT MAKING MONEY OFF OF YOUR CODE. Your code is FREE remember? They are making money off of whatever they added to your code (be it more code or a service contract or shiny packaging). If Microsoft takes your free BSD code, adds one line to it and charges $100 for it they are charging $100 for that one line of their code.

    The BSD license lets people apply almost any license to my software, including most non-free licenses. If I wrote work under the BSD license, someone could modify it and sell the result with no source code, and I'd have no recourse at all.

    Why would you want recourse? How have they wronged you? You released your code under a free license, and people are using your code. Hooray! Wasn't that the point of releasing your code?

    Anyone who wants can infect my BSD software with the non-free license virus.

    How can they "infect" your code? You still have your code sitting on your harddrive. What they have done is create an entirely new "thing" out of your code and their code.

    By the way, the BSD license allows you to apply the GPL to a modified BSD work.

    Correct. Isn't that nice and free of them?

    I've thought about organizing a GPL-ed thread derived from the body of existing BSD-licensed work, just to illustrate a lesson about the BSD license. That would really piss people off, but it would be legal.

    Perfectly legal. That's the point of the BSD license: allow as many people as possible to use the code for whatever purpose they imagine. I doubt the authors of the BSDed code would be bothered at all. They will probably be happy it is being used - that is why they released it under the BSD license.

    --
    Serve Gonk.
  9. Re:The GPL is like a Vaccine by JonMartin · · Score: 4, Insightful
    You ever get the sense that some of the people who post about the GPL have absolutely no idea what they're talking about?

    I'm convinced that the vast majority of people who release code under GPL have a hero fantasy in which Microsoft gets caught stealing their GPLed code and is thus forced to release the source for Windows, destroying them and sending Bill to the poorhouse. Then our brave coder will become a geek folk hero, showered with adoration for all time. I can see them on Letterman now: "Aw shucks, Dave, I just like writing code. I didn't plan on changing the world."

    A very small group don't have this fantasy but foolishly believe that the GPL helps "free software" (whatever the hell that means).

    An even smaller group understands what the GPL is actually for. These are the diehard RMS zealots who think nobody should be allowed to keep code private.

    --
    Serve Gonk.
  10. connotation by Kunta+Kinte · · Score: 4, Insightful
    ...That's what viral means. It doesn't mean that the license in and of itself is evil or incorrect or otherwise wrong....

    I'm not a GPL fantic or anything but...

    GPL backers typically don't like the adjective "viral" to be used to describe their work because it has a negative connotation. ie. The set of associations implied by a word in addition to its literal meaning. ( dictionary.com ) To me, that position is very understandable.

    There's always more than one way to say what you mean. You can call someone "Stubborn" or you can call them "Strong willed", almost the same thing? Marketing, politicials use this type of thing very often.

    In fact 'viral', as an adjective is, I'd say, blatantly demeaning. There is absolutely nothing good about a virus, and that connotation sticks with the adjective.

    Would you tell your girlfriend "your love for her is spreading through your system like ebola"? or I love you like flies like sh**?

    Both those statements I believe express great unyeilding passion. But it may not go over that way.

    --
    Based on upvotes, Ageism is the only "-ism" Slashdotters care about and think isn't SJW
  11. Re:The GPL is like a Vaccine by Breakfast+Pants · · Score: 5, Insightful

    You forgot the group that wants to release their code but they also want the assurance that anyone making additions shares back.

    --

    --

    WHO ATE MY BREAKFAST PANTS?
  12. Okay, let's hash this out then... by Otto · · Score: 4, Insightful

    Okay, if I make a piece of java code, like a class, and provide methods to use that class, and wrap this up in a jar file and say it's now under LGPL, then here's what somebody should be able to do (IMO):

    1. Create java code which uses my library (jar file) with the library as a separate jar file (ie., none of my code is in their code, they're just calling methods and classes from my code).

    2. Not have any requirements placed upon their code at all in any way.

    As I see it, this is exactly what the LGPL does. Section 6 never comes into play whatsoever, because their code falls into section 5. They haven't actually combined my code into theirs, it's totally separate, sitting right in that jar file (aka library).

    Granted, if they modify my code and distribute the modified version, then they must distribute the modifications they made to my code as well. That's what the LGPL is for in the first place.

    But I fail to see how section 6 applies in any way whatsoever. None of my LGPL'd code is included in their code in any way. It's separated because it's in a separate jar file.

    Lookie here:
    5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.

    To me, this exactly describes someone calling classes or other code that resides in my jar file. They're not copying the code into their own jar, they're linking to it. But let's look at section 6:

    6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library...

    This never happens if done properly. My jar is sitting alone, their jar is sitting alone. At runtime, their jar loads, says to the java interpreter "hey, make a class from that other jar", then my jar loads and a class gets created.

    So, am I wrong here? I see no normal situation in which section 6 would ever apply to Java libraries, unless someone was straight up ripping my classes off and including them in their own jar file along with their own code.

    --
    - Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.