views:

154

answers:

3

Consider the following scenario:

  1. I am developing a closed-source commercial application.
  2. I find a LGPL-licensed library providing some functionality I would like to use in my application.
  3. Said functionality is limited to a few functions and/or classes.
  4. For practical and/or technical reasons, it's not possible and/or feasible to link to the entire library, either statically or dynamically. Because of this, I copy the relevant functions/classes into my own code base.
  5. To make the copied functions/classes compatible with my application and/or development environment, I make some minor modifications to them.
  6. The modifications do not add any new functionality not already included in the library from which the original functions/classes where taken.

Would this be a violation of the LGPL, and if so, what would I need to do to comply with it?

I realize that I ideally should be releasing the new "library" with my modifications under LGPL, but this doesn't make much sense when the modified code can't be used on its own, thus making it completely useless to anyone else.

+6  A: 

I think it would violate the LGPL agreement. You're modifing the library by taking a sub-section of it. That binds you to releasing that sub-section via open source.

How about this:

  • make a smaller library that was a subset of functions / classes
  • release it through sourceforge
  • use that LPGL library without modification
Kieveli
Note there is no need to publish via SourceForge (or any other website) - you need only distribute the code to your licensee.
anon
So you mean send a copy to the original LGPL library's company?
Kieveli
No. You only need to provide a copy (at their request) to the direct licensees of your software. For a commercial product, this will be the people who have purchased the software.
anon
+1  A: 

Linking to LGPL code does not require you to distribute the source code, and does not make your own code LGPL. I would think that practically, legally and morally your best bet is to write a wrapper that allows you to link to the unmodified LGPL library.

anon
A: 

First, if you are genuinely concerned about this, you should ask a lawyer, not a random collection of people on the Web :)

But if you really want a random dude's answer:

It would seem to only be a violation of the LGPL if you don't release a GPL'd version of your derivative library. If you have doubts, why not play it safe and just GPL the code you've modified? So what if you think it's of no use to anyone else? At least you can't be accused of an LGPL violation for not making the source freely available.

Dan Moulding
As one of those "random people", I'm afraid you are wrong about the LGPL and its relationship with the GPL.
anon
I didn't mean to imply anything about the relationship between the two licenses. I guess I tend to casually throw about "GPL" as a verb, sometimes, and maybe I should have been more specific. But I don't think what I wrote is technically wrong, even if I did imply a relationship: the LGPL allows conveyance of modified versions under the regular GPL. Or do I misunderstand your objection to what I wrote?
Dan Moulding