LGPL-2.0 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. Valid-License-Identifier: LGPL-2.0
  2. Valid-License-Identifier: LGPL-2.0+
  3. SPDX-URL: https://spdx.org/licenses/LGPL-2.0.html
  4. Usage-Guide:
  5. To use this license in source code, put one of the following SPDX
  6. tag/value pairs into a comment according to the placement
  7. guidelines in the licensing rules documentation.
  8. For 'GNU Library General Public License (LGPL) version 2.0 only' use:
  9. SPDX-License-Identifier: LGPL-2.0
  10. For 'GNU Library General Public License (LGPL) version 2.0 or any later
  11. version' use:
  12. SPDX-License-Identifier: LGPL-2.0+
  13. License-Text:
  14. GNU LIBRARY GENERAL PUBLIC LICENSE
  15. Version 2, June 1991
  16. Copyright (C) 1991 Free Software Foundation, Inc.
  17. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  18. Everyone is permitted to copy and distribute verbatim copies of this
  19. license document, but changing it is not allowed.
  20. [This is the first released version of the library GPL. It is numbered 2
  21. because it goes with version 2 of the ordinary GPL.]
  22. Preamble
  23. The licenses for most software are designed to take away your freedom to
  24. share and change it. By contrast, the GNU General Public Licenses are
  25. intended to guarantee your freedom to share and change free software--to
  26. make sure the software is free for all its users.
  27. This license, the Library General Public License, applies to some specially
  28. designated Free Software Foundation software, and to any other libraries
  29. whose authors decide to use it. You can use it for your libraries, too.
  30. When we speak of free software, we are referring to freedom, not price. Our
  31. General Public Licenses are designed to make sure that you have the freedom
  32. to distribute copies of free software (and charge for this service if you
  33. wish), that you receive source code or can get it if you want it, that you
  34. can change the software or use pieces of it in new free programs; and that
  35. you know you can do these things.
  36. To protect your rights, we need to make restrictions that forbid anyone to
  37. deny you these rights or to ask you to surrender the rights. These
  38. restrictions translate to certain responsibilities for you if you
  39. distribute copies of the library, or if you modify it.
  40. For example, if you distribute copies of the library, whether gratis or for
  41. a fee, you must give the recipients all the rights that we gave you. You
  42. must make sure that they, too, receive or can get the source code. If you
  43. link a program with the library, you must provide complete object files to
  44. the recipients so that they can relink them with the library, after making
  45. changes to the library and recompiling it. And you must show them these
  46. terms so they know their rights.
  47. Our method of protecting your rights has two steps: (1) copyright the
  48. library, and (2) offer you this license which gives you legal permission to
  49. copy, distribute and/or modify the library.
  50. Also, for each distributor's protection, we want to make certain that
  51. everyone understands that there is no warranty for this free library. If
  52. the library is modified by someone else and passed on, we want its
  53. recipients to know that what they have is not the original version, so that
  54. any problems introduced by others will not reflect on the original authors'
  55. reputations.
  56. Finally, any free program is threatened constantly by software patents. We
  57. wish to avoid the danger that companies distributing free software will
  58. individually obtain patent licenses, thus in effect transforming the
  59. program into proprietary software. To prevent this, we have made it clear
  60. that any patent must be licensed for everyone's free use or not licensed at
  61. all.
  62. Most GNU software, including some libraries, is covered by the ordinary GNU
  63. General Public License, which was designed for utility programs. This
  64. license, the GNU Library General Public License, applies to certain
  65. designated libraries. This license is quite different from the ordinary
  66. one; be sure to read it in full, and don't assume that anything in it is
  67. the same as in the ordinary license.
  68. The reason we have a separate public license for some libraries is that
  69. they blur the distinction we usually make between modifying or adding to a
  70. program and simply using it. Linking a program with a library, without
  71. changing the library, is in some sense simply using the library, and is
  72. analogous to running a utility program or application program. However, in
  73. a textual and legal sense, the linked executable is a combined work, a
  74. derivative of the original library, and the ordinary General Public License
  75. treats it as such.
  76. Because of this blurred distinction, using the ordinary General Public
  77. License for libraries did not effectively promote software sharing, because
  78. most developers did not use the libraries. We concluded that weaker
  79. conditions might promote sharing better.
  80. However, unrestricted linking of non-free programs would deprive the users
  81. of those programs of all benefit from the free status of the libraries
  82. themselves. This Library General Public License is intended to permit
  83. developers of non-free programs to use free libraries, while preserving
  84. your freedom as a user of such programs to change the free libraries that
  85. are incorporated in them. (We have not seen how to achieve this as regards
  86. changes in header files, but we have achieved it as regards changes in the
  87. actual functions of the Library.) The hope is that this will lead to faster
  88. development of free libraries.
  89. The precise terms and conditions for copying, distribution and modification
  90. follow. Pay close attention to the difference between a "work based on the
  91. library" and a "work that uses the library". The former contains code
  92. derived from the library, while the latter only works together with the
  93. library.
  94. Note that it is possible for a library to be covered by the ordinary
  95. General Public License rather than by this special one.
  96. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  97. 0. This License Agreement applies to any software library which contains a
  98. notice placed by the copyright holder or other authorized party saying
  99. it may be distributed under the terms of this Library General Public
  100. License (also called "this License"). Each licensee is addressed as
  101. "you".
  102. A "library" means a collection of software functions and/or data
  103. prepared so as to be conveniently linked with application programs
  104. (which use some of those functions and data) to form executables.
  105. The "Library", below, refers to any such software library or work which
  106. has been distributed under these terms. A "work based on the Library"
  107. means either the Library or any derivative work under copyright law:
  108. that is to say, a work containing the Library or a portion of it, either
  109. verbatim or with modifications and/or translated straightforwardly into
  110. another language. (Hereinafter, translation is included without
  111. limitation in the term "modification".)
  112. "Source code" for a work means the preferred form of the work for making
  113. modifications to it. For a library, complete source code means all the
  114. source code for all modules it contains, plus any associated interface
  115. definition files, plus the scripts used to control compilation and
  116. installation of the library.
  117. Activities other than copying, distribution and modification are not
  118. covered by this License; they are outside its scope. The act of running
  119. a program using the Library is not restricted, and output from such a
  120. program is covered only if its contents constitute a work based on the
  121. Library (independent of the use of the Library in a tool for writing
  122. it). Whether that is true depends on what the Library does and what the
  123. program that uses the Library does.
  124. 1. You may copy and distribute verbatim copies of the Library's complete
  125. source code as you receive it, in any medium, provided that you
  126. conspicuously and appropriately publish on each copy an appropriate
  127. copyright notice and disclaimer of warranty; keep intact all the notices
  128. that refer to this License and to the absence of any warranty; and
  129. distribute a copy of this License along with the Library.
  130. You may charge a fee for the physical act of transferring a copy, and
  131. you may at your option offer warranty protection in exchange for a fee.
  132. 2. You may modify your copy or copies of the Library or any portion of it,
  133. thus forming a work based on the Library, and copy and distribute such
  134. modifications or work under the terms of Section 1 above, provided that
  135. you also meet all of these conditions:
  136. a) The modified work must itself be a software library.
  137. b) You must cause the files modified to carry prominent notices stating
  138. that you changed the files and the date of any change.
  139. c) You must cause the whole of the work to be licensed at no charge to
  140. all third parties under the terms of this License.
  141. d) If a facility in the modified Library refers to a function or a table
  142. of data to be supplied by an application program that uses the
  143. facility, other than as an argument passed when the facility is
  144. invoked, then you must make a good faith effort to ensure that, in
  145. the event an application does not supply such function or table, the
  146. facility still operates, and performs whatever part of its purpose
  147. remains meaningful.
  148. (For example, a function in a library to compute square roots has a
  149. purpose that is entirely well-defined independent of the
  150. application. Therefore, Subsection 2d requires that any
  151. application-supplied function or table used by this function must be
  152. optional: if the application does not supply it, the square root
  153. function must still compute square roots.)
  154. These requirements apply to the modified work as a whole. If
  155. identifiable sections of that work are not derived from the Library, and
  156. can be reasonably considered independent and separate works in
  157. themselves, then this License, and its terms, do not apply to those
  158. sections when you distribute them as separate works. But when you
  159. distribute the same sections as part of a whole which is a work based on
  160. the Library, the distribution of the whole must be on the terms of this
  161. License, whose permissions for other licensees extend to the entire
  162. whole, and thus to each and every part regardless of who wrote it.
  163. Thus, it is not the intent of this section to claim rights or contest
  164. your rights to work written entirely by you; rather, the intent is to
  165. exercise the right to control the distribution of derivative or
  166. collective works based on the Library.
  167. In addition, mere aggregation of another work not based on the Library
  168. with the Library (or with a work based on the Library) on a volume of a
  169. storage or distribution medium does not bring the other work under the
  170. scope of this License.
  171. 3. You may opt to apply the terms of the ordinary GNU General Public
  172. License instead of this License to a given copy of the Library. To do
  173. this, you must alter all the notices that refer to this License, so that
  174. they refer to the ordinary GNU General Public License, version 2,
  175. instead of to this License. (If a newer version than version 2 of the
  176. ordinary GNU General Public License has appeared, then you can specify
  177. that version instead if you wish.) Do not make any other change in these
  178. notices.
  179. Once this change is made in a given copy, it is irreversible for that
  180. copy, so the ordinary GNU General Public License applies to all
  181. subsequent copies and derivative works made from that copy.
  182. This option is useful when you wish to copy part of the code of the
  183. Library into a program that is not a library.
  184. 4. You may copy and distribute the Library (or a portion or derivative of
  185. it, under Section 2) in object code or executable form under the terms
  186. of Sections 1 and 2 above provided that you accompany it with the
  187. complete corresponding machine-readable source code, which must be
  188. distributed under the terms of Sections 1 and 2 above on a medium
  189. customarily used for software interchange.
  190. If distribution of object code is made by offering access to copy from a
  191. designated place, then offering equivalent access to copy the source
  192. code from the same place satisfies the requirement to distribute the
  193. source code, even though third parties are not compelled to copy the
  194. source along with the object code.
  195. 5. A program that contains no derivative of any portion of the Library, but
  196. is designed to work with the Library by being compiled or linked with
  197. it, is called a "work that uses the Library". Such a work, in isolation,
  198. is not a derivative work of the Library, and therefore falls outside the
  199. scope of this License.
  200. However, linking a "work that uses the Library" with the Library creates
  201. an executable that is a derivative of the Library (because it contains
  202. portions of the Library), rather than a "work that uses the
  203. library". The executable is therefore covered by this License. Section 6
  204. states terms for distribution of such executables.
  205. When a "work that uses the Library" uses material from a header file
  206. that is part of the Library, the object code for the work may be a
  207. derivative work of the Library even though the source code is
  208. not. Whether this is true is especially significant if the work can be
  209. linked without the Library, or if the work is itself a library. The
  210. threshold for this to be true is not precisely defined by law.
  211. If such an object file uses only numerical parameters, data structure
  212. layouts and accessors, and small macros and small inline functions (ten
  213. lines or less in length), then the use of the object file is
  214. unrestricted, regardless of whether it is legally a derivative
  215. work. (Executables containing this object code plus portions of the
  216. Library will still fall under Section 6.)
  217. Otherwise, if the work is a derivative of the Library, you may
  218. distribute the object code for the work under the terms of Section
  219. 6. Any executables containing that work also fall under Section 6,
  220. whether or not they are linked directly with the Library itself.
  221. 6. As an exception to the Sections above, you may also compile or link a
  222. "work that uses the Library" with the Library to produce a work
  223. containing portions of the Library, and distribute that work under terms
  224. of your choice, provided that the terms permit modification of the work
  225. for the customer's own use and reverse engineering for debugging such
  226. modifications.
  227. You must give prominent notice with each copy of the work that the
  228. Library is used in it and that the Library and its use are covered by
  229. this License. You must supply a copy of this License. If the work during
  230. execution displays copyright notices, you must include the copyright
  231. notice for the Library among them, as well as a reference directing the
  232. user to the copy of this License. Also, you must do one of these things:
  233. a) Accompany the work with the complete corresponding machine-readable
  234. source code for the Library including whatever changes were used in
  235. the work (which must be distributed under Sections 1 and 2 above);
  236. and, if the work is an executable linked with the Library, with the
  237. complete machine-readable "work that uses the Library", as object
  238. code and/or source code, so that the user can modify the Library and
  239. then relink to produce a modified executable containing the modified
  240. Library. (It is understood that the user who changes the contents of
  241. definitions files in the Library will not necessarily be able to
  242. recompile the application to use the modified definitions.)
  243. b) Accompany the work with a written offer, valid for at least three
  244. years, to give the same user the materials specified in Subsection
  245. 6a, above, for a charge no more than the cost of performing this
  246. distribution.
  247. c) If distribution of the work is made by offering access to copy from a
  248. designated place, offer equivalent access to copy the above specified
  249. materials from the same place.
  250. d) Verify that the user has already received a copy of these materials
  251. or that you have already sent this user a copy.
  252. For an executable, the required form of the "work that uses the Library"
  253. must include any data and utility programs needed for reproducing the
  254. executable from it. However, as a special exception, the source code
  255. distributed need not include anything that is normally distributed (in
  256. either source or binary form) with the major components (compiler,
  257. kernel, and so on) of the operating system on which the executable runs,
  258. unless that component itself accompanies the executable.
  259. It may happen that this requirement contradicts the license restrictions
  260. of other proprietary libraries that do not normally accompany the
  261. operating system. Such a contradiction means you cannot use both them
  262. and the Library together in an executable that you distribute.
  263. 7. You may place library facilities that are a work based on the Library
  264. side-by-side in a single library together with other library facilities
  265. not covered by this License, and distribute such a combined library,
  266. provided that the separate distribution of the work based on the Library
  267. and of the other library facilities is otherwise permitted, and provided
  268. that you do these two things:
  269. a) Accompany the combined library with a copy of the same work based on
  270. the Library, uncombined with any other library facilities. This must
  271. be distributed under the terms of the Sections above.
  272. b) Give prominent notice with the combined library of the fact that part
  273. of it is a work based on the Library, and explaining where to find
  274. the accompanying uncombined form of the same work.
  275. 8. You may not copy, modify, sublicense, link with, or distribute the
  276. Library except as expressly provided under this License. Any attempt
  277. otherwise to copy, modify, sublicense, link with, or distribute the
  278. Library is void, and will automatically terminate your rights under this
  279. License. However, parties who have received copies, or rights, from you
  280. under this License will not have their licenses terminated so long as
  281. such parties remain in full compliance.
  282. 9. You are not required to accept this License, since you have not signed
  283. it. However, nothing else grants you permission to modify or distribute
  284. the Library or its derivative works. These actions are prohibited by law
  285. if you do not accept this License. Therefore, by modifying or
  286. distributing the Library (or any work based on the Library), you
  287. indicate your acceptance of this License to do so, and all its terms and
  288. conditions for copying, distributing or modifying the Library or works
  289. based on it.
  290. 10. Each time you redistribute the Library (or any work based on the
  291. Library), the recipient automatically receives a license from the
  292. original licensor to copy, distribute, link with or modify the Library
  293. subject to these terms and conditions. You may not impose any further
  294. restrictions on the recipients' exercise of the rights granted
  295. herein. You are not responsible for enforcing compliance by third
  296. parties to this License.
  297. 11. If, as a consequence of a court judgment or allegation of patent
  298. infringement or for any other reason (not limited to patent issues),
  299. conditions are imposed on you (whether by court order, agreement or
  300. otherwise) that contradict the conditions of this License, they do not
  301. excuse you from the conditions of this License. If you cannot
  302. distribute so as to satisfy simultaneously your obligations under this
  303. License and any other pertinent obligations, then as a consequence you
  304. may not distribute the Library at all. For example, if a patent license
  305. would not permit royalty-free redistribution of the Library by all
  306. those who receive copies directly or indirectly through you, then the
  307. only way you could satisfy both it and this License would be to refrain
  308. entirely from distribution of the Library.
  309. If any portion of this section is held invalid or unenforceable under
  310. any particular circumstance, the balance of the section is intended to
  311. apply, and the section as a whole is intended to apply in other
  312. circumstances.
  313. It is not the purpose of this section to induce you to infringe any
  314. patents or other property right claims or to contest validity of any
  315. such claims; this section has the sole purpose of protecting the
  316. integrity of the free software distribution system which is implemented
  317. by public license practices. Many people have made generous
  318. contributions to the wide range of software distributed through that
  319. system in reliance on consistent application of that system; it is up
  320. to the author/donor to decide if he or she is willing to distribute
  321. software through any other system and a licensee cannot impose that
  322. choice.
  323. This section is intended to make thoroughly clear what is believed to
  324. be a consequence of the rest of this License.
  325. 12. If the distribution and/or use of the Library is restricted in certain
  326. countries either by patents or by copyrighted interfaces, the original
  327. copyright holder who places the Library under this License may add an
  328. explicit geographical distribution limitation excluding those
  329. countries, so that distribution is permitted only in or among countries
  330. not thus excluded. In such case, this License incorporates the
  331. limitation as if written in the body of this License.
  332. 13. The Free Software Foundation may publish revised and/or new versions of
  333. the Library General Public License from time to time. Such new versions
  334. will be similar in spirit to the present version, but may differ in
  335. detail to address new problems or concerns.
  336. Each version is given a distinguishing version number. If the Library
  337. specifies a version number of this License which applies to it and "any
  338. later version", you have the option of following the terms and
  339. conditions either of that version or of any later version published by
  340. the Free Software Foundation. If the Library does not specify a license
  341. version number, you may choose any version ever published by the Free
  342. Software Foundation.
  343. 14. If you wish to incorporate parts of the Library into other free
  344. programs whose distribution conditions are incompatible with these,
  345. write to the author to ask for permission. For software which is
  346. copyrighted by the Free Software Foundation, write to the Free Software
  347. Foundation; we sometimes make exceptions for this. Our decision will be
  348. guided by the two goals of preserving the free status of all
  349. derivatives of our free software and of promoting the sharing and reuse
  350. of software generally.
  351. NO WARRANTY
  352. 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  353. FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  354. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  355. PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
  356. EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  357. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
  358. ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
  359. YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  360. NECESSARY SERVICING, REPAIR OR CORRECTION.
  361. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  362. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  363. REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  364. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
  365. DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY
  366. (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
  367. INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
  368. THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR
  369. OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  370. END OF TERMS AND CONDITIONS
  371. How to Apply These Terms to Your New Libraries
  372. If you develop a new library, and you want it to be of the greatest
  373. possible use to the public, we recommend making it free software that
  374. everyone can redistribute and change. You can do so by permitting
  375. redistribution under these terms (or, alternatively, under the terms of the
  376. ordinary General Public License).
  377. To apply these terms, attach the following notices to the library. It is
  378. safest to attach them to the start of each source file to most effectively
  379. convey the exclusion of warranty; and each file should have at least the
  380. "copyright" line and a pointer to where the full notice is found.
  381. one line to give the library's name and an idea of what it does.
  382. Copyright (C) year name of author
  383. This library is free software; you can redistribute it and/or modify it
  384. under the terms of the GNU Library General Public License as published by
  385. the Free Software Foundation; either version 2 of the License, or (at your
  386. option) any later version.
  387. This library is distributed in the hope that it will be useful, but WITHOUT
  388. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  389. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
  390. License for more details.
  391. You should have received a copy of the GNU Library General Public License
  392. along with this library; if not, write to the Free Software Foundation,
  393. Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  394. Also add information on how to contact you by electronic and paper mail.
  395. You should also get your employer (if you work as a programmer) or your
  396. school, if any, to sign a "copyright disclaimer" for the library, if
  397. necessary. Here is a sample; alter the names:
  398. Yoyodyne, Inc., hereby disclaims all copyright interest in
  399. the library `Frob' (a library for tweaking knobs) written
  400. by James Random Hacker.
  401. signature of Ty Coon, 1 April 1990
  402. Ty Coon, President of Vice
  403. That's all there is to it!