I would like to ask you some questions about LGPL, I've used a library written on PHP with license LGPL, I had made software and I'm not license it using LGPL or GPL,
The libraries is a class' form I had modified the libraries and made a class to access the library, and I access the library through that class, but I'm not make it inheritence from it, I was just make a object definitions
for example Library's file is only one ie: libraries.php licensed under LGPL v 2.1
The following are file which access the library ie: Access_lib.php
<?php
/* Non-GPL and non-LGPL */
include libraries.php
class Accsess_Lib{
function read($n){
$obj = new libraries($n);
return $obj;
}
}
?>
and I had made another file to access the Access_Lib ie: Program.php
<?php
/* Non-GPL and non-LGPL
*/
$d = new Access_Lib();
$d0 = $d->read('data');
# access database.php
include database.php;
$c = new Database($d0);
...
# access view.php
include view.php;
view($c);
?>
and the above file (Program.php) access several files (non-LGPL and non-LGPL) too ie: database.php and view.php
As I know that when we used LGPL lincensed libraries, we can make our software not licenced using LGPL or GPL. but there is few things that make me still don't understand.
I had few questions about that
Had I violated the LGPL License because I wanted to license my program into something else including two files that associated with the libraries(ie:Access_lib.php, Program.php) and several files that depend on libraries (ie:database.php, view.php), on the above example and the libraries.php remains LGPL?
Does Access_lib.php and Program.php must be licensed LGPL too because I had modified libraries.php and because of this following statement I'd picked from LGPL v.2.1 portion. I took a portion of LGPL v 2.1, it's said that
"2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
... These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, 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 Library, 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. "
what does it mean "whole of the work" on
"c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License." [portion of LGPL v.2.1]
does it mean "modified copy" of libraries.php or "whole files" that access the libraries.php like Access_Lib and others, or what exactly it's means?
what does it mean "derived" from the 1st LGPL portion statement that I'd qouted before, does any file that use libraries.php is derived work?
which files that must be licensed LGPL, is it only libraries.php (with the modifications)?
does the explanation about LGPL v 2.1 at http://creativecommons.org/licenses/LGPL/2.1/ about these statement
"If you modify your copy or copies of the library or any portion of it, you may distribute the resulting library provided you do so under the GNU Lesser General Public License. However, programs that link to the library may be licensed under terms of your choice, so long as the library itself can be changed. Any translation of the GNU Lesser General Public License must be accompanied by the GNU Lesser General Public License"
is it correct and suit to what I've done in the first question?
I'm sorry for my bad english, Thank for the incoming explanations, I hope anyone could help me.