5 Different licenses apply to different files in this package. Here
6 is a rough summary of which licenses apply to which parts of this
7 package (but check the individual files to be sure!):
9 - liblzma is under the BSD Zero Clause License (0BSD).
11 - The command line tools xz, xzdec, lzmadec, and lzmainfo are
12 under 0BSD except that, on systems that don't have a usable
13 getopt_long, GNU getopt_long is compiled and linked in from the
14 'lib' directory. The getopt_long code is under GNU LGPLv2.1+.
16 - The scripts to grep, diff, and view compressed files have been
17 adapted from GNU gzip. These scripts (xzgrep, xzdiff, xzless,
18 and xzmore) are under GNU GPLv2+. The man pages of the scripts
19 are under 0BSD; they aren't based on the man pages of GNU gzip.
21 - Most of the XZ Utils specific documentation that is in
22 plain text files (like README, INSTALL, PACKAGERS, NEWS,
23 and ChangeLog) are under 0BSD unless stated otherwise in
24 the file itself. The files xz-file-format.txt and
25 lzma-file-format.xt are in the public domain but may
26 be distributed under the terms of 0BSD too.
28 - Doxygen-generated HTML version of the liblzma API documentation:
29 While Doxygen is under the GNU GPLv2, the license information
30 in Doxygen includes the following exception:
32 Documents produced by doxygen are derivative works
33 derived from the input used in their production;
34 they are not affected by this license.
36 Note: The JavaScript files (under the MIT license) have
37 been removed from the Doxygen output.
39 - The XZ logo (xz-logo.png) included in the Doxygen-generated
40 documentation is under the Creative Commons BY-SA 4.0 license.
42 - Translated messages and man pages are under 0BSD except that
43 some old translations are in the public domain.
45 - Test files and test code in the 'tests' directory, and
46 debugging utilities in the 'debug' directory are under
47 the BSD Zero Clause License (0BSD).
49 - The GNU Autotools based build system contains files that are
50 under GNU GPLv2+, GNU GPLv3+, and a few permissive licenses.
51 These files don't affect the licensing of the binaries being
54 - The extra directory contain files that are under various
55 free software licenses.
57 For the files under the BSD Zero Clause License (0BSD), if
58 a copyright notice is needed, the following is sufficient:
60 Copyright (C) The XZ Utils authors and contributors
62 If you copy significant amounts of 0BSD-licensed code from XZ Utils
63 into your project, acknowledging this somewhere in your software is
64 polite (especially if it is proprietary, non-free software), but
65 it is not legally required by the license terms. Here is an example
66 of a good notice to put into "about box" or into documentation:
68 This software includes code from XZ Utils
69 <https://xz.tukaani.org/xz-utils/>.
71 The following license texts are included in the following files:
72 - COPYING.0BSD: BSD Zero Clause License
73 - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
74 - COPYING.GPLv2: GNU General Public License version 2
75 - COPYING.GPLv3: GNU General Public License version 3
76 - COPYING.CC-BY-SA-4.0: Creative Commons Attribution-ShareAlike 4.0
77 International Public License
79 A note about old XZ Utils releases:
81 XZ Utils releases 5.4.6 and older and 5.5.1alpha have a
82 significant amount of code put into the public domain and
83 that obviously remains so. The switch from public domain to
84 0BSD for newer releases was made in Febrary 2024 because
85 public domain has (real or perceived) legal ambiguities in
88 There is very little *practical* difference between public
89 domain and 0BSD. The main difference likely is that one
90 shouldn't claim that 0BSD-licensed code is in the public
91 domain; 0BSD-licensed code is copyrighted but available under
92 an extremely permissive license. Neither 0BSD nor public domain
93 require retaining or reproducing author, copyright holder, or
94 license notices when distributing the software. (Compare to,
95 for example, BSD 2-Clause "Simplified" License which does have
98 If you have questions, don't hesitate to ask for more information.
99 The contact information is in the README file.
101 ===============================================================================
103 Permission to use, copy, modify, and/or distribute this
104 software for any purpose with or without fee is hereby granted.
106 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
107 WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
108 WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
109 THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
110 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
111 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
112 NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
113 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
115 ===============================================================================
117 Attribution-ShareAlike 4.0 International
119 =======================================================================
121 Creative Commons Corporation ("Creative Commons") is not a law firm and
122 does not provide legal services or legal advice. Distribution of
123 Creative Commons public licenses does not create a lawyer-client or
124 other relationship. Creative Commons makes its licenses and related
125 information available on an "as-is" basis. Creative Commons gives no
126 warranties regarding its licenses, any material licensed under their
127 terms and conditions, or any related information. Creative Commons
128 disclaims all liability for damages resulting from their use to the
129 fullest extent possible.
131 Using Creative Commons Public Licenses
133 Creative Commons public licenses provide a standard set of terms and
134 conditions that creators and other rights holders may use to share
135 original works of authorship and other material subject to copyright
136 and certain other rights specified in the public license below. The
137 following considerations are for informational purposes only, are not
138 exhaustive, and do not form part of our licenses.
140 Considerations for licensors: Our public licenses are
141 intended for use by those authorized to give the public
142 permission to use material in ways otherwise restricted by
143 copyright and certain other rights. Our licenses are
144 irrevocable. Licensors should read and understand the terms
145 and conditions of the license they choose before applying it.
146 Licensors should also secure all rights necessary before
147 applying our licenses so that the public can reuse the
148 material as expected. Licensors should clearly mark any
149 material not subject to the license. This includes other CC-
150 licensed material, or material used under an exception or
151 limitation to copyright. More considerations for licensors:
152 wiki.creativecommons.org/Considerations_for_licensors
154 Considerations for the public: By using one of our public
155 licenses, a licensor grants the public permission to use the
156 licensed material under specified terms and conditions. If
157 the licensor's permission is not necessary for any reason--for
158 example, because of any applicable exception or limitation to
159 copyright--then that use is not regulated by the license. Our
160 licenses grant only permissions under copyright and certain
161 other rights that a licensor has authority to grant. Use of
162 the licensed material may still be restricted for other
163 reasons, including because others have copyright or other
164 rights in the material. A licensor may make special requests,
165 such as asking that all changes be marked or described.
166 Although not required by our licenses, you are encouraged to
167 respect those requests where reasonable. More considerations
169 wiki.creativecommons.org/Considerations_for_licensees
171 =======================================================================
173 Creative Commons Attribution-ShareAlike 4.0 International Public
176 By exercising the Licensed Rights (defined below), You accept and agree
177 to be bound by the terms and conditions of this Creative Commons
178 Attribution-ShareAlike 4.0 International Public License ("Public
179 License"). To the extent this Public License may be interpreted as a
180 contract, You are granted the Licensed Rights in consideration of Your
181 acceptance of these terms and conditions, and the Licensor grants You
182 such rights in consideration of benefits the Licensor receives from
183 making the Licensed Material available under these terms and
187 Section 1 -- Definitions.
189 a. Adapted Material means material subject to Copyright and Similar
190 Rights that is derived from or based upon the Licensed Material
191 and in which the Licensed Material is translated, altered,
192 arranged, transformed, or otherwise modified in a manner requiring
193 permission under the Copyright and Similar Rights held by the
194 Licensor. For purposes of this Public License, where the Licensed
195 Material is a musical work, performance, or sound recording,
196 Adapted Material is always produced where the Licensed Material is
197 synched in timed relation with a moving image.
199 b. Adapter's License means the license You apply to Your Copyright
200 and Similar Rights in Your contributions to Adapted Material in
201 accordance with the terms and conditions of this Public License.
203 c. BY-SA Compatible License means a license listed at
204 creativecommons.org/compatiblelicenses, approved by Creative
205 Commons as essentially the equivalent of this Public License.
207 d. Copyright and Similar Rights means copyright and/or similar rights
208 closely related to copyright including, without limitation,
209 performance, broadcast, sound recording, and Sui Generis Database
210 Rights, without regard to how the rights are labeled or
211 categorized. For purposes of this Public License, the rights
212 specified in Section 2(b)(1)-(2) are not Copyright and Similar
215 e. Effective Technological Measures means those measures that, in the
216 absence of proper authority, may not be circumvented under laws
217 fulfilling obligations under Article 11 of the WIPO Copyright
218 Treaty adopted on December 20, 1996, and/or similar international
221 f. Exceptions and Limitations means fair use, fair dealing, and/or
222 any other exception or limitation to Copyright and Similar Rights
223 that applies to Your use of the Licensed Material.
225 g. License Elements means the license attributes listed in the name
226 of a Creative Commons Public License. The License Elements of this
227 Public License are Attribution and ShareAlike.
229 h. Licensed Material means the artistic or literary work, database,
230 or other material to which the Licensor applied this Public
233 i. Licensed Rights means the rights granted to You subject to the
234 terms and conditions of this Public License, which are limited to
235 all Copyright and Similar Rights that apply to Your use of the
236 Licensed Material and that the Licensor has authority to license.
238 j. Licensor means the individual(s) or entity(ies) granting rights
239 under this Public License.
241 k. Share means to provide material to the public by any means or
242 process that requires permission under the Licensed Rights, such
243 as reproduction, public display, public performance, distribution,
244 dissemination, communication, or importation, and to make material
245 available to the public including in ways that members of the
246 public may access the material from a place and at a time
247 individually chosen by them.
249 l. Sui Generis Database Rights means rights other than copyright
250 resulting from Directive 96/9/EC of the European Parliament and of
251 the Council of 11 March 1996 on the legal protection of databases,
252 as amended and/or succeeded, as well as other essentially
253 equivalent rights anywhere in the world.
255 m. You means the individual or entity exercising the Licensed Rights
256 under this Public License. Your has a corresponding meaning.
263 1. Subject to the terms and conditions of this Public License,
264 the Licensor hereby grants You a worldwide, royalty-free,
265 non-sublicensable, non-exclusive, irrevocable license to
266 exercise the Licensed Rights in the Licensed Material to:
268 a. reproduce and Share the Licensed Material, in whole or
271 b. produce, reproduce, and Share Adapted Material.
273 2. Exceptions and Limitations. For the avoidance of doubt, where
274 Exceptions and Limitations apply to Your use, this Public
275 License does not apply, and You do not need to comply with
276 its terms and conditions.
278 3. Term. The term of this Public License is specified in Section
281 4. Media and formats; technical modifications allowed. The
282 Licensor authorizes You to exercise the Licensed Rights in
283 all media and formats whether now known or hereafter created,
284 and to make technical modifications necessary to do so. The
285 Licensor waives and/or agrees not to assert any right or
286 authority to forbid You from making technical modifications
287 necessary to exercise the Licensed Rights, including
288 technical modifications necessary to circumvent Effective
289 Technological Measures. For purposes of this Public License,
290 simply making modifications authorized by this Section 2(a)
291 (4) never produces Adapted Material.
293 5. Downstream recipients.
295 a. Offer from the Licensor -- Licensed Material. Every
296 recipient of the Licensed Material automatically
297 receives an offer from the Licensor to exercise the
298 Licensed Rights under the terms and conditions of this
301 b. Additional offer from the Licensor -- Adapted Material.
302 Every recipient of Adapted Material from You
303 automatically receives an offer from the Licensor to
304 exercise the Licensed Rights in the Adapted Material
305 under the conditions of the Adapter's License You apply.
307 c. No downstream restrictions. You may not offer or impose
308 any additional or different terms or conditions on, or
309 apply any Effective Technological Measures to, the
310 Licensed Material if doing so restricts exercise of the
311 Licensed Rights by any recipient of the Licensed
314 6. No endorsement. Nothing in this Public License constitutes or
315 may be construed as permission to assert or imply that You
316 are, or that Your use of the Licensed Material is, connected
317 with, or sponsored, endorsed, or granted official status by,
318 the Licensor or others designated to receive attribution as
319 provided in Section 3(a)(1)(A)(i).
323 1. Moral rights, such as the right of integrity, are not
324 licensed under this Public License, nor are publicity,
325 privacy, and/or other similar personality rights; however, to
326 the extent possible, the Licensor waives and/or agrees not to
327 assert any such rights held by the Licensor to the limited
328 extent necessary to allow You to exercise the Licensed
329 Rights, but not otherwise.
331 2. Patent and trademark rights are not licensed under this
334 3. To the extent possible, the Licensor waives any right to
335 collect royalties from You for the exercise of the Licensed
336 Rights, whether directly or through a collecting society
337 under any voluntary or waivable statutory or compulsory
338 licensing scheme. In all other cases the Licensor expressly
339 reserves any right to collect such royalties.
342 Section 3 -- License Conditions.
344 Your exercise of the Licensed Rights is expressly made subject to the
345 following conditions.
349 1. If You Share the Licensed Material (including in modified
352 a. retain the following if it is supplied by the Licensor
353 with the Licensed Material:
355 i. identification of the creator(s) of the Licensed
356 Material and any others designated to receive
357 attribution, in any reasonable manner requested by
358 the Licensor (including by pseudonym if
361 ii. a copyright notice;
363 iii. a notice that refers to this Public License;
365 iv. a notice that refers to the disclaimer of
368 v. a URI or hyperlink to the Licensed Material to the
369 extent reasonably practicable;
371 b. indicate if You modified the Licensed Material and
372 retain an indication of any previous modifications; and
374 c. indicate the Licensed Material is licensed under this
375 Public License, and include the text of, or the URI or
376 hyperlink to, this Public License.
378 2. You may satisfy the conditions in Section 3(a)(1) in any
379 reasonable manner based on the medium, means, and context in
380 which You Share the Licensed Material. For example, it may be
381 reasonable to satisfy the conditions by providing a URI or
382 hyperlink to a resource that includes the required
385 3. If requested by the Licensor, You must remove any of the
386 information required by Section 3(a)(1)(A) to the extent
387 reasonably practicable.
391 In addition to the conditions in Section 3(a), if You Share
392 Adapted Material You produce, the following conditions also apply.
394 1. The Adapter's License You apply must be a Creative Commons
395 license with the same License Elements, this version or
396 later, or a BY-SA Compatible License.
398 2. You must include the text of, or the URI or hyperlink to, the
399 Adapter's License You apply. You may satisfy this condition
400 in any reasonable manner based on the medium, means, and
401 context in which You Share Adapted Material.
403 3. You may not offer or impose any additional or different terms
404 or conditions on, or apply any Effective Technological
405 Measures to, Adapted Material that restrict exercise of the
406 rights granted under the Adapter's License You apply.
409 Section 4 -- Sui Generis Database Rights.
411 Where the Licensed Rights include Sui Generis Database Rights that
412 apply to Your use of the Licensed Material:
414 a. for the avoidance of doubt, Section 2(a)(1) grants You the right
415 to extract, reuse, reproduce, and Share all or a substantial
416 portion of the contents of the database;
418 b. if You include all or a substantial portion of the database
419 contents in a database in which You have Sui Generis Database
420 Rights, then the database in which You have Sui Generis Database
421 Rights (but not its individual contents) is Adapted Material,
422 including for purposes of Section 3(b); and
424 c. You must comply with the conditions in Section 3(a) if You Share
425 all or a substantial portion of the contents of the database.
427 For the avoidance of doubt, this Section 4 supplements and does not
428 replace Your obligations under this Public License where the Licensed
429 Rights include other Copyright and Similar Rights.
432 Section 5 -- Disclaimer of Warranties and Limitation of Liability.
434 a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
435 EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
436 AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
437 ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
438 IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
439 WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
440 PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
441 ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
442 KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
443 ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
445 b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
446 TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
447 NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
448 INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
449 COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
450 USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
451 ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
452 DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
453 IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
455 c. The disclaimer of warranties and limitation of liability provided
456 above shall be interpreted in a manner that, to the extent
457 possible, most closely approximates an absolute disclaimer and
458 waiver of all liability.
461 Section 6 -- Term and Termination.
463 a. This Public License applies for the term of the Copyright and
464 Similar Rights licensed here. However, if You fail to comply with
465 this Public License, then Your rights under this Public License
466 terminate automatically.
468 b. Where Your right to use the Licensed Material has terminated under
469 Section 6(a), it reinstates:
471 1. automatically as of the date the violation is cured, provided
472 it is cured within 30 days of Your discovery of the
475 2. upon express reinstatement by the Licensor.
477 For the avoidance of doubt, this Section 6(b) does not affect any
478 right the Licensor may have to seek remedies for Your violations
479 of this Public License.
481 c. For the avoidance of doubt, the Licensor may also offer the
482 Licensed Material under separate terms or conditions or stop
483 distributing the Licensed Material at any time; however, doing so
484 will not terminate this Public License.
486 d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
490 Section 7 -- Other Terms and Conditions.
492 a. The Licensor shall not be bound by any additional or different
493 terms or conditions communicated by You unless expressly agreed.
495 b. Any arrangements, understandings, or agreements regarding the
496 Licensed Material not stated herein are separate from and
497 independent of the terms and conditions of this Public License.
500 Section 8 -- Interpretation.
502 a. For the avoidance of doubt, this Public License does not, and
503 shall not be interpreted to, reduce, limit, restrict, or impose
504 conditions on any use of the Licensed Material that could lawfully
505 be made without permission under this Public License.
507 b. To the extent possible, if any provision of this Public License is
508 deemed unenforceable, it shall be automatically reformed to the
509 minimum extent necessary to make it enforceable. If the provision
510 cannot be reformed, it shall be severed from this Public License
511 without affecting the enforceability of the remaining terms and
514 c. No term or condition of this Public License will be waived and no
515 failure to comply consented to unless expressly agreed to by the
518 d. Nothing in this Public License constitutes or may be interpreted
519 as a limitation upon, or waiver of, any privileges and immunities
520 that apply to the Licensor or You, including from the legal
521 processes of any jurisdiction or authority.
524 =======================================================================
526 Creative Commons is not a party to its public
527 licenses. Notwithstanding, Creative Commons may elect to apply one of
528 its public licenses to material it publishes and in those instances
529 will be considered the “Licensor.” The text of the Creative Commons
530 public licenses is dedicated to the public domain under the CC0 Public
531 Domain Dedication. Except for the limited purpose of indicating that
532 material is shared under a Creative Commons public license or as
533 otherwise permitted by the Creative Commons policies published at
534 creativecommons.org/policies, Creative Commons does not authorize the
535 use of the trademark "Creative Commons" or any other trademark or logo
536 of Creative Commons without its prior written consent including,
537 without limitation, in connection with any unauthorized modifications
538 to any of its public licenses or any other arrangements,
539 understandings, or agreements concerning use of licensed material. For
540 the avoidance of doubt, this paragraph does not form part of the
543 Creative Commons may be contacted at creativecommons.org.
545 ===============================================================================
547 GNU GENERAL PUBLIC LICENSE
550 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
551 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
552 Everyone is permitted to copy and distribute verbatim copies
553 of this license document, but changing it is not allowed.
557 The licenses for most software are designed to take away your
558 freedom to share and change it. By contrast, the GNU General Public
559 License is intended to guarantee your freedom to share and change free
560 software--to make sure the software is free for all its users. This
561 General Public License applies to most of the Free Software
562 Foundation's software and to any other program whose authors commit to
563 using it. (Some other Free Software Foundation software is covered by
564 the GNU Lesser General Public License instead.) You can apply it to
567 When we speak of free software, we are referring to freedom, not
568 price. Our General Public Licenses are designed to make sure that you
569 have the freedom to distribute copies of free software (and charge for
570 this service if you wish), that you receive source code or can get it
571 if you want it, that you can change the software or use pieces of it
572 in new free programs; and that you know you can do these things.
574 To protect your rights, we need to make restrictions that forbid
575 anyone to deny you these rights or to ask you to surrender the rights.
576 These restrictions translate to certain responsibilities for you if you
577 distribute copies of the software, or if you modify it.
579 For example, if you distribute copies of such a program, whether
580 gratis or for a fee, you must give the recipients all the rights that
581 you have. You must make sure that they, too, receive or can get the
582 source code. And you must show them these terms so they know their
585 We protect your rights with two steps: (1) copyright the software, and
586 (2) offer you this license which gives you legal permission to copy,
587 distribute and/or modify the software.
589 Also, for each author's protection and ours, we want to make certain
590 that everyone understands that there is no warranty for this free
591 software. If the software is modified by someone else and passed on, we
592 want its recipients to know that what they have is not the original, so
593 that any problems introduced by others will not reflect on the original
594 authors' reputations.
596 Finally, any free program is threatened constantly by software
597 patents. We wish to avoid the danger that redistributors of a free
598 program will individually obtain patent licenses, in effect making the
599 program proprietary. To prevent this, we have made it clear that any
600 patent must be licensed for everyone's free use or not licensed at all.
602 The precise terms and conditions for copying, distribution and
605 GNU GENERAL PUBLIC LICENSE
606 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
608 0. This License applies to any program or other work which contains
609 a notice placed by the copyright holder saying it may be distributed
610 under the terms of this General Public License. The "Program", below,
611 refers to any such program or work, and a "work based on the Program"
612 means either the Program or any derivative work under copyright law:
613 that is to say, a work containing the Program or a portion of it,
614 either verbatim or with modifications and/or translated into another
615 language. (Hereinafter, translation is included without limitation in
616 the term "modification".) Each licensee is addressed as "you".
618 Activities other than copying, distribution and modification are not
619 covered by this License; they are outside its scope. The act of
620 running the Program is not restricted, and the output from the Program
621 is covered only if its contents constitute a work based on the
622 Program (independent of having been made by running the Program).
623 Whether that is true depends on what the Program does.
625 1. You may copy and distribute verbatim copies of the Program's
626 source code as you receive it, in any medium, provided that you
627 conspicuously and appropriately publish on each copy an appropriate
628 copyright notice and disclaimer of warranty; keep intact all the
629 notices that refer to this License and to the absence of any warranty;
630 and give any other recipients of the Program a copy of this License
631 along with the Program.
633 You may charge a fee for the physical act of transferring a copy, and
634 you may at your option offer warranty protection in exchange for a fee.
636 2. You may modify your copy or copies of the Program or any portion
637 of it, thus forming a work based on the Program, and copy and
638 distribute such modifications or work under the terms of Section 1
639 above, provided that you also meet all of these conditions:
641 a) You must cause the modified files to carry prominent notices
642 stating that you changed the files and the date of any change.
644 b) You must cause any work that you distribute or publish, that in
645 whole or in part contains or is derived from the Program or any
646 part thereof, to be licensed as a whole at no charge to all third
647 parties under the terms of this License.
649 c) If the modified program normally reads commands interactively
650 when run, you must cause it, when started running for such
651 interactive use in the most ordinary way, to print or display an
652 announcement including an appropriate copyright notice and a
653 notice that there is no warranty (or else, saying that you provide
654 a warranty) and that users may redistribute the program under
655 these conditions, and telling the user how to view a copy of this
656 License. (Exception: if the Program itself is interactive but
657 does not normally print such an announcement, your work based on
658 the Program is not required to print an announcement.)
660 These requirements apply to the modified work as a whole. If
661 identifiable sections of that work are not derived from the Program,
662 and can be reasonably considered independent and separate works in
663 themselves, then this License, and its terms, do not apply to those
664 sections when you distribute them as separate works. But when you
665 distribute the same sections as part of a whole which is a work based
666 on the Program, the distribution of the whole must be on the terms of
667 this License, whose permissions for other licensees extend to the
668 entire whole, and thus to each and every part regardless of who wrote it.
670 Thus, it is not the intent of this section to claim rights or contest
671 your rights to work written entirely by you; rather, the intent is to
672 exercise the right to control the distribution of derivative or
673 collective works based on the Program.
675 In addition, mere aggregation of another work not based on the Program
676 with the Program (or with a work based on the Program) on a volume of
677 a storage or distribution medium does not bring the other work under
678 the scope of this License.
680 3. You may copy and distribute the Program (or a work based on it,
681 under Section 2) in object code or executable form under the terms of
682 Sections 1 and 2 above provided that you also do one of the following:
684 a) Accompany it with the complete corresponding machine-readable
685 source code, which must be distributed under the terms of Sections
686 1 and 2 above on a medium customarily used for software interchange; or,
688 b) Accompany it with a written offer, valid for at least three
689 years, to give any third party, for a charge no more than your
690 cost of physically performing source distribution, a complete
691 machine-readable copy of the corresponding source code, to be
692 distributed under the terms of Sections 1 and 2 above on a medium
693 customarily used for software interchange; or,
695 c) Accompany it with the information you received as to the offer
696 to distribute corresponding source code. (This alternative is
697 allowed only for noncommercial distribution and only if you
698 received the program in object code or executable form with such
699 an offer, in accord with Subsection b above.)
701 The source code for a work means the preferred form of the work for
702 making modifications to it. For an executable work, complete source
703 code means all the source code for all modules it contains, plus any
704 associated interface definition files, plus the scripts used to
705 control compilation and installation of the executable. However, as a
706 special exception, the source code distributed need not include
707 anything that is normally distributed (in either source or binary
708 form) with the major components (compiler, kernel, and so on) of the
709 operating system on which the executable runs, unless that component
710 itself accompanies the executable.
712 If distribution of executable or object code is made by offering
713 access to copy from a designated place, then offering equivalent
714 access to copy the source code from the same place counts as
715 distribution of the source code, even though third parties are not
716 compelled to copy the source along with the object code.
718 4. You may not copy, modify, sublicense, or distribute the Program
719 except as expressly provided under this License. Any attempt
720 otherwise to copy, modify, sublicense or distribute the Program is
721 void, and will automatically terminate your rights under this License.
722 However, parties who have received copies, or rights, from you under
723 this License will not have their licenses terminated so long as such
724 parties remain in full compliance.
726 5. You are not required to accept this License, since you have not
727 signed it. However, nothing else grants you permission to modify or
728 distribute the Program or its derivative works. These actions are
729 prohibited by law if you do not accept this License. Therefore, by
730 modifying or distributing the Program (or any work based on the
731 Program), you indicate your acceptance of this License to do so, and
732 all its terms and conditions for copying, distributing or modifying
733 the Program or works based on it.
735 6. Each time you redistribute the Program (or any work based on the
736 Program), the recipient automatically receives a license from the
737 original licensor to copy, distribute or modify the Program subject to
738 these terms and conditions. You may not impose any further
739 restrictions on the recipients' exercise of the rights granted herein.
740 You are not responsible for enforcing compliance by third parties to
743 7. If, as a consequence of a court judgment or allegation of patent
744 infringement or for any other reason (not limited to patent issues),
745 conditions are imposed on you (whether by court order, agreement or
746 otherwise) that contradict the conditions of this License, they do not
747 excuse you from the conditions of this License. If you cannot
748 distribute so as to satisfy simultaneously your obligations under this
749 License and any other pertinent obligations, then as a consequence you
750 may not distribute the Program at all. For example, if a patent
751 license would not permit royalty-free redistribution of the Program by
752 all those who receive copies directly or indirectly through you, then
753 the only way you could satisfy both it and this License would be to
754 refrain entirely from distribution of the Program.
756 If any portion of this section is held invalid or unenforceable under
757 any particular circumstance, the balance of the section is intended to
758 apply and the section as a whole is intended to apply in other
761 It is not the purpose of this section to induce you to infringe any
762 patents or other property right claims or to contest validity of any
763 such claims; this section has the sole purpose of protecting the
764 integrity of the free software distribution system, which is
765 implemented by public license practices. Many people have made
766 generous contributions to the wide range of software distributed
767 through that system in reliance on consistent application of that
768 system; it is up to the author/donor to decide if he or she is willing
769 to distribute software through any other system and a licensee cannot
772 This section is intended to make thoroughly clear what is believed to
773 be a consequence of the rest of this License.
775 8. If the distribution and/or use of the Program is restricted in
776 certain countries either by patents or by copyrighted interfaces, the
777 original copyright holder who places the Program under this License
778 may add an explicit geographical distribution limitation excluding
779 those countries, so that distribution is permitted only in or among
780 countries not thus excluded. In such case, this License incorporates
781 the limitation as if written in the body of this License.
783 9. The Free Software Foundation may publish revised and/or new versions
784 of the General Public License from time to time. Such new versions will
785 be similar in spirit to the present version, but may differ in detail to
786 address new problems or concerns.
788 Each version is given a distinguishing version number. If the Program
789 specifies a version number of this License which applies to it and "any
790 later version", you have the option of following the terms and conditions
791 either of that version or of any later version published by the Free
792 Software Foundation. If the Program does not specify a version number of
793 this License, you may choose any version ever published by the Free Software
796 10. If you wish to incorporate parts of the Program into other free
797 programs whose distribution conditions are different, write to the author
798 to ask for permission. For software which is copyrighted by the Free
799 Software Foundation, write to the Free Software Foundation; we sometimes
800 make exceptions for this. Our decision will be guided by the two goals
801 of preserving the free status of all derivatives of our free software and
802 of promoting the sharing and reuse of software generally.
806 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
807 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
808 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
809 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
810 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
811 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
812 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
813 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
814 REPAIR OR CORRECTION.
816 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
817 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
818 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
819 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
820 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
821 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
822 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
823 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
824 POSSIBILITY OF SUCH DAMAGES.
826 END OF TERMS AND CONDITIONS
828 How to Apply These Terms to Your New Programs
830 If you develop a new program, and you want it to be of the greatest
831 possible use to the public, the best way to achieve this is to make it
832 free software which everyone can redistribute and change under these terms.
834 To do so, attach the following notices to the program. It is safest
835 to attach them to the start of each source file to most effectively
836 convey the exclusion of warranty; and each file should have at least
837 the "copyright" line and a pointer to where the full notice is found.
839 <one line to give the program's name and a brief idea of what it does.>
840 Copyright (C) <year> <name of author>
842 This program is free software; you can redistribute it and/or modify
843 it under the terms of the GNU General Public License as published by
844 the Free Software Foundation; either version 2 of the License, or
845 (at your option) any later version.
847 This program is distributed in the hope that it will be useful,
848 but WITHOUT ANY WARRANTY; without even the implied warranty of
849 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
850 GNU General Public License for more details.
852 You should have received a copy of the GNU General Public License along
853 with this program; if not, write to the Free Software Foundation, Inc.,
854 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
856 Also add information on how to contact you by electronic and paper mail.
858 If the program is interactive, make it output a short notice like this
859 when it starts in an interactive mode:
861 Gnomovision version 69, Copyright (C) year name of author
862 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
863 This is free software, and you are welcome to redistribute it
864 under certain conditions; type `show c' for details.
866 The hypothetical commands `show w' and `show c' should show the appropriate
867 parts of the General Public License. Of course, the commands you use may
868 be called something other than `show w' and `show c'; they could even be
869 mouse-clicks or menu items--whatever suits your program.
871 You should also get your employer (if you work as a programmer) or your
872 school, if any, to sign a "copyright disclaimer" for the program, if
873 necessary. Here is a sample; alter the names:
875 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
876 `Gnomovision' (which makes passes at compilers) written by James Hacker.
878 <signature of Ty Coon>, 1 April 1989
879 Ty Coon, President of Vice
881 This General Public License does not permit incorporating your program into
882 proprietary programs. If your program is a subroutine library, you may
883 consider it more useful to permit linking proprietary applications with the
884 library. If this is what you want to do, use the GNU Lesser General
885 Public License instead of this License.
887 ===============================================================================
889 GNU GENERAL PUBLIC LICENSE
890 Version 3, 29 June 2007
892 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
893 Everyone is permitted to copy and distribute verbatim copies
894 of this license document, but changing it is not allowed.
898 The GNU General Public License is a free, copyleft license for
899 software and other kinds of works.
901 The licenses for most software and other practical works are designed
902 to take away your freedom to share and change the works. By contrast,
903 the GNU General Public License is intended to guarantee your freedom to
904 share and change all versions of a program--to make sure it remains free
905 software for all its users. We, the Free Software Foundation, use the
906 GNU General Public License for most of our software; it applies also to
907 any other work released this way by its authors. You can apply it to
910 When we speak of free software, we are referring to freedom, not
911 price. Our General Public Licenses are designed to make sure that you
912 have the freedom to distribute copies of free software (and charge for
913 them if you wish), that you receive source code or can get it if you
914 want it, that you can change the software or use pieces of it in new
915 free programs, and that you know you can do these things.
917 To protect your rights, we need to prevent others from denying you
918 these rights or asking you to surrender the rights. Therefore, you have
919 certain responsibilities if you distribute copies of the software, or if
920 you modify it: responsibilities to respect the freedom of others.
922 For example, if you distribute copies of such a program, whether
923 gratis or for a fee, you must pass on to the recipients the same
924 freedoms that you received. You must make sure that they, too, receive
925 or can get the source code. And you must show them these terms so they
928 Developers that use the GNU GPL protect your rights with two steps:
929 (1) assert copyright on the software, and (2) offer you this License
930 giving you legal permission to copy, distribute and/or modify it.
932 For the developers' and authors' protection, the GPL clearly explains
933 that there is no warranty for this free software. For both users' and
934 authors' sake, the GPL requires that modified versions be marked as
935 changed, so that their problems will not be attributed erroneously to
936 authors of previous versions.
938 Some devices are designed to deny users access to install or run
939 modified versions of the software inside them, although the manufacturer
940 can do so. This is fundamentally incompatible with the aim of
941 protecting users' freedom to change the software. The systematic
942 pattern of such abuse occurs in the area of products for individuals to
943 use, which is precisely where it is most unacceptable. Therefore, we
944 have designed this version of the GPL to prohibit the practice for those
945 products. If such problems arise substantially in other domains, we
946 stand ready to extend this provision to those domains in future versions
947 of the GPL, as needed to protect the freedom of users.
949 Finally, every program is threatened constantly by software patents.
950 States should not allow patents to restrict development and use of
951 software on general-purpose computers, but in those that do, we wish to
952 avoid the special danger that patents applied to a free program could
953 make it effectively proprietary. To prevent this, the GPL assures that
954 patents cannot be used to render the program non-free.
956 The precise terms and conditions for copying, distribution and
963 "This License" refers to version 3 of the GNU General Public License.
965 "Copyright" also means copyright-like laws that apply to other kinds of
966 works, such as semiconductor masks.
968 "The Program" refers to any copyrightable work licensed under this
969 License. Each licensee is addressed as "you". "Licensees" and
970 "recipients" may be individuals or organizations.
972 To "modify" a work means to copy from or adapt all or part of the work
973 in a fashion requiring copyright permission, other than the making of an
974 exact copy. The resulting work is called a "modified version" of the
975 earlier work or a work "based on" the earlier work.
977 A "covered work" means either the unmodified Program or a work based
980 To "propagate" a work means to do anything with it that, without
981 permission, would make you directly or secondarily liable for
982 infringement under applicable copyright law, except executing it on a
983 computer or modifying a private copy. Propagation includes copying,
984 distribution (with or without modification), making available to the
985 public, and in some countries other activities as well.
987 To "convey" a work means any kind of propagation that enables other
988 parties to make or receive copies. Mere interaction with a user through
989 a computer network, with no transfer of a copy, is not conveying.
991 An interactive user interface displays "Appropriate Legal Notices"
992 to the extent that it includes a convenient and prominently visible
993 feature that (1) displays an appropriate copyright notice, and (2)
994 tells the user that there is no warranty for the work (except to the
995 extent that warranties are provided), that licensees may convey the
996 work under this License, and how to view a copy of this License. If
997 the interface presents a list of user commands or options, such as a
998 menu, a prominent item in the list meets this criterion.
1002 The "source code" for a work means the preferred form of the work
1003 for making modifications to it. "Object code" means any non-source
1006 A "Standard Interface" means an interface that either is an official
1007 standard defined by a recognized standards body, or, in the case of
1008 interfaces specified for a particular programming language, one that
1009 is widely used among developers working in that language.
1011 The "System Libraries" of an executable work include anything, other
1012 than the work as a whole, that (a) is included in the normal form of
1013 packaging a Major Component, but which is not part of that Major
1014 Component, and (b) serves only to enable use of the work with that
1015 Major Component, or to implement a Standard Interface for which an
1016 implementation is available to the public in source code form. A
1017 "Major Component", in this context, means a major essential component
1018 (kernel, window system, and so on) of the specific operating system
1019 (if any) on which the executable work runs, or a compiler used to
1020 produce the work, or an object code interpreter used to run it.
1022 The "Corresponding Source" for a work in object code form means all
1023 the source code needed to generate, install, and (for an executable
1024 work) run the object code and to modify the work, including scripts to
1025 control those activities. However, it does not include the work's
1026 System Libraries, or general-purpose tools or generally available free
1027 programs which are used unmodified in performing those activities but
1028 which are not part of the work. For example, Corresponding Source
1029 includes interface definition files associated with source files for
1030 the work, and the source code for shared libraries and dynamically
1031 linked subprograms that the work is specifically designed to require,
1032 such as by intimate data communication or control flow between those
1033 subprograms and other parts of the work.
1035 The Corresponding Source need not include anything that users
1036 can regenerate automatically from other parts of the Corresponding
1039 The Corresponding Source for a work in source code form is that
1042 2. Basic Permissions.
1044 All rights granted under this License are granted for the term of
1045 copyright on the Program, and are irrevocable provided the stated
1046 conditions are met. This License explicitly affirms your unlimited
1047 permission to run the unmodified Program. The output from running a
1048 covered work is covered by this License only if the output, given its
1049 content, constitutes a covered work. This License acknowledges your
1050 rights of fair use or other equivalent, as provided by copyright law.
1052 You may make, run and propagate covered works that you do not
1053 convey, without conditions so long as your license otherwise remains
1054 in force. You may convey covered works to others for the sole purpose
1055 of having them make modifications exclusively for you, or provide you
1056 with facilities for running those works, provided that you comply with
1057 the terms of this License in conveying all material for which you do
1058 not control copyright. Those thus making or running the covered works
1059 for you must do so exclusively on your behalf, under your direction
1060 and control, on terms that prohibit them from making any copies of
1061 your copyrighted material outside their relationship with you.
1063 Conveying under any other circumstances is permitted solely under
1064 the conditions stated below. Sublicensing is not allowed; section 10
1065 makes it unnecessary.
1067 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
1069 No covered work shall be deemed part of an effective technological
1070 measure under any applicable law fulfilling obligations under article
1071 11 of the WIPO copyright treaty adopted on 20 December 1996, or
1072 similar laws prohibiting or restricting circumvention of such
1075 When you convey a covered work, you waive any legal power to forbid
1076 circumvention of technological measures to the extent such circumvention
1077 is effected by exercising rights under this License with respect to
1078 the covered work, and you disclaim any intention to limit operation or
1079 modification of the work as a means of enforcing, against the work's
1080 users, your or third parties' legal rights to forbid circumvention of
1081 technological measures.
1083 4. Conveying Verbatim Copies.
1085 You may convey verbatim copies of the Program's source code as you
1086 receive it, in any medium, provided that you conspicuously and
1087 appropriately publish on each copy an appropriate copyright notice;
1088 keep intact all notices stating that this License and any
1089 non-permissive terms added in accord with section 7 apply to the code;
1090 keep intact all notices of the absence of any warranty; and give all
1091 recipients a copy of this License along with the Program.
1093 You may charge any price or no price for each copy that you convey,
1094 and you may offer support or warranty protection for a fee.
1096 5. Conveying Modified Source Versions.
1098 You may convey a work based on the Program, or the modifications to
1099 produce it from the Program, in the form of source code under the
1100 terms of section 4, provided that you also meet all of these conditions:
1102 a) The work must carry prominent notices stating that you modified
1103 it, and giving a relevant date.
1105 b) The work must carry prominent notices stating that it is
1106 released under this License and any conditions added under section
1107 7. This requirement modifies the requirement in section 4 to
1108 "keep intact all notices".
1110 c) You must license the entire work, as a whole, under this
1111 License to anyone who comes into possession of a copy. This
1112 License will therefore apply, along with any applicable section 7
1113 additional terms, to the whole of the work, and all its parts,
1114 regardless of how they are packaged. This License gives no
1115 permission to license the work in any other way, but it does not
1116 invalidate such permission if you have separately received it.
1118 d) If the work has interactive user interfaces, each must display
1119 Appropriate Legal Notices; however, if the Program has interactive
1120 interfaces that do not display Appropriate Legal Notices, your
1121 work need not make them do so.
1123 A compilation of a covered work with other separate and independent
1124 works, which are not by their nature extensions of the covered work,
1125 and which are not combined with it such as to form a larger program,
1126 in or on a volume of a storage or distribution medium, is called an
1127 "aggregate" if the compilation and its resulting copyright are not
1128 used to limit the access or legal rights of the compilation's users
1129 beyond what the individual works permit. Inclusion of a covered work
1130 in an aggregate does not cause this License to apply to the other
1131 parts of the aggregate.
1133 6. Conveying Non-Source Forms.
1135 You may convey a covered work in object code form under the terms
1136 of sections 4 and 5, provided that you also convey the
1137 machine-readable Corresponding Source under the terms of this License,
1138 in one of these ways:
1140 a) Convey the object code in, or embodied in, a physical product
1141 (including a physical distribution medium), accompanied by the
1142 Corresponding Source fixed on a durable physical medium
1143 customarily used for software interchange.
1145 b) Convey the object code in, or embodied in, a physical product
1146 (including a physical distribution medium), accompanied by a
1147 written offer, valid for at least three years and valid for as
1148 long as you offer spare parts or customer support for that product
1149 model, to give anyone who possesses the object code either (1) a
1150 copy of the Corresponding Source for all the software in the
1151 product that is covered by this License, on a durable physical
1152 medium customarily used for software interchange, for a price no
1153 more than your reasonable cost of physically performing this
1154 conveying of source, or (2) access to copy the
1155 Corresponding Source from a network server at no charge.
1157 c) Convey individual copies of the object code with a copy of the
1158 written offer to provide the Corresponding Source. This
1159 alternative is allowed only occasionally and noncommercially, and
1160 only if you received the object code with such an offer, in accord
1163 d) Convey the object code by offering access from a designated
1164 place (gratis or for a charge), and offer equivalent access to the
1165 Corresponding Source in the same way through the same place at no
1166 further charge. You need not require recipients to copy the
1167 Corresponding Source along with the object code. If the place to
1168 copy the object code is a network server, the Corresponding Source
1169 may be on a different server (operated by you or a third party)
1170 that supports equivalent copying facilities, provided you maintain
1171 clear directions next to the object code saying where to find the
1172 Corresponding Source. Regardless of what server hosts the
1173 Corresponding Source, you remain obligated to ensure that it is
1174 available for as long as needed to satisfy these requirements.
1176 e) Convey the object code using peer-to-peer transmission, provided
1177 you inform other peers where the object code and Corresponding
1178 Source of the work are being offered to the general public at no
1179 charge under subsection 6d.
1181 A separable portion of the object code, whose source code is excluded
1182 from the Corresponding Source as a System Library, need not be
1183 included in conveying the object code work.
1185 A "User Product" is either (1) a "consumer product", which means any
1186 tangible personal property which is normally used for personal, family,
1187 or household purposes, or (2) anything designed or sold for incorporation
1188 into a dwelling. In determining whether a product is a consumer product,
1189 doubtful cases shall be resolved in favor of coverage. For a particular
1190 product received by a particular user, "normally used" refers to a
1191 typical or common use of that class of product, regardless of the status
1192 of the particular user or of the way in which the particular user
1193 actually uses, or expects or is expected to use, the product. A product
1194 is a consumer product regardless of whether the product has substantial
1195 commercial, industrial or non-consumer uses, unless such uses represent
1196 the only significant mode of use of the product.
1198 "Installation Information" for a User Product means any methods,
1199 procedures, authorization keys, or other information required to install
1200 and execute modified versions of a covered work in that User Product from
1201 a modified version of its Corresponding Source. The information must
1202 suffice to ensure that the continued functioning of the modified object
1203 code is in no case prevented or interfered with solely because
1204 modification has been made.
1206 If you convey an object code work under this section in, or with, or
1207 specifically for use in, a User Product, and the conveying occurs as
1208 part of a transaction in which the right of possession and use of the
1209 User Product is transferred to the recipient in perpetuity or for a
1210 fixed term (regardless of how the transaction is characterized), the
1211 Corresponding Source conveyed under this section must be accompanied
1212 by the Installation Information. But this requirement does not apply
1213 if neither you nor any third party retains the ability to install
1214 modified object code on the User Product (for example, the work has
1215 been installed in ROM).
1217 The requirement to provide Installation Information does not include a
1218 requirement to continue to provide support service, warranty, or updates
1219 for a work that has been modified or installed by the recipient, or for
1220 the User Product in which it has been modified or installed. Access to a
1221 network may be denied when the modification itself materially and
1222 adversely affects the operation of the network or violates the rules and
1223 protocols for communication across the network.
1225 Corresponding Source conveyed, and Installation Information provided,
1226 in accord with this section must be in a format that is publicly
1227 documented (and with an implementation available to the public in
1228 source code form), and must require no special password or key for
1229 unpacking, reading or copying.
1231 7. Additional Terms.
1233 "Additional permissions" are terms that supplement the terms of this
1234 License by making exceptions from one or more of its conditions.
1235 Additional permissions that are applicable to the entire Program shall
1236 be treated as though they were included in this License, to the extent
1237 that they are valid under applicable law. If additional permissions
1238 apply only to part of the Program, that part may be used separately
1239 under those permissions, but the entire Program remains governed by
1240 this License without regard to the additional permissions.
1242 When you convey a copy of a covered work, you may at your option
1243 remove any additional permissions from that copy, or from any part of
1244 it. (Additional permissions may be written to require their own
1245 removal in certain cases when you modify the work.) You may place
1246 additional permissions on material, added by you to a covered work,
1247 for which you have or can give appropriate copyright permission.
1249 Notwithstanding any other provision of this License, for material you
1250 add to a covered work, you may (if authorized by the copyright holders of
1251 that material) supplement the terms of this License with terms:
1253 a) Disclaiming warranty or limiting liability differently from the
1254 terms of sections 15 and 16 of this License; or
1256 b) Requiring preservation of specified reasonable legal notices or
1257 author attributions in that material or in the Appropriate Legal
1258 Notices displayed by works containing it; or
1260 c) Prohibiting misrepresentation of the origin of that material, or
1261 requiring that modified versions of such material be marked in
1262 reasonable ways as different from the original version; or
1264 d) Limiting the use for publicity purposes of names of licensors or
1265 authors of the material; or
1267 e) Declining to grant rights under trademark law for use of some
1268 trade names, trademarks, or service marks; or
1270 f) Requiring indemnification of licensors and authors of that
1271 material by anyone who conveys the material (or modified versions of
1272 it) with contractual assumptions of liability to the recipient, for
1273 any liability that these contractual assumptions directly impose on
1274 those licensors and authors.
1276 All other non-permissive additional terms are considered "further
1277 restrictions" within the meaning of section 10. If the Program as you
1278 received it, or any part of it, contains a notice stating that it is
1279 governed by this License along with a term that is a further
1280 restriction, you may remove that term. If a license document contains
1281 a further restriction but permits relicensing or conveying under this
1282 License, you may add to a covered work material governed by the terms
1283 of that license document, provided that the further restriction does
1284 not survive such relicensing or conveying.
1286 If you add terms to a covered work in accord with this section, you
1287 must place, in the relevant source files, a statement of the
1288 additional terms that apply to those files, or a notice indicating
1289 where to find the applicable terms.
1291 Additional terms, permissive or non-permissive, may be stated in the
1292 form of a separately written license, or stated as exceptions;
1293 the above requirements apply either way.
1297 You may not propagate or modify a covered work except as expressly
1298 provided under this License. Any attempt otherwise to propagate or
1299 modify it is void, and will automatically terminate your rights under
1300 this License (including any patent licenses granted under the third
1301 paragraph of section 11).
1303 However, if you cease all violation of this License, then your
1304 license from a particular copyright holder is reinstated (a)
1305 provisionally, unless and until the copyright holder explicitly and
1306 finally terminates your license, and (b) permanently, if the copyright
1307 holder fails to notify you of the violation by some reasonable means
1308 prior to 60 days after the cessation.
1310 Moreover, your license from a particular copyright holder is
1311 reinstated permanently if the copyright holder notifies you of the
1312 violation by some reasonable means, this is the first time you have
1313 received notice of violation of this License (for any work) from that
1314 copyright holder, and you cure the violation prior to 30 days after
1315 your receipt of the notice.
1317 Termination of your rights under this section does not terminate the
1318 licenses of parties who have received copies or rights from you under
1319 this License. If your rights have been terminated and not permanently
1320 reinstated, you do not qualify to receive new licenses for the same
1321 material under section 10.
1323 9. Acceptance Not Required for Having Copies.
1325 You are not required to accept this License in order to receive or
1326 run a copy of the Program. Ancillary propagation of a covered work
1327 occurring solely as a consequence of using peer-to-peer transmission
1328 to receive a copy likewise does not require acceptance. However,
1329 nothing other than this License grants you permission to propagate or
1330 modify any covered work. These actions infringe copyright if you do
1331 not accept this License. Therefore, by modifying or propagating a
1332 covered work, you indicate your acceptance of this License to do so.
1334 10. Automatic Licensing of Downstream Recipients.
1336 Each time you convey a covered work, the recipient automatically
1337 receives a license from the original licensors, to run, modify and
1338 propagate that work, subject to this License. You are not responsible
1339 for enforcing compliance by third parties with this License.
1341 An "entity transaction" is a transaction transferring control of an
1342 organization, or substantially all assets of one, or subdividing an
1343 organization, or merging organizations. If propagation of a covered
1344 work results from an entity transaction, each party to that
1345 transaction who receives a copy of the work also receives whatever
1346 licenses to the work the party's predecessor in interest had or could
1347 give under the previous paragraph, plus a right to possession of the
1348 Corresponding Source of the work from the predecessor in interest, if
1349 the predecessor has it or can get it with reasonable efforts.
1351 You may not impose any further restrictions on the exercise of the
1352 rights granted or affirmed under this License. For example, you may
1353 not impose a license fee, royalty, or other charge for exercise of
1354 rights granted under this License, and you may not initiate litigation
1355 (including a cross-claim or counterclaim in a lawsuit) alleging that
1356 any patent claim is infringed by making, using, selling, offering for
1357 sale, or importing the Program or any portion of it.
1361 A "contributor" is a copyright holder who authorizes use under this
1362 License of the Program or a work on which the Program is based. The
1363 work thus licensed is called the contributor's "contributor version".
1365 A contributor's "essential patent claims" are all patent claims
1366 owned or controlled by the contributor, whether already acquired or
1367 hereafter acquired, that would be infringed by some manner, permitted
1368 by this License, of making, using, or selling its contributor version,
1369 but do not include claims that would be infringed only as a
1370 consequence of further modification of the contributor version. For
1371 purposes of this definition, "control" includes the right to grant
1372 patent sublicenses in a manner consistent with the requirements of
1375 Each contributor grants you a non-exclusive, worldwide, royalty-free
1376 patent license under the contributor's essential patent claims, to
1377 make, use, sell, offer for sale, import and otherwise run, modify and
1378 propagate the contents of its contributor version.
1380 In the following three paragraphs, a "patent license" is any express
1381 agreement or commitment, however denominated, not to enforce a patent
1382 (such as an express permission to practice a patent or covenant not to
1383 sue for patent infringement). To "grant" such a patent license to a
1384 party means to make such an agreement or commitment not to enforce a
1385 patent against the party.
1387 If you convey a covered work, knowingly relying on a patent license,
1388 and the Corresponding Source of the work is not available for anyone
1389 to copy, free of charge and under the terms of this License, through a
1390 publicly available network server or other readily accessible means,
1391 then you must either (1) cause the Corresponding Source to be so
1392 available, or (2) arrange to deprive yourself of the benefit of the
1393 patent license for this particular work, or (3) arrange, in a manner
1394 consistent with the requirements of this License, to extend the patent
1395 license to downstream recipients. "Knowingly relying" means you have
1396 actual knowledge that, but for the patent license, your conveying the
1397 covered work in a country, or your recipient's use of the covered work
1398 in a country, would infringe one or more identifiable patents in that
1399 country that you have reason to believe are valid.
1401 If, pursuant to or in connection with a single transaction or
1402 arrangement, you convey, or propagate by procuring conveyance of, a
1403 covered work, and grant a patent license to some of the parties
1404 receiving the covered work authorizing them to use, propagate, modify
1405 or convey a specific copy of the covered work, then the patent license
1406 you grant is automatically extended to all recipients of the covered
1407 work and works based on it.
1409 A patent license is "discriminatory" if it does not include within
1410 the scope of its coverage, prohibits the exercise of, or is
1411 conditioned on the non-exercise of one or more of the rights that are
1412 specifically granted under this License. You may not convey a covered
1413 work if you are a party to an arrangement with a third party that is
1414 in the business of distributing software, under which you make payment
1415 to the third party based on the extent of your activity of conveying
1416 the work, and under which the third party grants, to any of the
1417 parties who would receive the covered work from you, a discriminatory
1418 patent license (a) in connection with copies of the covered work
1419 conveyed by you (or copies made from those copies), or (b) primarily
1420 for and in connection with specific products or compilations that
1421 contain the covered work, unless you entered into that arrangement,
1422 or that patent license was granted, prior to 28 March 2007.
1424 Nothing in this License shall be construed as excluding or limiting
1425 any implied license or other defenses to infringement that may
1426 otherwise be available to you under applicable patent law.
1428 12. No Surrender of Others' Freedom.
1430 If conditions are imposed on you (whether by court order, agreement or
1431 otherwise) that contradict the conditions of this License, they do not
1432 excuse you from the conditions of this License. If you cannot convey a
1433 covered work so as to satisfy simultaneously your obligations under this
1434 License and any other pertinent obligations, then as a consequence you may
1435 not convey it at all. For example, if you agree to terms that obligate you
1436 to collect a royalty for further conveying from those to whom you convey
1437 the Program, the only way you could satisfy both those terms and this
1438 License would be to refrain entirely from conveying the Program.
1440 13. Use with the GNU Affero General Public License.
1442 Notwithstanding any other provision of this License, you have
1443 permission to link or combine any covered work with a work licensed
1444 under version 3 of the GNU Affero General Public License into a single
1445 combined work, and to convey the resulting work. The terms of this
1446 License will continue to apply to the part which is the covered work,
1447 but the special requirements of the GNU Affero General Public License,
1448 section 13, concerning interaction through a network will apply to the
1449 combination as such.
1451 14. Revised Versions of this License.
1453 The Free Software Foundation may publish revised and/or new versions of
1454 the GNU General Public License from time to time. Such new versions will
1455 be similar in spirit to the present version, but may differ in detail to
1456 address new problems or concerns.
1458 Each version is given a distinguishing version number. If the
1459 Program specifies that a certain numbered version of the GNU General
1460 Public License "or any later version" applies to it, you have the
1461 option of following the terms and conditions either of that numbered
1462 version or of any later version published by the Free Software
1463 Foundation. If the Program does not specify a version number of the
1464 GNU General Public License, you may choose any version ever published
1465 by the Free Software Foundation.
1467 If the Program specifies that a proxy can decide which future
1468 versions of the GNU General Public License can be used, that proxy's
1469 public statement of acceptance of a version permanently authorizes you
1470 to choose that version for the Program.
1472 Later license versions may give you additional or different
1473 permissions. However, no additional obligations are imposed on any
1474 author or copyright holder as a result of your choosing to follow a
1477 15. Disclaimer of Warranty.
1479 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
1480 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
1481 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
1482 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
1483 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1484 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
1485 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
1486 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
1488 16. Limitation of Liability.
1490 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
1491 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
1492 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
1493 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
1494 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
1495 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
1496 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
1497 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
1500 17. Interpretation of Sections 15 and 16.
1502 If the disclaimer of warranty and limitation of liability provided
1503 above cannot be given local legal effect according to their terms,
1504 reviewing courts shall apply local law that most closely approximates
1505 an absolute waiver of all civil liability in connection with the
1506 Program, unless a warranty or assumption of liability accompanies a
1507 copy of the Program in return for a fee.
1509 END OF TERMS AND CONDITIONS
1511 How to Apply These Terms to Your New Programs
1513 If you develop a new program, and you want it to be of the greatest
1514 possible use to the public, the best way to achieve this is to make it
1515 free software which everyone can redistribute and change under these terms.
1517 To do so, attach the following notices to the program. It is safest
1518 to attach them to the start of each source file to most effectively
1519 state the exclusion of warranty; and each file should have at least
1520 the "copyright" line and a pointer to where the full notice is found.
1522 <one line to give the program's name and a brief idea of what it does.>
1523 Copyright (C) <year> <name of author>
1525 This program is free software: you can redistribute it and/or modify
1526 it under the terms of the GNU General Public License as published by
1527 the Free Software Foundation, either version 3 of the License, or
1528 (at your option) any later version.
1530 This program is distributed in the hope that it will be useful,
1531 but WITHOUT ANY WARRANTY; without even the implied warranty of
1532 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1533 GNU General Public License for more details.
1535 You should have received a copy of the GNU General Public License
1536 along with this program. If not, see <https://www.gnu.org/licenses/>.
1538 Also add information on how to contact you by electronic and paper mail.
1540 If the program does terminal interaction, make it output a short
1541 notice like this when it starts in an interactive mode:
1543 <program> Copyright (C) <year> <name of author>
1544 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
1545 This is free software, and you are welcome to redistribute it
1546 under certain conditions; type `show c' for details.
1548 The hypothetical commands `show w' and `show c' should show the appropriate
1549 parts of the General Public License. Of course, your program's commands
1550 might be different; for a GUI interface, you would use an "about box".
1552 You should also get your employer (if you work as a programmer) or school,
1553 if any, to sign a "copyright disclaimer" for the program, if necessary.
1554 For more information on this, and how to apply and follow the GNU GPL, see
1555 <https://www.gnu.org/licenses/>.
1557 The GNU General Public License does not permit incorporating your program
1558 into proprietary programs. If your program is a subroutine library, you
1559 may consider it more useful to permit linking proprietary applications with
1560 the library. If this is what you want to do, use the GNU Lesser General
1561 Public License instead of this License. But first, please read
1562 <https://www.gnu.org/licenses/why-not-lgpl.html>.
1564 ===============================================================================
1566 GNU LESSER GENERAL PUBLIC LICENSE
1567 Version 2.1, February 1999
1569 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
1570 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1571 Everyone is permitted to copy and distribute verbatim copies
1572 of this license document, but changing it is not allowed.
1574 [This is the first released version of the Lesser GPL. It also counts
1575 as the successor of the GNU Library Public License, version 2, hence
1576 the version number 2.1.]
1580 The licenses for most software are designed to take away your
1581 freedom to share and change it. By contrast, the GNU General Public
1582 Licenses are intended to guarantee your freedom to share and change
1583 free software--to make sure the software is free for all its users.
1585 This license, the Lesser General Public License, applies to some
1586 specially designated software packages--typically libraries--of the
1587 Free Software Foundation and other authors who decide to use it. You
1588 can use it too, but we suggest you first think carefully about whether
1589 this license or the ordinary General Public License is the better
1590 strategy to use in any particular case, based on the explanations below.
1592 When we speak of free software, we are referring to freedom of use,
1593 not price. Our General Public Licenses are designed to make sure that
1594 you have the freedom to distribute copies of free software (and charge
1595 for this service if you wish); that you receive source code or can get
1596 it if you want it; that you can change the software and use pieces of
1597 it in new free programs; and that you are informed that you can do
1600 To protect your rights, we need to make restrictions that forbid
1601 distributors to deny you these rights or to ask you to surrender these
1602 rights. These restrictions translate to certain responsibilities for
1603 you if you distribute copies of the library or if you modify it.
1605 For example, if you distribute copies of the library, whether gratis
1606 or for a fee, you must give the recipients all the rights that we gave
1607 you. You must make sure that they, too, receive or can get the source
1608 code. If you link other code with the library, you must provide
1609 complete object files to the recipients, so that they can relink them
1610 with the library after making changes to the library and recompiling
1611 it. And you must show them these terms so they know their rights.
1613 We protect your rights with a two-step method: (1) we copyright the
1614 library, and (2) we offer you this license, which gives you legal
1615 permission to copy, distribute and/or modify the library.
1617 To protect each distributor, we want to make it very clear that
1618 there is no warranty for the free library. Also, if the library is
1619 modified by someone else and passed on, the recipients should know
1620 that what they have is not the original version, so that the original
1621 author's reputation will not be affected by problems that might be
1622 introduced by others.
1624 Finally, software patents pose a constant threat to the existence of
1625 any free program. We wish to make sure that a company cannot
1626 effectively restrict the users of a free program by obtaining a
1627 restrictive license from a patent holder. Therefore, we insist that
1628 any patent license obtained for a version of the library must be
1629 consistent with the full freedom of use specified in this license.
1631 Most GNU software, including some libraries, is covered by the
1632 ordinary GNU General Public License. This license, the GNU Lesser
1633 General Public License, applies to certain designated libraries, and
1634 is quite different from the ordinary General Public License. We use
1635 this license for certain libraries in order to permit linking those
1636 libraries into non-free programs.
1638 When a program is linked with a library, whether statically or using
1639 a shared library, the combination of the two is legally speaking a
1640 combined work, a derivative of the original library. The ordinary
1641 General Public License therefore permits such linking only if the
1642 entire combination fits its criteria of freedom. The Lesser General
1643 Public License permits more lax criteria for linking other code with
1646 We call this license the "Lesser" General Public License because it
1647 does Less to protect the user's freedom than the ordinary General
1648 Public License. It also provides other free software developers Less
1649 of an advantage over competing non-free programs. These disadvantages
1650 are the reason we use the ordinary General Public License for many
1651 libraries. However, the Lesser license provides advantages in certain
1652 special circumstances.
1654 For example, on rare occasions, there may be a special need to
1655 encourage the widest possible use of a certain library, so that it becomes
1656 a de-facto standard. To achieve this, non-free programs must be
1657 allowed to use the library. A more frequent case is that a free
1658 library does the same job as widely used non-free libraries. In this
1659 case, there is little to gain by limiting the free library to free
1660 software only, so we use the Lesser General Public License.
1662 In other cases, permission to use a particular library in non-free
1663 programs enables a greater number of people to use a large body of
1664 free software. For example, permission to use the GNU C Library in
1665 non-free programs enables many more people to use the whole GNU
1666 operating system, as well as its variant, the GNU/Linux operating
1669 Although the Lesser General Public License is Less protective of the
1670 users' freedom, it does ensure that the user of a program that is
1671 linked with the Library has the freedom and the wherewithal to run
1672 that program using a modified version of the Library.
1674 The precise terms and conditions for copying, distribution and
1675 modification follow. Pay close attention to the difference between a
1676 "work based on the library" and a "work that uses the library". The
1677 former contains code derived from the library, whereas the latter must
1678 be combined with the library in order to run.
1680 GNU LESSER GENERAL PUBLIC LICENSE
1681 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1683 0. This License Agreement applies to any software library or other
1684 program which contains a notice placed by the copyright holder or
1685 other authorized party saying it may be distributed under the terms of
1686 this Lesser General Public License (also called "this License").
1687 Each licensee is addressed as "you".
1689 A "library" means a collection of software functions and/or data
1690 prepared so as to be conveniently linked with application programs
1691 (which use some of those functions and data) to form executables.
1693 The "Library", below, refers to any such software library or work
1694 which has been distributed under these terms. A "work based on the
1695 Library" means either the Library or any derivative work under
1696 copyright law: that is to say, a work containing the Library or a
1697 portion of it, either verbatim or with modifications and/or translated
1698 straightforwardly into another language. (Hereinafter, translation is
1699 included without limitation in the term "modification".)
1701 "Source code" for a work means the preferred form of the work for
1702 making modifications to it. For a library, complete source code means
1703 all the source code for all modules it contains, plus any associated
1704 interface definition files, plus the scripts used to control compilation
1705 and installation of the library.
1707 Activities other than copying, distribution and modification are not
1708 covered by this License; they are outside its scope. The act of
1709 running a program using the Library is not restricted, and output from
1710 such a program is covered only if its contents constitute a work based
1711 on the Library (independent of the use of the Library in a tool for
1712 writing it). Whether that is true depends on what the Library does
1713 and what the program that uses the Library does.
1715 1. You may copy and distribute verbatim copies of the Library's
1716 complete source code as you receive it, in any medium, provided that
1717 you conspicuously and appropriately publish on each copy an
1718 appropriate copyright notice and disclaimer of warranty; keep intact
1719 all the notices that refer to this License and to the absence of any
1720 warranty; and distribute a copy of this License along with the
1723 You may charge a fee for the physical act of transferring a copy,
1724 and you may at your option offer warranty protection in exchange for a
1727 2. You may modify your copy or copies of the Library or any portion
1728 of it, thus forming a work based on the Library, and copy and
1729 distribute such modifications or work under the terms of Section 1
1730 above, provided that you also meet all of these conditions:
1732 a) The modified work must itself be a software library.
1734 b) You must cause the files modified to carry prominent notices
1735 stating that you changed the files and the date of any change.
1737 c) You must cause the whole of the work to be licensed at no
1738 charge to all third parties under the terms of this License.
1740 d) If a facility in the modified Library refers to a function or a
1741 table of data to be supplied by an application program that uses
1742 the facility, other than as an argument passed when the facility
1743 is invoked, then you must make a good faith effort to ensure that,
1744 in the event an application does not supply such function or
1745 table, the facility still operates, and performs whatever part of
1746 its purpose remains meaningful.
1748 (For example, a function in a library to compute square roots has
1749 a purpose that is entirely well-defined independent of the
1750 application. Therefore, Subsection 2d requires that any
1751 application-supplied function or table used by this function must
1752 be optional: if the application does not supply it, the square
1753 root function must still compute square roots.)
1755 These requirements apply to the modified work as a whole. If
1756 identifiable sections of that work are not derived from the Library,
1757 and can be reasonably considered independent and separate works in
1758 themselves, then this License, and its terms, do not apply to those
1759 sections when you distribute them as separate works. But when you
1760 distribute the same sections as part of a whole which is a work based
1761 on the Library, the distribution of the whole must be on the terms of
1762 this License, whose permissions for other licensees extend to the
1763 entire whole, and thus to each and every part regardless of who wrote
1766 Thus, it is not the intent of this section to claim rights or contest
1767 your rights to work written entirely by you; rather, the intent is to
1768 exercise the right to control the distribution of derivative or
1769 collective works based on the Library.
1771 In addition, mere aggregation of another work not based on the Library
1772 with the Library (or with a work based on the Library) on a volume of
1773 a storage or distribution medium does not bring the other work under
1774 the scope of this License.
1776 3. You may opt to apply the terms of the ordinary GNU General Public
1777 License instead of this License to a given copy of the Library. To do
1778 this, you must alter all the notices that refer to this License, so
1779 that they refer to the ordinary GNU General Public License, version 2,
1780 instead of to this License. (If a newer version than version 2 of the
1781 ordinary GNU General Public License has appeared, then you can specify
1782 that version instead if you wish.) Do not make any other change in
1785 Once this change is made in a given copy, it is irreversible for
1786 that copy, so the ordinary GNU General Public License applies to all
1787 subsequent copies and derivative works made from that copy.
1789 This option is useful when you wish to copy part of the code of
1790 the Library into a program that is not a library.
1792 4. You may copy and distribute the Library (or a portion or
1793 derivative of it, under Section 2) in object code or executable form
1794 under the terms of Sections 1 and 2 above provided that you accompany
1795 it with the complete corresponding machine-readable source code, which
1796 must be distributed under the terms of Sections 1 and 2 above on a
1797 medium customarily used for software interchange.
1799 If distribution of object code is made by offering access to copy
1800 from a designated place, then offering equivalent access to copy the
1801 source code from the same place satisfies the requirement to
1802 distribute the source code, even though third parties are not
1803 compelled to copy the source along with the object code.
1805 5. A program that contains no derivative of any portion of the
1806 Library, but is designed to work with the Library by being compiled or
1807 linked with it, is called a "work that uses the Library". Such a
1808 work, in isolation, is not a derivative work of the Library, and
1809 therefore falls outside the scope of this License.
1811 However, linking a "work that uses the Library" with the Library
1812 creates an executable that is a derivative of the Library (because it
1813 contains portions of the Library), rather than a "work that uses the
1814 library". The executable is therefore covered by this License.
1815 Section 6 states terms for distribution of such executables.
1817 When a "work that uses the Library" uses material from a header file
1818 that is part of the Library, the object code for the work may be a
1819 derivative work of the Library even though the source code is not.
1820 Whether this is true is especially significant if the work can be
1821 linked without the Library, or if the work is itself a library. The
1822 threshold for this to be true is not precisely defined by law.
1824 If such an object file uses only numerical parameters, data
1825 structure layouts and accessors, and small macros and small inline
1826 functions (ten lines or less in length), then the use of the object
1827 file is unrestricted, regardless of whether it is legally a derivative
1828 work. (Executables containing this object code plus portions of the
1829 Library will still fall under Section 6.)
1831 Otherwise, if the work is a derivative of the Library, you may
1832 distribute the object code for the work under the terms of Section 6.
1833 Any executables containing that work also fall under Section 6,
1834 whether or not they are linked directly with the Library itself.
1836 6. As an exception to the Sections above, you may also combine or
1837 link a "work that uses the Library" with the Library to produce a
1838 work containing portions of the Library, and distribute that work
1839 under terms of your choice, provided that the terms permit
1840 modification of the work for the customer's own use and reverse
1841 engineering for debugging such modifications.
1843 You must give prominent notice with each copy of the work that the
1844 Library is used in it and that the Library and its use are covered by
1845 this License. You must supply a copy of this License. If the work
1846 during execution displays copyright notices, you must include the
1847 copyright notice for the Library among them, as well as a reference
1848 directing the user to the copy of this License. Also, you must do one
1851 a) Accompany the work with the complete corresponding
1852 machine-readable source code for the Library including whatever
1853 changes were used in the work (which must be distributed under
1854 Sections 1 and 2 above); and, if the work is an executable linked
1855 with the Library, with the complete machine-readable "work that
1856 uses the Library", as object code and/or source code, so that the
1857 user can modify the Library and then relink to produce a modified
1858 executable containing the modified Library. (It is understood
1859 that the user who changes the contents of definitions files in the
1860 Library will not necessarily be able to recompile the application
1861 to use the modified definitions.)
1863 b) Use a suitable shared library mechanism for linking with the
1864 Library. A suitable mechanism is one that (1) uses at run time a
1865 copy of the library already present on the user's computer system,
1866 rather than copying library functions into the executable, and (2)
1867 will operate properly with a modified version of the library, if
1868 the user installs one, as long as the modified version is
1869 interface-compatible with the version that the work was made with.
1871 c) Accompany the work with a written offer, valid for at
1872 least three years, to give the same user the materials
1873 specified in Subsection 6a, above, for a charge no more
1874 than the cost of performing this distribution.
1876 d) If distribution of the work is made by offering access to copy
1877 from a designated place, offer equivalent access to copy the above
1878 specified materials from the same place.
1880 e) Verify that the user has already received a copy of these
1881 materials or that you have already sent this user a copy.
1883 For an executable, the required form of the "work that uses the
1884 Library" must include any data and utility programs needed for
1885 reproducing the executable from it. However, as a special exception,
1886 the materials to be distributed need not include anything that is
1887 normally distributed (in either source or binary form) with the major
1888 components (compiler, kernel, and so on) of the operating system on
1889 which the executable runs, unless that component itself accompanies
1892 It may happen that this requirement contradicts the license
1893 restrictions of other proprietary libraries that do not normally
1894 accompany the operating system. Such a contradiction means you cannot
1895 use both them and the Library together in an executable that you
1898 7. You may place library facilities that are a work based on the
1899 Library side-by-side in a single library together with other library
1900 facilities not covered by this License, and distribute such a combined
1901 library, provided that the separate distribution of the work based on
1902 the Library and of the other library facilities is otherwise
1903 permitted, and provided that you do these two things:
1905 a) Accompany the combined library with a copy of the same work
1906 based on the Library, uncombined with any other library
1907 facilities. This must be distributed under the terms of the
1910 b) Give prominent notice with the combined library of the fact
1911 that part of it is a work based on the Library, and explaining
1912 where to find the accompanying uncombined form of the same work.
1914 8. You may not copy, modify, sublicense, link with, or distribute
1915 the Library except as expressly provided under this License. Any
1916 attempt otherwise to copy, modify, sublicense, link with, or
1917 distribute the Library is void, and will automatically terminate your
1918 rights under this License. However, parties who have received copies,
1919 or rights, from you under this License will not have their licenses
1920 terminated so long as such parties remain in full compliance.
1922 9. You are not required to accept this License, since you have not
1923 signed it. However, nothing else grants you permission to modify or
1924 distribute the Library or its derivative works. These actions are
1925 prohibited by law if you do not accept this License. Therefore, by
1926 modifying or distributing the Library (or any work based on the
1927 Library), you indicate your acceptance of this License to do so, and
1928 all its terms and conditions for copying, distributing or modifying
1929 the Library or works based on it.
1931 10. Each time you redistribute the Library (or any work based on the
1932 Library), the recipient automatically receives a license from the
1933 original licensor to copy, distribute, link with or modify the Library
1934 subject to these terms and conditions. You may not impose any further
1935 restrictions on the recipients' exercise of the rights granted herein.
1936 You are not responsible for enforcing compliance by third parties with
1939 11. If, as a consequence of a court judgment or allegation of patent
1940 infringement or for any other reason (not limited to patent issues),
1941 conditions are imposed on you (whether by court order, agreement or
1942 otherwise) that contradict the conditions of this License, they do not
1943 excuse you from the conditions of this License. If you cannot
1944 distribute so as to satisfy simultaneously your obligations under this
1945 License and any other pertinent obligations, then as a consequence you
1946 may not distribute the Library at all. For example, if a patent
1947 license would not permit royalty-free redistribution of the Library by
1948 all those who receive copies directly or indirectly through you, then
1949 the only way you could satisfy both it and this License would be to
1950 refrain entirely from distribution of the Library.
1952 If any portion of this section is held invalid or unenforceable under any
1953 particular circumstance, the balance of the section is intended to apply,
1954 and the section as a whole is intended to apply in other circumstances.
1956 It is not the purpose of this section to induce you to infringe any
1957 patents or other property right claims or to contest validity of any
1958 such claims; this section has the sole purpose of protecting the
1959 integrity of the free software distribution system which is
1960 implemented by public license practices. Many people have made
1961 generous contributions to the wide range of software distributed
1962 through that system in reliance on consistent application of that
1963 system; it is up to the author/donor to decide if he or she is willing
1964 to distribute software through any other system and a licensee cannot
1967 This section is intended to make thoroughly clear what is believed to
1968 be a consequence of the rest of this License.
1970 12. If the distribution and/or use of the Library is restricted in
1971 certain countries either by patents or by copyrighted interfaces, the
1972 original copyright holder who places the Library under this License may add
1973 an explicit geographical distribution limitation excluding those countries,
1974 so that distribution is permitted only in or among countries not thus
1975 excluded. In such case, this License incorporates the limitation as if
1976 written in the body of this License.
1978 13. The Free Software Foundation may publish revised and/or new
1979 versions of the Lesser General Public License from time to time.
1980 Such new versions will be similar in spirit to the present version,
1981 but may differ in detail to address new problems or concerns.
1983 Each version is given a distinguishing version number. If the Library
1984 specifies a version number of this License which applies to it and
1985 "any later version", you have the option of following the terms and
1986 conditions either of that version or of any later version published by
1987 the Free Software Foundation. If the Library does not specify a
1988 license version number, you may choose any version ever published by
1989 the Free Software Foundation.
1991 14. If you wish to incorporate parts of the Library into other free
1992 programs whose distribution conditions are incompatible with these,
1993 write to the author to ask for permission. For software which is
1994 copyrighted by the Free Software Foundation, write to the Free
1995 Software Foundation; we sometimes make exceptions for this. Our
1996 decision will be guided by the two goals of preserving the free status
1997 of all derivatives of our free software and of promoting the sharing
1998 and reuse of software generally.
2002 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
2003 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
2004 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
2005 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
2006 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
2007 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2008 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
2009 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
2010 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
2012 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
2013 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
2014 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
2015 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
2016 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
2017 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
2018 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
2019 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
2020 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
2023 END OF TERMS AND CONDITIONS
2025 How to Apply These Terms to Your New Libraries
2027 If you develop a new library, and you want it to be of the greatest
2028 possible use to the public, we recommend making it free software that
2029 everyone can redistribute and change. You can do so by permitting
2030 redistribution under these terms (or, alternatively, under the terms of the
2031 ordinary General Public License).
2033 To apply these terms, attach the following notices to the library. It is
2034 safest to attach them to the start of each source file to most effectively
2035 convey the exclusion of warranty; and each file should have at least the
2036 "copyright" line and a pointer to where the full notice is found.
2038 <one line to give the library's name and a brief idea of what it does.>
2039 Copyright (C) <year> <name of author>
2041 This library is free software; you can redistribute it and/or
2042 modify it under the terms of the GNU Lesser General Public
2043 License as published by the Free Software Foundation; either
2044 version 2.1 of the License, or (at your option) any later version.
2046 This library is distributed in the hope that it will be useful,
2047 but WITHOUT ANY WARRANTY; without even the implied warranty of
2048 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2049 Lesser General Public License for more details.
2051 You should have received a copy of the GNU Lesser General Public
2052 License along with this library; if not, write to the Free Software
2053 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2055 Also add information on how to contact you by electronic and paper mail.
2057 You should also get your employer (if you work as a programmer) or your
2058 school, if any, to sign a "copyright disclaimer" for the library, if
2059 necessary. Here is a sample; alter the names:
2061 Yoyodyne, Inc., hereby disclaims all copyright interest in the
2062 library `Frob' (a library for tweaking knobs) written by James Random Hacker.
2064 <signature of Ty Coon>, 1 April 1990
2065 Ty Coon, President of Vice
2067 That's all there is to it!