Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
commit | author | age
48cfa2 1 The GNU Lesser General Public License (LGPL)
MT 2 Version 2.1, February 1999
3
4   (The master copy of this license lives on the GNU website.)
5
6 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59
7 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
8
9 Everyone is permitted to copy and distribute verbatim copies
10 of this license document, but changing it is not allowed.
11
12 [This is the first released version of the Lesser GPL. It also
13 counts as the successor of the GNU Library Public License,
14 version 2, hence the version number 2.1.]
15
16 Preamble
17
18 The licenses for most software are designed to take away
19 your freedom to share and change it. By contrast, the GNU
20 General Public Licenses are intended to guarantee your
21 freedom to share and change free software--to make sure the
22 software is free for all its users.
23
24 This license, the Lesser General Public License, applies to
25 some specially designated software packages--typically
26 libraries--of the Free Software Foundation and other authors
27 who decide to use it. You can use it too, but we suggest you
28 first think carefully about whether this license or the ordinary
29 General Public License is the better strategy to use in any
30 particular case, based on the explanations below.
31
32 When we speak of free software, we are referring to freedom
33 of use, not price. Our General Public Licenses are designed
34 to make sure that you have the freedom to distribute copies
35 of free software (and charge for this service if you wish); that
36 you receive source code or can get it if you want it; that you
37 can change the software and use pieces of it in new free
38 programs; and that you are informed that you can do these
39 things.
40
41 To protect your rights, we need to make restrictions that
42 forbid distributors to deny you these rights or to ask you to
43 surrender these rights. These restrictions translate to certain
44 responsibilities for you if you distribute copies of the library
45 or if you modify it.
46
47 For example, if you distribute copies of the library, whether
48 gratis or for a fee, you must give the recipients all the rights
49 that we gave you. You must make sure that they, too,
50 receive or can get the source code. If you link other code
51 with the library, you must provide complete object files to the
52 recipients, so that they can relink them with the library after
53 making changes to the library and recompiling it. And you
54 must show them these terms so they know their rights.
55
56 We protect your rights with a two-step method: (1) we
57 copyright the library, and (2) we offer you this license, which
58 gives you legal permission to copy, distribute and/or modify
59 the library.
60
61 To protect each distributor, we want to make it very clear
62 that there is no warranty for the free library. Also, if the
63 library is modified by someone else and passed on, the
64 recipients should know that what they have is not the original
65 version, so that the original author's reputation will not be
66 affected by problems that might be introduced by others.
67
68 Finally, software patents pose a constant threat to the
69 existence of any free program. We wish to make sure that a
70 company cannot effectively restrict the users of a free
71 program by obtaining a restrictive license from a patent
72 holder. Therefore, we insist that any patent license obtained
73 for a version of the library must be consistent with the full
74 freedom of use specified in this license.
75
76 Most GNU software, including some libraries, is covered by
77 the ordinary GNU General Public License. This license, the
78 GNU Lesser General Public License, applies to certain
79 designated libraries, and is quite different from the ordinary
80 General Public License. We use this license for certain
81 libraries in order to permit linking those libraries into non-free
82 programs.
83
84 When a program is linked with a library, whether statically or
85 using a shared library, the combination of the two is legally
86 speaking a combined work, a derivative of the original library.
87 The ordinary General Public License therefore permits such
88 linking only if the entire combination fits its criteria of
89 freedom. The Lesser General Public License permits more
90 lax criteria for linking other code with the library.
91
92 We call this license the "Lesser" General Public License
93 because it does Less to protect the user's freedom than the
94 ordinary General Public License. It also provides other free
95 software developers Less of an advantage over competing
96 non-free programs. These disadvantages are the reason we
97 use the ordinary General Public License for many libraries.
98 However, the Lesser license provides advantages in certain
99 special circumstances.
100
101 For example, on rare occasions, there may be a special
102 need to encourage the widest possible use of a certain
103 library, so that it becomes a de-facto standard. To achieve
104 this, non-free programs must be allowed to use the library. A
105 more frequent case is that a free library does the same job
106 as widely used non-free libraries. In this case, there is little
107 to gain by limiting the free library to free software only, so we
108 use the Lesser General Public License.
109
110 In other cases, permission to use a particular library in
111 non-free programs enables a greater number of people to use
112 a large body of free software. For example, permission to
113 use the GNU C Library in non-free programs enables many
114 more people to use the whole GNU operating system, as
115 well as its variant, the GNU/Linux operating system.
116
117 Although the Lesser General Public License is Less
118 protective of the users' freedom, it does ensure that the user
119 of a program that is linked with the Library has the freedom
120 and the wherewithal to run that program using a modified
121 version of the Library.
122
123 The precise terms and conditions for copying, distribution
124 and modification follow. Pay close attention to the difference
125 between a "work based on the library" and a "work that uses
126 the library". The former contains code derived from the
127 library, whereas the latter must be combined with the library
128 in order to run.
129
130 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION
131 AND MODIFICATION
132
133 0. This License Agreement applies to any software library or
134 other program which contains a notice placed by the
135 copyright holder or other authorized party saying it may be
136 distributed under the terms of this Lesser General Public
137 License (also called "this License"). Each licensee is
138 addressed as "you".
139
140 A "library" means a collection of software functions and/or
141 data prepared so as to be conveniently linked with
142 application programs (which use some of those functions
143 and data) to form executables.
144
145 The "Library", below, refers to any such software library or
146 work which has been distributed under these terms. A "work
147 based on the Library" means either the Library or any
148 derivative work under copyright law: that is to say, a work
149 containing the Library or a portion of it, either verbatim or with
150 modifications and/or translated straightforwardly into another
151 language. (Hereinafter, translation is included without
152 limitation in the term "modification".)
153
154 "Source code" for a work means the preferred form of the
155 work for making modifications to it. For a library, complete
156 source code means all the source code for all modules it
157 contains, plus any associated interface definition files, plus
158 the scripts used to control compilation and installation of the
159 library.
160
161 Activities other than copying, distribution and modification
162 are not covered by this License; they are outside its scope.
163 The act of running a program using the Library is not
164 restricted, and output from such a program is covered only if
165 its contents constitute a work based on the Library
166 (independent of the use of the Library in a tool for writing it).
167 Whether that is true depends on what the Library does and
168 what the program that uses the Library does.
169
170 1. You may copy and distribute verbatim copies of the
171 Library's complete source code as you receive it, in any
172 medium, provided that you conspicuously and appropriately
173 publish on each copy an appropriate copyright notice and
174 disclaimer of warranty; keep intact all the notices that refer
175 to this License and to the absence of any warranty; and
176 distribute a copy of this License along with the Library.
177
178 You may charge a fee for the physical act of transferring a
179 copy, and you may at your option offer warranty protection in
180 exchange for a fee.
181
182 2. You may modify your copy or copies of the Library or any
183 portion of it, thus forming a work based on the Library, and
184 copy and distribute such modifications or work under the
185 terms of Section 1 above, provided that you also meet all of
186 these conditions:
187
188      a) The modified work must itself be a software
189      library.
190      b) You must cause the files modified to carry
191      prominent notices stating that you changed the
192      files and the date of any change.
193      c) You must cause the whole of the work to be
194      licensed at no charge to all third parties under
195      the terms of this License.
196      d) If a facility in the modified Library refers to a
197      function or a table of data to be supplied by an
198      application program that uses the facility, other
199      than as an argument passed when the facility
200      is invoked, then you must make a good faith
201      effort to ensure that, in the event an application
202      does not supply such function or table, the
203      facility still operates, and performs whatever
204      part of its purpose remains meaningful.
205
206      (For example, a function in a library to
207      compute square roots has a purpose that is
208      entirely well-defined independent of the
209      application. Therefore, Subsection 2d requires
210      that any application-supplied function or table
211      used by this function must be optional: if the
212      application does not supply it, the square root
213      function must still compute square roots.)
214
215      These requirements apply to the modified work
216      as a whole. If identifiable sections of that work
217      are not derived from the Library, and can be
218      reasonably considered independent and
219      separate works in themselves, then this
220      License, and its terms, do not apply to those
221      sections when you distribute them as separate
222      works. But when you distribute the same
223      sections as part of a whole which is a work
224      based on the Library, the distribution of the
225      whole must be on the terms of this License,
226      whose permissions for other licensees extend
227      to the entire whole, and thus to each and every
228      part regardless of who wrote it.
229
230      Thus, it is not the intent of this section to claim
231      rights or contest your rights to work written
232      entirely by you; rather, the intent is to exercise
233      the right to control the distribution of derivative
234      or collective works based on the Library.
235
236      In addition, mere aggregation of another work
237      not based on the Library with the Library (or
238      with a work based on the Library) on a volume
239      of a storage or distribution medium does not
240      bring the other work under the scope of this
241      License.
242
243 3. You may opt to apply the terms of the ordinary GNU
244 General Public License instead of this License to a given
245 copy of the Library. To do this, you must alter all the notices
246 that refer to this License, so that they refer to the ordinary
247 GNU General Public License, version 2, instead of to this
248 License. (If a newer version than version 2 of the ordinary
249 GNU General Public License has appeared, then you can
250 specify that version instead if you wish.) Do not make any
251 other change in these notices.
252
253 Once this change is made in a given copy, it is irreversible
254 for that copy, so the ordinary GNU General Public License
255 applies to all subsequent copies and derivative works made
256 from that copy.
257
258 This option is useful when you wish to copy part of the code
259 of the Library into a program that is not a library.
260
261 4. You may copy and distribute the Library (or a portion or
262 derivative of it, under Section 2) in object code or executable
263 form under the terms of Sections 1 and 2 above provided that
264 you accompany it with the complete corresponding
265 machine-readable source code, which must be distributed
266 under the terms of Sections 1 and 2 above on a medium
267 customarily used for software interchange.
268
269 If distribution of object code is made by offering access to
270 copy from a designated place, then offering equivalent
271 access to copy the source code from the same place
272 satisfies the requirement to distribute the source code, even
273 though third parties are not compelled to copy the source
274 along with the object code.
275
276 5. A program that contains no derivative of any portion of the
277 Library, but is designed to work with the Library by being
278 compiled or linked with it, is called a "work that uses the
279 Library". Such a work, in isolation, is not a derivative work of
280 the Library, and therefore falls outside the scope of this
281 License.
282
283 However, linking a "work that uses the Library" with the
284 Library creates an executable that is a derivative of the
285 Library (because it contains portions of the Library), rather
286 than a "work that uses the library". The executable is
287 therefore covered by this License. Section 6 states terms for
288 distribution of such executables.
289
290 When a "work that uses the Library" uses material from a
291 header file that is part of the Library, the object code for the
292 work may be a derivative work of the Library even though the
293 source code is not. Whether this is true is especially
294 significant if the work can be linked without the Library, or if
295 the work is itself a library. The threshold for this to be true is
296 not precisely defined by law.
297
298 If such an object file uses only numerical parameters, data
299 structure layouts and accessors, and small macros and
300 small inline functions (ten lines or less in length), then the
301 use of the object file is unrestricted, regardless of whether it
302 is legally a derivative work. (Executables containing this
303 object code plus portions of the Library will still fall under
304 Section 6.)
305
306 Otherwise, if the work is a derivative of the Library, you may
307 distribute the object code for the work under the terms of
308 Section 6. Any executables containing that work also fall
309 under Section 6, whether or not they are linked directly with
310 the Library itself.
311
312 6. As an exception to the Sections above, you may also
313 combine or link a "work that uses the Library" with the
314 Library to produce a work containing portions of the Library,
315 and distribute that work under terms of your choice, provided
316 that the terms permit modification of the work for the
317 customer's own use and reverse engineering for debugging
318 such modifications.
319
320 You must give prominent notice with each copy of the work
321 that the Library is used in it and that the Library and its use
322 are covered by this License. You must supply a copy of this
323 License. If the work during execution displays copyright
324 notices, you must include the copyright notice for the Library
325 among them, as well as a reference directing the user to the
326 copy of this License. Also, you must do one of these things:
327
328      a) Accompany the work with the complete
329      corresponding machine-readable source code
330      for the Library including whatever changes were
331      used in the work (which must be distributed
332      under Sections 1 and 2 above); and, if the work
333      is an executable linked with the Library, with
334      the complete machine-readable "work that
335      uses the Library", as object code and/or
336      source code, so that the user can modify the
337      Library and then relink to produce a modified
338      executable containing the modified Library. (It
339      is understood that the user who changes the
340      contents of definitions files in the Library will
341      not necessarily be able to recompile the
342      application to use the modified definitions.)
343
344      b) Use a suitable shared library mechanism for
345      linking with the Library. A suitable mechanism
346      is one that (1) uses at run time a copy of the
347      library already present on the user's computer
348      system, rather than copying library functions
349      into the executable, and (2) will operate
350      properly with a modified version of the library, if
351      the user installs one, as long as the modified
352      version is interface-compatible with the version
353      that the work was made with.
354
355      c) Accompany the work with a written offer,
356      valid for at least three years, to give the same
357      user the materials specified in Subsection 6a,
358      above, for a charge no more than the cost of
359      performing this distribution.
360
361      d) If distribution of the work is made by offering
362      access to copy from a designated place, offer
363      equivalent access to copy the above specified
364      materials from the same place.
365
366      e) Verify that the user has already received a
367      copy of these materials or that you have
368      already sent this user a copy.
369
370 For an executable, the required form of the "work that uses
371 the Library" must include any data and utility programs
372 needed for reproducing the executable from it. However, as a
373 special exception, the materials to be distributed need not
374 include anything that is normally distributed (in either source
375 or binary form) with the major components (compiler, kernel,
376 and so on) of the operating system on which the executable
377 runs, unless that component itself accompanies the
378 executable.
379
380 It may happen that this requirement contradicts the license
381 restrictions of other proprietary libraries that do not normally
382 accompany the operating system. Such a contradiction
383 means you cannot use both them and the Library together in
384 an executable that you distribute.
385
386 7. You may place library facilities that are a work based on
387 the Library side-by-side in a single library together with other
388 library facilities not covered by this License, and distribute
389 such a combined library, provided that the separate
390 distribution of the work based on the Library and of the other
391 library facilities is otherwise permitted, and provided that you
392 do these two things:
393
394      a) Accompany the combined library with a
395      copy of the same work based on the Library,
396      uncombined with any other library facilities.
397      This must be distributed under the terms of the
398      Sections above.
399
400      b) Give prominent notice with the combined
401      library of the fact that part of it is a work based
402      on the Library, and explaining where to find the
403      accompanying uncombined form of the same
404      work.
405
406 8. You may not copy, modify, sublicense, link with, or
407 distribute the Library except as expressly provided under this
408 License. Any attempt otherwise to copy, modify, sublicense,
409 link with, or distribute the Library is void, and will
410 automatically terminate your rights under this License.
411 However, parties who have received copies, or rights, from
412 you under this License will not have their licenses terminated
413 so long as such parties remain in full compliance.
414
415 9. You are not required to accept this License, since you
416 have not signed it. However, nothing else grants you
417 permission to modify or distribute the Library or its derivative
418 works. These actions are prohibited by law if you do not
419 accept this License. Therefore, by modifying or distributing
420 the Library (or any work based on the Library), you indicate
421 your acceptance of this License to do so, and all its terms
422 and conditions for copying, distributing or modifying the
423 Library or works based on it.
424
425 10. Each time you redistribute the Library (or any work
426 based on the Library), the recipient automatically receives a
427 license from the original licensor to copy, distribute, link with
428 or modify the Library subject to these terms and conditions.
429 You may not impose any further restrictions on the
430 recipients' exercise of the rights granted herein. You are not
431 responsible for enforcing compliance by third parties with this
432 License.
433
434 11. If, as a consequence of a court judgment or allegation of
435 patent infringement or for any other reason (not limited to
436 patent issues), conditions are imposed on you (whether by
437 court order, agreement or otherwise) that contradict the
438 conditions of this License, they do not excuse you from the
439 conditions of this License. If you cannot distribute so as to
440 satisfy simultaneously your obligations under this License
441 and any other pertinent obligations, then as a consequence
442 you may not distribute the Library at all. For example, if a
443 patent license would not permit royalty-free redistribution of
444 the Library by all those who receive copies directly or
445 indirectly through you, then the only way you could satisfy
446 both it and this License would be to refrain entirely from
447 distribution of the Library.
448
449 If any portion of this section is held invalid or unenforceable
450 under any particular circumstance, the balance of the
451 section is intended to apply, and the section as a whole is
452 intended to apply in other circumstances.
453
454 It is not the purpose of this section to induce you to infringe
455 any patents or other property right claims or to contest
456 validity of any such claims; this section has the sole purpose
457 of protecting the integrity of the free software distribution
458 system which is implemented by public license practices.
459 Many people have made generous contributions to the wide
460 range of software distributed through that system in reliance
461 on consistent application of that system; it is up to the
462 author/donor to decide if he or she is willing to distribute
463 software through any other system and a licensee cannot
464 impose that choice.
465
466 This section is intended to make thoroughly clear what is
467 believed to be a consequence of the rest of this License.
468
469 12. If the distribution and/or use of the Library is restricted in
470 certain countries either by patents or by copyrighted
471 interfaces, the original copyright holder who places the
472 Library under this License may add an explicit geographical
473 distribution limitation excluding those countries, so that
474 distribution is permitted only in or among countries not thus
475 excluded. In such case, this License incorporates the
476 limitation as if written in the body of this License.
477
478 13. The Free Software Foundation may publish revised
479 and/or new versions of the Lesser General Public License
480 from time to time. Such new versions will be similar in spirit
481 to the present version, but may differ in detail to address new
482 problems or concerns.
483
484 Each version is given a distinguishing version number. If the
485 Library specifies a version number of this License which
486 applies to it and "any later version", you have the option of
487 following the terms and conditions either of that version or of
488 any later version published by the Free Software Foundation.
489 If the Library does not specify a license version number, you
490 may choose any version ever published by the Free Software
491 Foundation.
492
493 14. If you wish to incorporate parts of the Library into other
494 free programs whose distribution conditions are incompatible
495 with these, write to the author to ask for permission. For
496 software which is copyrighted by the Free Software
497 Foundation, write to the Free Software Foundation; we
498 sometimes make exceptions for this. Our decision will be
499 guided by the two goals of preserving the free status of all
500 derivatives of our free software and of promoting the sharing
501 and reuse of software generally.
502
503 NO WARRANTY
504
505 15. BECAUSE THE LIBRARY IS LICENSED FREE OF
506 CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY,
507 TO THE EXTENT PERMITTED BY APPLICABLE LAW.
508 EXCEPT WHEN OTHERWISE STATED IN WRITING THE
509 COPYRIGHT HOLDERS AND/OR OTHER PARTIES
510 PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY
511 OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
512 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
513 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
514 A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
515 QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
516 YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU
517 ASSUME THE COST OF ALL NECESSARY SERVICING,
518 REPAIR OR CORRECTION.
519
520 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE
521 LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT
522 HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
523 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED
524 ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING
525 ANY GENERAL, SPECIAL, INCIDENTAL OR
526 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
527 OR INABILITY TO USE THE LIBRARY (INCLUDING BUT
528 NOT LIMITED TO LOSS OF DATA OR DATA BEING
529 RENDERED INACCURATE OR LOSSES SUSTAINED BY
530 YOU OR THIRD PARTIES OR A FAILURE OF THE
531 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE),
532 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
533 ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
534
535 END OF TERMS AND CONDITIONS