0001 Valid-License-Identifier: LGPL-2.0
0002 Valid-License-Identifier: LGPL-2.0+
0003 SPDX-URL: https://spdx.org/licenses/LGPL-2.0.html
0004 Usage-Guide:
0005 To use this license in source code, put one of the following SPDX
0006 tag/value pairs into a comment according to the placement
0007 guidelines in the licensing rules documentation.
0008 For 'GNU Library General Public License (LGPL) version 2.0 only' use:
0009 SPDX-License-Identifier: LGPL-2.0
0010 For 'GNU Library General Public License (LGPL) version 2.0 or any later
0011 version' use:
0012 SPDX-License-Identifier: LGPL-2.0+
0013 License-Text:
0014
0015 GNU LIBRARY GENERAL PUBLIC LICENSE
0016 Version 2, June 1991
0017
0018 Copyright (C) 1991 Free Software Foundation, Inc.
0019 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
0020
0021 Everyone is permitted to copy and distribute verbatim copies of this
0022 license document, but changing it is not allowed.
0023
0024 [This is the first released version of the library GPL. It is numbered 2
0025 because it goes with version 2 of the ordinary GPL.]
0026
0027 Preamble
0028
0029 The licenses for most software are designed to take away your freedom to
0030 share and change it. By contrast, the GNU General Public Licenses are
0031 intended to guarantee your freedom to share and change free software--to
0032 make sure the software is free for all its users.
0033
0034 This license, the Library General Public License, applies to some specially
0035 designated Free Software Foundation software, and to any other libraries
0036 whose authors decide to use it. You can use it for your libraries, too.
0037
0038 When we speak of free software, we are referring to freedom, not price. Our
0039 General Public Licenses are designed to make sure that you have the freedom
0040 to distribute copies of free software (and charge for this service if you
0041 wish), that you receive source code or can get it if you want it, that you
0042 can change the software or use pieces of it in new free programs; and that
0043 you know you can do these things.
0044
0045 To protect your rights, we need to make restrictions that forbid anyone to
0046 deny you these rights or to ask you to surrender the rights. These
0047 restrictions translate to certain responsibilities for you if you
0048 distribute copies of the library, or if you modify it.
0049
0050 For example, if you distribute copies of the library, whether gratis or for
0051 a fee, you must give the recipients all the rights that we gave you. You
0052 must make sure that they, too, receive or can get the source code. If you
0053 link a program with the library, you must provide complete object files to
0054 the recipients so that they can relink them with the library, after making
0055 changes to the library and recompiling it. And you must show them these
0056 terms so they know their rights.
0057
0058 Our method of protecting your rights has two steps: (1) copyright the
0059 library, and (2) offer you this license which gives you legal permission to
0060 copy, distribute and/or modify the library.
0061
0062 Also, for each distributor's protection, we want to make certain that
0063 everyone understands that there is no warranty for this free library. If
0064 the library is modified by someone else and passed on, we want its
0065 recipients to know that what they have is not the original version, so that
0066 any problems introduced by others will not reflect on the original authors'
0067 reputations.
0068
0069 Finally, any free program is threatened constantly by software patents. We
0070 wish to avoid the danger that companies distributing free software will
0071 individually obtain patent licenses, thus in effect transforming the
0072 program into proprietary software. To prevent this, we have made it clear
0073 that any patent must be licensed for everyone's free use or not licensed at
0074 all.
0075
0076 Most GNU software, including some libraries, is covered by the ordinary GNU
0077 General Public License, which was designed for utility programs. This
0078 license, the GNU Library General Public License, applies to certain
0079 designated libraries. This license is quite different from the ordinary
0080 one; be sure to read it in full, and don't assume that anything in it is
0081 the same as in the ordinary license.
0082
0083 The reason we have a separate public license for some libraries is that
0084 they blur the distinction we usually make between modifying or adding to a
0085 program and simply using it. Linking a program with a library, without
0086 changing the library, is in some sense simply using the library, and is
0087 analogous to running a utility program or application program. However, in
0088 a textual and legal sense, the linked executable is a combined work, a
0089 derivative of the original library, and the ordinary General Public License
0090 treats it as such.
0091
0092 Because of this blurred distinction, using the ordinary General Public
0093 License for libraries did not effectively promote software sharing, because
0094 most developers did not use the libraries. We concluded that weaker
0095 conditions might promote sharing better.
0096
0097 However, unrestricted linking of non-free programs would deprive the users
0098 of those programs of all benefit from the free status of the libraries
0099 themselves. This Library General Public License is intended to permit
0100 developers of non-free programs to use free libraries, while preserving
0101 your freedom as a user of such programs to change the free libraries that
0102 are incorporated in them. (We have not seen how to achieve this as regards
0103 changes in header files, but we have achieved it as regards changes in the
0104 actual functions of the Library.) The hope is that this will lead to faster
0105 development of free libraries.
0106
0107 The precise terms and conditions for copying, distribution and modification
0108 follow. Pay close attention to the difference between a "work based on the
0109 library" and a "work that uses the library". The former contains code
0110 derived from the library, while the latter only works together with the
0111 library.
0112
0113 Note that it is possible for a library to be covered by the ordinary
0114 General Public License rather than by this special one.
0115
0116 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0117
0118 0. This License Agreement applies to any software library which contains a
0119 notice placed by the copyright holder or other authorized party saying
0120 it may be distributed under the terms of this Library General Public
0121 License (also called "this License"). Each licensee is addressed as
0122 "you".
0123
0124 A "library" means a collection of software functions and/or data
0125 prepared so as to be conveniently linked with application programs
0126 (which use some of those functions and data) to form executables.
0127
0128 The "Library", below, refers to any such software library or work which
0129 has been distributed under these terms. A "work based on the Library"
0130 means either the Library or any derivative work under copyright law:
0131 that is to say, a work containing the Library or a portion of it, either
0132 verbatim or with modifications and/or translated straightforwardly into
0133 another language. (Hereinafter, translation is included without
0134 limitation in the term "modification".)
0135
0136 "Source code" for a work means the preferred form of the work for making
0137 modifications to it. For a library, complete source code means all the
0138 source code for all modules it contains, plus any associated interface
0139 definition files, plus the scripts used to control compilation and
0140 installation of the library.
0141
0142 Activities other than copying, distribution and modification are not
0143 covered by this License; they are outside its scope. The act of running
0144 a program using the Library is not restricted, and output from such a
0145 program is covered only if its contents constitute a work based on the
0146 Library (independent of the use of the Library in a tool for writing
0147 it). Whether that is true depends on what the Library does and what the
0148 program that uses the Library does.
0149
0150 1. You may copy and distribute verbatim copies of the Library's complete
0151 source code as you receive it, in any medium, provided that you
0152 conspicuously and appropriately publish on each copy an appropriate
0153 copyright notice and disclaimer of warranty; keep intact all the notices
0154 that refer to this License and to the absence of any warranty; and
0155 distribute a copy of this License along with the Library.
0156
0157 You may charge a fee for the physical act of transferring a copy, and
0158 you may at your option offer warranty protection in exchange for a fee.
0159
0160 2. You may modify your copy or copies of the Library or any portion of it,
0161 thus forming a work based on the Library, and copy and distribute such
0162 modifications or work under the terms of Section 1 above, provided that
0163 you also meet all of these conditions:
0164
0165 a) The modified work must itself be a software library.
0166
0167 b) You must cause the files modified to carry prominent notices stating
0168 that you changed the files and the date of any change.
0169
0170 c) You must cause the whole of the work to be licensed at no charge to
0171 all third parties under the terms of this License.
0172
0173 d) If a facility in the modified Library refers to a function or a table
0174 of data to be supplied by an application program that uses the
0175 facility, other than as an argument passed when the facility is
0176 invoked, then you must make a good faith effort to ensure that, in
0177 the event an application does not supply such function or table, the
0178 facility still operates, and performs whatever part of its purpose
0179 remains meaningful.
0180
0181 (For example, a function in a library to compute square roots has a
0182 purpose that is entirely well-defined independent of the
0183 application. Therefore, Subsection 2d requires that any
0184 application-supplied function or table used by this function must be
0185 optional: if the application does not supply it, the square root
0186 function must still compute square roots.)
0187
0188 These requirements apply to the modified work as a whole. If
0189 identifiable sections of that work are not derived from the Library, and
0190 can be reasonably considered independent and separate works in
0191 themselves, then this License, and its terms, do not apply to those
0192 sections when you distribute them as separate works. But when you
0193 distribute the same sections as part of a whole which is a work based on
0194 the Library, the distribution of the whole must be on the terms of this
0195 License, whose permissions for other licensees extend to the entire
0196 whole, and thus to each and every part regardless of who wrote it.
0197
0198 Thus, it is not the intent of this section to claim rights or contest
0199 your rights to work written entirely by you; rather, the intent is to
0200 exercise the right to control the distribution of derivative or
0201 collective works based on the Library.
0202
0203 In addition, mere aggregation of another work not based on the Library
0204 with the Library (or with a work based on the Library) on a volume of a
0205 storage or distribution medium does not bring the other work under the
0206 scope of this License.
0207
0208 3. You may opt to apply the terms of the ordinary GNU General Public
0209 License instead of this License to a given copy of the Library. To do
0210 this, you must alter all the notices that refer to this License, so that
0211 they refer to the ordinary GNU General Public License, version 2,
0212 instead of to this License. (If a newer version than version 2 of the
0213 ordinary GNU General Public License has appeared, then you can specify
0214 that version instead if you wish.) Do not make any other change in these
0215 notices.
0216
0217 Once this change is made in a given copy, it is irreversible for that
0218 copy, so the ordinary GNU General Public License applies to all
0219 subsequent copies and derivative works made from that copy.
0220
0221 This option is useful when you wish to copy part of the code of the
0222 Library into a program that is not a library.
0223
0224 4. You may copy and distribute the Library (or a portion or derivative of
0225 it, under Section 2) in object code or executable form under the terms
0226 of Sections 1 and 2 above provided that you accompany it with the
0227 complete corresponding machine-readable source code, which must be
0228 distributed under the terms of Sections 1 and 2 above on a medium
0229 customarily used for software interchange.
0230
0231 If distribution of object code is made by offering access to copy from a
0232 designated place, then offering equivalent access to copy the source
0233 code from the same place satisfies the requirement to distribute the
0234 source code, even though third parties are not compelled to copy the
0235 source along with the object code.
0236
0237 5. A program that contains no derivative of any portion of the Library, but
0238 is designed to work with the Library by being compiled or linked with
0239 it, is called a "work that uses the Library". Such a work, in isolation,
0240 is not a derivative work of the Library, and therefore falls outside the
0241 scope of this License.
0242
0243 However, linking a "work that uses the Library" with the Library creates
0244 an executable that is a derivative of the Library (because it contains
0245 portions of the Library), rather than a "work that uses the
0246 library". The executable is therefore covered by this License. Section 6
0247 states terms for distribution of such executables.
0248
0249 When a "work that uses the Library" uses material from a header file
0250 that is part of the Library, the object code for the work may be a
0251 derivative work of the Library even though the source code is
0252 not. Whether this is true is especially significant if the work can be
0253 linked without the Library, or if the work is itself a library. The
0254 threshold for this to be true is not precisely defined by law.
0255
0256 If such an object file uses only numerical parameters, data structure
0257 layouts and accessors, and small macros and small inline functions (ten
0258 lines or less in length), then the use of the object file is
0259 unrestricted, regardless of whether it is legally a derivative
0260 work. (Executables containing this object code plus portions of the
0261 Library will still fall under Section 6.)
0262
0263 Otherwise, if the work is a derivative of the Library, you may
0264 distribute the object code for the work under the terms of Section
0265 6. Any executables containing that work also fall under Section 6,
0266 whether or not they are linked directly with the Library itself.
0267
0268 6. As an exception to the Sections above, you may also compile or link a
0269 "work that uses the Library" with the Library to produce a work
0270 containing portions of the Library, and distribute that work under terms
0271 of your choice, provided that the terms permit modification of the work
0272 for the customer's own use and reverse engineering for debugging such
0273 modifications.
0274
0275 You must give prominent notice with each copy of the work that the
0276 Library is used in it and that the Library and its use are covered by
0277 this License. You must supply a copy of this License. If the work during
0278 execution displays copyright notices, you must include the copyright
0279 notice for the Library among them, as well as a reference directing the
0280 user to the copy of this License. Also, you must do one of these things:
0281
0282 a) Accompany the work with the complete corresponding machine-readable
0283 source code for the Library including whatever changes were used in
0284 the work (which must be distributed under Sections 1 and 2 above);
0285 and, if the work is an executable linked with the Library, with the
0286 complete machine-readable "work that uses the Library", as object
0287 code and/or source code, so that the user can modify the Library and
0288 then relink to produce a modified executable containing the modified
0289 Library. (It is understood that the user who changes the contents of
0290 definitions files in the Library will not necessarily be able to
0291 recompile the application to use the modified definitions.)
0292
0293 b) Accompany the work with a written offer, valid for at least three
0294 years, to give the same user the materials specified in Subsection
0295 6a, above, for a charge no more than the cost of performing this
0296 distribution.
0297
0298 c) If distribution of the work is made by offering access to copy from a
0299 designated place, offer equivalent access to copy the above specified
0300 materials from the same place.
0301
0302 d) Verify that the user has already received a copy of these materials
0303 or that you have already sent this user a copy.
0304
0305 For an executable, the required form of the "work that uses the Library"
0306 must include any data and utility programs needed for reproducing the
0307 executable from it. However, as a special exception, the source code
0308 distributed need not include anything that is normally distributed (in
0309 either source or binary form) with the major components (compiler,
0310 kernel, and so on) of the operating system on which the executable runs,
0311 unless that component itself accompanies the executable.
0312
0313 It may happen that this requirement contradicts the license restrictions
0314 of other proprietary libraries that do not normally accompany the
0315 operating system. Such a contradiction means you cannot use both them
0316 and the Library together in an executable that you distribute.
0317
0318 7. You may place library facilities that are a work based on the Library
0319 side-by-side in a single library together with other library facilities
0320 not covered by this License, and distribute such a combined library,
0321 provided that the separate distribution of the work based on the Library
0322 and of the other library facilities is otherwise permitted, and provided
0323 that you do these two things:
0324
0325 a) Accompany the combined library with a copy of the same work based on
0326 the Library, uncombined with any other library facilities. This must
0327 be distributed under the terms of the Sections above.
0328
0329 b) Give prominent notice with the combined library of the fact that part
0330 of it is a work based on the Library, and explaining where to find
0331 the accompanying uncombined form of the same work.
0332
0333 8. You may not copy, modify, sublicense, link with, or distribute the
0334 Library except as expressly provided under this License. Any attempt
0335 otherwise to copy, modify, sublicense, link with, or distribute the
0336 Library is void, and will automatically terminate your rights under this
0337 License. However, parties who have received copies, or rights, from you
0338 under this License will not have their licenses terminated so long as
0339 such parties remain in full compliance.
0340
0341 9. You are not required to accept this License, since you have not signed
0342 it. However, nothing else grants you permission to modify or distribute
0343 the Library or its derivative works. These actions are prohibited by law
0344 if you do not accept this License. Therefore, by modifying or
0345 distributing the Library (or any work based on the Library), you
0346 indicate your acceptance of this License to do so, and all its terms and
0347 conditions for copying, distributing or modifying the Library or works
0348 based on it.
0349
0350 10. Each time you redistribute the Library (or any work based on the
0351 Library), the recipient automatically receives a license from the
0352 original licensor to copy, distribute, link with or modify the Library
0353 subject to these terms and conditions. You may not impose any further
0354 restrictions on the recipients' exercise of the rights granted
0355 herein. You are not responsible for enforcing compliance by third
0356 parties to this License.
0357
0358 11. If, as a consequence of a court judgment or allegation of patent
0359 infringement or for any other reason (not limited to patent issues),
0360 conditions are imposed on you (whether by court order, agreement or
0361 otherwise) that contradict the conditions of this License, they do not
0362 excuse you from the conditions of this License. If you cannot
0363 distribute so as to satisfy simultaneously your obligations under this
0364 License and any other pertinent obligations, then as a consequence you
0365 may not distribute the Library at all. For example, if a patent license
0366 would not permit royalty-free redistribution of the Library by all
0367 those who receive copies directly or indirectly through you, then the
0368 only way you could satisfy both it and this License would be to refrain
0369 entirely from distribution of the Library.
0370
0371 If any portion of this section is held invalid or unenforceable under
0372 any particular circumstance, the balance of the section is intended to
0373 apply, and the section as a whole is intended to apply in other
0374 circumstances.
0375
0376 It is not the purpose of this section to induce you to infringe any
0377 patents or other property right claims or to contest validity of any
0378 such claims; this section has the sole purpose of protecting the
0379 integrity of the free software distribution system which is implemented
0380 by public license practices. Many people have made generous
0381 contributions to the wide range of software distributed through that
0382 system in reliance on consistent application of that system; it is up
0383 to the author/donor to decide if he or she is willing to distribute
0384 software through any other system and a licensee cannot impose that
0385 choice.
0386
0387 This section is intended to make thoroughly clear what is believed to
0388 be a consequence of the rest of this License.
0389
0390 12. If the distribution and/or use of the Library is restricted in certain
0391 countries either by patents or by copyrighted interfaces, the original
0392 copyright holder who places the Library under this License may add an
0393 explicit geographical distribution limitation excluding those
0394 countries, so that distribution is permitted only in or among countries
0395 not thus excluded. In such case, this License incorporates the
0396 limitation as if written in the body of this License.
0397
0398 13. The Free Software Foundation may publish revised and/or new versions of
0399 the Library General Public License from time to time. Such new versions
0400 will be similar in spirit to the present version, but may differ in
0401 detail to address new problems or concerns.
0402
0403 Each version is given a distinguishing version number. If the Library
0404 specifies a version number of this License which applies to it and "any
0405 later version", you have the option of following the terms and
0406 conditions either of that version or of any later version published by
0407 the Free Software Foundation. If the Library does not specify a license
0408 version number, you may choose any version ever published by the Free
0409 Software Foundation.
0410
0411 14. If you wish to incorporate parts of the Library into other free
0412 programs whose distribution conditions are incompatible with these,
0413 write to the author to ask for permission. For software which is
0414 copyrighted by the Free Software Foundation, write to the Free Software
0415 Foundation; we sometimes make exceptions for this. Our decision will be
0416 guided by the two goals of preserving the free status of all
0417 derivatives of our free software and of promoting the sharing and reuse
0418 of software generally.
0419
0420 NO WARRANTY
0421
0422 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
0423 FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
0424 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
0425 PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
0426 EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0427 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
0428 ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
0429 YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
0430 NECESSARY SERVICING, REPAIR OR CORRECTION.
0431
0432 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
0433 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
0434 REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
0435 DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
0436 DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY
0437 (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
0438 INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
0439 THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR
0440 OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
0441
0442 END OF TERMS AND CONDITIONS
0443
0444 How to Apply These Terms to Your New Libraries
0445
0446 If you develop a new library, and you want it to be of the greatest
0447 possible use to the public, we recommend making it free software that
0448 everyone can redistribute and change. You can do so by permitting
0449 redistribution under these terms (or, alternatively, under the terms of the
0450 ordinary General Public License).
0451
0452 To apply these terms, attach the following notices to the library. It is
0453 safest to attach them to the start of each source file to most effectively
0454 convey the exclusion of warranty; and each file should have at least the
0455 "copyright" line and a pointer to where the full notice is found.
0456
0457 one line to give the library's name and an idea of what it does.
0458 Copyright (C) year name of author
0459
0460 This library is free software; you can redistribute it and/or modify it
0461 under the terms of the GNU Library General Public License as published by
0462 the Free Software Foundation; either version 2 of the License, or (at your
0463 option) any later version.
0464
0465 This library is distributed in the hope that it will be useful, but WITHOUT
0466 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0467 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
0468 License for more details.
0469
0470 You should have received a copy of the GNU Library General Public License
0471 along with this library; if not, write to the Free Software Foundation,
0472 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
0473
0474 Also add information on how to contact you by electronic and paper mail.
0475
0476 You should also get your employer (if you work as a programmer) or your
0477 school, if any, to sign a "copyright disclaimer" for the library, if
0478 necessary. Here is a sample; alter the names:
0479
0480 Yoyodyne, Inc., hereby disclaims all copyright interest in
0481 the library `Frob' (a library for tweaking knobs) written
0482 by James Random Hacker.
0483
0484 signature of Ty Coon, 1 April 1990
0485 Ty Coon, President of Vice
0486
0487 That's all there is to it!