| 1 |
Stack |
| 2 |
===== |
| 3 |
|
| 4 |
Copyright (c) 2015-2025, Stack contributors. All rights reserved. |
| 5 |
|
| 6 |
Redistribution and use in source and binary forms, with or without modification, |
| 7 |
are permitted provided that the following conditions are met: |
| 8 |
|
| 9 |
1. Redistributions of source code must retain the above copyright notice, this |
| 10 |
list of conditions and the following disclaimer. |
| 11 |
|
| 12 |
2. Redistributions in binary form must reproduce the above copyright notice, |
| 13 |
this list of conditions and the following disclaimer in the documentation |
| 14 |
and/or other materials provided with the distribution. |
| 15 |
|
| 16 |
3. Neither the name of Stack nor the names of its contributors may be used to |
| 17 |
endorse or promote products derived from this software without specific |
| 18 |
prior written permission. |
| 19 |
|
| 20 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 21 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 22 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 23 |
DISCLAIMED. IN NO EVENT SHALL STACK CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 24 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 25 |
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 27 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 28 |
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 29 |
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 |
|
| 31 |
-------------------------------------------------------------------------------- |
| 32 |
|
| 33 |
The GNU Multiple Precision Arithmetic Library (GMP) |
| 34 |
=================================================== |
| 35 |
|
| 36 |
Stack executables for Linux distributed under Releases at Stack's GitHub |
| 37 |
repository (https://github.com/commercialhaskell/stack) may be statically-linked |
| 38 |
(as indicted there or in Stack's Change Log) and may be linked against a version |
| 39 |
of GMP, which is licensed under the GNU Lesser General Public License, |
| 40 |
Version 3, 29 June 2007 (LGPL). |
| 41 |
|
| 42 |
In accordance with the LGPL, the full source code of Stack is provided at the |
| 43 |
same GitHub repository, allowing you to modify and relink the GMP portion, if |
| 44 |
desired. |
| 45 |
|
| 46 |
GMP source code is available at: https://gmplib.org/ |
| 47 |
|
| 48 |
A copy of the LGPL is reproduced below. |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
GNU LESSER GENERAL PUBLIC LICENSE |
| 53 |
================================= |
| 54 |
|
| 55 |
Version 3, 29 June 2007 |
| 56 |
|
| 57 |
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> |
| 58 |
|
| 59 |
Everyone is permitted to copy and distribute verbatim copies of this license |
| 60 |
document, but changing it is not allowed. |
| 61 |
|
| 62 |
This version of the GNU Lesser General Public License incorporates the terms and |
| 63 |
conditions of version 3 of the GNU General Public License, supplemented by the |
| 64 |
additional permissions listed below. |
| 65 |
|
| 66 |
## 0. Additional Definitions. |
| 67 |
|
| 68 |
As used herein, "this License" refers to version 3 of the GNU Lesser General |
| 69 |
Public License, and the "GNU GPL" refers to version 3 of the GNU General Public |
| 70 |
License. |
| 71 |
|
| 72 |
"The Library" refers to a covered work governed by this License, other than an |
| 73 |
Application or a Combined Work as defined below. |
| 74 |
|
| 75 |
An "Application" is any work that makes use of an interface provided by the |
| 76 |
Library, but which is not otherwise based on the Library. Defining a subclass of |
| 77 |
a class defined by the Library is deemed a mode of using an interface provided |
| 78 |
by the Library. |
| 79 |
|
| 80 |
A "Combined Work" is a work produced by combining or linking an Application with |
| 81 |
the Library. The particular version of the Library with which the Combined Work |
| 82 |
was made is also called the "Linked Version". |
| 83 |
|
| 84 |
The "Minimal Corresponding Source" for a Combined Work means the Corresponding |
| 85 |
Source for the Combined Work, excluding any source code for portions of the |
| 86 |
Combined Work that, considered in isolation, are based on the Application, and |
| 87 |
not on the Linked Version. |
| 88 |
|
| 89 |
The "Corresponding Application Code" for a Combined Work means the object code |
| 90 |
and/or source code for the Application, including any data and utility programs |
| 91 |
needed for reproducing the Combined Work from the Application, but excluding the |
| 92 |
System Libraries of the Combined Work. |
| 93 |
|
| 94 |
## 1. Exception to Section 3 of the GNU GPL. |
| 95 |
|
| 96 |
You may convey a covered work under sections 3 and 4 of this License without |
| 97 |
being bound by section 3 of the GNU GPL. |
| 98 |
|
| 99 |
## 2. Conveying Modified Versions. |
| 100 |
|
| 101 |
If you modify a copy of the Library, and, in your modifications, a facility |
| 102 |
refers to a function or data to be supplied by an Application that uses the |
| 103 |
facility (other than as an argument passed when the facility is invoked), then |
| 104 |
you may convey a copy of the modified version: |
| 105 |
|
| 106 |
- a) under this License, provided that you make a good faith effort to ensure |
| 107 |
that, in the event an Application does not supply the function or data, the |
| 108 |
facility still operates, and performs whatever part of its purpose remains |
| 109 |
meaningful, or |
| 110 |
- b) under the GNU GPL, with none of the additional permissions of this |
| 111 |
License applicable to that copy. |
| 112 |
|
| 113 |
## 3. Object Code Incorporating Material from Library Header Files. |
| 114 |
|
| 115 |
The object code form of an Application may incorporate material from a header |
| 116 |
file that is part of the Library. You may convey such object code under terms of |
| 117 |
your choice, provided that, if the incorporated material is not limited to |
| 118 |
numerical parameters, data structure layouts and accessors, or small macros, |
| 119 |
inline functions and templates (ten or fewer lines in length), you do both of |
| 120 |
the following: |
| 121 |
|
| 122 |
- a) Give prominent notice with each copy of the object code that the Library |
| 123 |
is used in it and that the Library and its use are covered by this License. |
| 124 |
- b) Accompany the object code with a copy of the GNU GPL and this license |
| 125 |
document. |
| 126 |
|
| 127 |
## 4. Combined Works. |
| 128 |
|
| 129 |
You may convey a Combined Work under terms of your choice that, taken together, |
| 130 |
effectively do not restrict modification of the portions of the Library |
| 131 |
contained in the Combined Work and reverse engineering for debugging such |
| 132 |
modifications, if you also do each of the following: |
| 133 |
|
| 134 |
- a) Give prominent notice with each copy of the Combined Work that the |
| 135 |
Library is used in it and that the Library and its use are covered by this |
| 136 |
License. |
| 137 |
- b) Accompany the Combined Work with a copy of the GNU GPL and this license |
| 138 |
document. |
| 139 |
- c) For a Combined Work that displays copyright notices during execution, |
| 140 |
include the copyright notice for the Library among these notices, as well as |
| 141 |
a reference directing the user to the copies of the GNU GPL and this license |
| 142 |
document. |
| 143 |
- d) Do one of the following: |
| 144 |
- 0) Convey the Minimal Corresponding Source under the terms of this |
| 145 |
License, and the Corresponding Application Code in a form suitable for, |
| 146 |
and under terms that permit, the user to recombine or relink the |
| 147 |
Application with a modified version of the Linked Version to produce a |
| 148 |
modified Combined Work, in the manner specified by section 6 of the GNU |
| 149 |
GPL for conveying Corresponding Source. |
| 150 |
- 1) Use a suitable shared library mechanism for linking with the Library. |
| 151 |
A suitable mechanism is one that (a) uses at run time a copy of the |
| 152 |
Library already present on the user's computer system, and (b) will |
| 153 |
operate properly with a modified version of the Library that is |
| 154 |
interface-compatible with the Linked Version. |
| 155 |
- e) Provide Installation Information, but only if you would otherwise be |
| 156 |
required to provide such information under section 6 of the GNU GPL, and |
| 157 |
only to the extent that such information is necessary to install and execute |
| 158 |
a modified version of the Combined Work produced by recombining or relinking |
| 159 |
the Application with a modified version of the Linked Version. (If you use |
| 160 |
option 4d0, the Installation Information must accompany the Minimal |
| 161 |
Corresponding Source and Corresponding Application Code. If you use option |
| 162 |
4d1, you must provide the Installation Information in the manner specified |
| 163 |
by section 6 of the GNU GPL for conveying Corresponding Source.) |
| 164 |
|
| 165 |
## 5. Combined Libraries. |
| 166 |
|
| 167 |
You may place library facilities that are a work based on the Library side by |
| 168 |
side in a single library together with other library facilities that are not |
| 169 |
Applications and are not covered by this License, and convey such a combined |
| 170 |
library under terms of your choice, if you do both of the following: |
| 171 |
|
| 172 |
- a) Accompany the combined library with a copy of the same work based on the |
| 173 |
Library, uncombined with any other library facilities, conveyed under the |
| 174 |
terms of this License. |
| 175 |
- b) Give prominent notice with the combined library that part of it is a work |
| 176 |
based on the Library, and explaining where to find the accompanying |
| 177 |
uncombined form of the same work. |
| 178 |
|
| 179 |
## 6. Revised Versions of the GNU Lesser General Public License. |
| 180 |
|
| 181 |
The Free Software Foundation may publish revised and/or new versions of the GNU |
| 182 |
Lesser General Public License from time to time. Such new versions will be |
| 183 |
similar in spirit to the present version, but may differ in detail to address |
| 184 |
new problems or concerns. |
| 185 |
|
| 186 |
Each version is given a distinguishing version number. If the Library as you |
| 187 |
received it specifies that a certain numbered version of the GNU Lesser General |
| 188 |
Public License "or any later version" applies to it, you have the option of |
| 189 |
following the terms and conditions either of that published version or of any |
| 190 |
later version published by the Free Software Foundation. If the Library as you |
| 191 |
received it does not specify a version number of the GNU Lesser General Public |
| 192 |
License, you may choose any version of the GNU Lesser General Public License |
| 193 |
ever published by the Free Software Foundation. |
| 194 |
|
| 195 |
If the Library as you received it specifies that a proxy can decide whether |
| 196 |
future versions of the GNU Lesser General Public License shall apply, that |
| 197 |
proxy's public statement of acceptance of any version is permanent authorization |
| 198 |
for you to choose that version for the Library. |
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
GNU GENERAL PUBLIC LICENSE |
| 203 |
========================== |
| 204 |
|
| 205 |
Version 3, 29 June 2007 |
| 206 |
|
| 207 |
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> |
| 208 |
|
| 209 |
Everyone is permitted to copy and distribute verbatim copies of this license |
| 210 |
document, but changing it is not allowed. |
| 211 |
|
| 212 |
## Preamble |
| 213 |
|
| 214 |
The GNU General Public License is a free, copyleft license for software and |
| 215 |
other kinds of works. |
| 216 |
|
| 217 |
The licenses for most software and other practical works are designed to take |
| 218 |
away your freedom to share and change the works. By contrast, the GNU General |
| 219 |
Public License is intended to guarantee your freedom to share and change all |
| 220 |
versions of a program--to make sure it remains free software for all its users. |
| 221 |
We, the Free Software Foundation, use the GNU General Public License for most of |
| 222 |
our software; it applies also to any other work released this way by its |
| 223 |
authors. You can apply it to your programs, too. |
| 224 |
|
| 225 |
When we speak of free software, we are referring to freedom, not price. Our |
| 226 |
General Public Licenses are designed to make sure that you have the freedom to |
| 227 |
distribute copies of free software (and charge for them if you wish), that you |
| 228 |
receive source code or can get it if you want it, that you can change the |
| 229 |
software or use pieces of it in new free programs, and that you know you can do |
| 230 |
these things. |
| 231 |
|
| 232 |
To protect your rights, we need to prevent others from denying you these rights |
| 233 |
or asking you to surrender the rights. Therefore, you have certain |
| 234 |
responsibilities if you distribute copies of the software, or if you modify it: |
| 235 |
responsibilities to respect the freedom of others. |
| 236 |
|
| 237 |
For example, if you distribute copies of such a program, whether gratis or for a |
| 238 |
fee, you must pass on to the recipients the same freedoms that you received. You |
| 239 |
must make sure that they, too, receive or can get the source code. And you must |
| 240 |
show them these terms so they know their rights. |
| 241 |
|
| 242 |
Developers that use the GNU GPL protect your rights with two steps: (1) assert |
| 243 |
copyright on the software, and (2) offer you this License giving you legal |
| 244 |
permission to copy, distribute and/or modify it. |
| 245 |
|
| 246 |
For the developers' and authors' protection, the GPL clearly explains that there |
| 247 |
is no warranty for this free software. For both users' and authors' sake, the |
| 248 |
GPL requires that modified versions be marked as changed, so that their problems |
| 249 |
will not be attributed erroneously to authors of previous versions. |
| 250 |
|
| 251 |
Some devices are designed to deny users access to install or run modified |
| 252 |
versions of the software inside them, although the manufacturer can do so. This |
| 253 |
is fundamentally incompatible with the aim of protecting users' freedom to |
| 254 |
change the software. The systematic pattern of such abuse occurs in the area of |
| 255 |
products for individuals to use, which is precisely where it is most |
| 256 |
unacceptable. Therefore, we have designed this version of the GPL to prohibit |
| 257 |
the practice for those products. If such problems arise substantially in other |
| 258 |
domains, we stand ready to extend this provision to those domains in future |
| 259 |
versions of the GPL, as needed to protect the freedom of users. |
| 260 |
|
| 261 |
Finally, every program is threatened constantly by software patents. States |
| 262 |
should not allow patents to restrict development and use of software on |
| 263 |
general-purpose computers, but in those that do, we wish to avoid the special |
| 264 |
danger that patents applied to a free program could make it effectively |
| 265 |
proprietary. To prevent this, the GPL assures that patents cannot be used to |
| 266 |
render the program non-free. |
| 267 |
|
| 268 |
The precise terms and conditions for copying, distribution and modification |
| 269 |
follow. |
| 270 |
|
| 271 |
## TERMS AND CONDITIONS |
| 272 |
|
| 273 |
### 0. Definitions. |
| 274 |
|
| 275 |
"This License" refers to version 3 of the GNU General Public License. |
| 276 |
|
| 277 |
"Copyright" also means copyright-like laws that apply to other kinds of works, |
| 278 |
such as semiconductor masks. |
| 279 |
|
| 280 |
"The Program" refers to any copyrightable work licensed under this License. Each |
| 281 |
licensee is addressed as "you". "Licensees" and "recipients" may be individuals |
| 282 |
or organizations. |
| 283 |
|
| 284 |
To "modify" a work means to copy from or adapt all or part of the work in a |
| 285 |
fashion requiring copyright permission, other than the making of an exact copy. |
| 286 |
The resulting work is called a "modified version" of the earlier work or a work |
| 287 |
"based on" the earlier work. |
| 288 |
|
| 289 |
A "covered work" means either the unmodified Program or a work based on the |
| 290 |
Program. |
| 291 |
|
| 292 |
To "propagate" a work means to do anything with it that, without permission, |
| 293 |
would make you directly or secondarily liable for infringement under applicable |
| 294 |
copyright law, except executing it on a computer or modifying a private copy. |
| 295 |
Propagation includes copying, distribution (with or without modification), |
| 296 |
making available to the public, and in some countries other activities as well. |
| 297 |
|
| 298 |
To "convey" a work means any kind of propagation that enables other parties to |
| 299 |
make or receive copies. Mere interaction with a user through a computer network, |
| 300 |
with no transfer of a copy, is not conveying. |
| 301 |
|
| 302 |
An interactive user interface displays "Appropriate Legal Notices" to the extent |
| 303 |
that it includes a convenient and prominently visible feature that (1) displays |
| 304 |
an appropriate copyright notice, and (2) tells the user that there is no |
| 305 |
warranty for the work (except to the extent that warranties are provided), that |
| 306 |
licensees may convey the work under this License, and how to view a copy of this |
| 307 |
License. If the interface presents a list of user commands or options, such as a |
| 308 |
menu, a prominent item in the list meets this criterion. |
| 309 |
|
| 310 |
### 1. Source Code. |
| 311 |
|
| 312 |
The "source code" for a work means the preferred form of the work for making |
| 313 |
modifications to it. "Object code" means any non-source form of a work. |
| 314 |
|
| 315 |
A "Standard Interface" means an interface that either is an official standard |
| 316 |
defined by a recognized standards body, or, in the case of interfaces specified |
| 317 |
for a particular programming language, one that is widely used among developers |
| 318 |
working in that language. |
| 319 |
|
| 320 |
The "System Libraries" of an executable work include anything, other than the |
| 321 |
work as a whole, that (a) is included in the normal form of packaging a Major |
| 322 |
Component, but which is not part of that Major Component, and (b) serves only to |
| 323 |
enable use of the work with that Major Component, or to implement a Standard |
| 324 |
Interface for which an implementation is available to the public in source code |
| 325 |
form. A "Major Component", in this context, means a major essential component |
| 326 |
(kernel, window system, and so on) of the specific operating system (if any) on |
| 327 |
which the executable work runs, or a compiler used to produce the work, or an |
| 328 |
object code interpreter used to run it. |
| 329 |
|
| 330 |
The "Corresponding Source" for a work in object code form means all the source |
| 331 |
code needed to generate, install, and (for an executable work) run the object |
| 332 |
code and to modify the work, including scripts to control those activities. |
| 333 |
However, it does not include the work's System Libraries, or general-purpose |
| 334 |
tools or generally available free programs which are used unmodified in |
| 335 |
performing those activities but which are not part of the work. For example, |
| 336 |
Corresponding Source includes interface definition files associated with source |
| 337 |
files for the work, and the source code for shared libraries and dynamically |
| 338 |
linked subprograms that the work is specifically designed to require, such as by |
| 339 |
intimate data communication or control flow between those subprograms and other |
| 340 |
parts of the work. |
| 341 |
|
| 342 |
The Corresponding Source need not include anything that users can regenerate |
| 343 |
automatically from other parts of the Corresponding Source. |
| 344 |
|
| 345 |
The Corresponding Source for a work in source code form is that same work. |
| 346 |
|
| 347 |
### 2. Basic Permissions. |
| 348 |
|
| 349 |
All rights granted under this License are granted for the term of copyright on |
| 350 |
the Program, and are irrevocable provided the stated conditions are met. This |
| 351 |
License explicitly affirms your unlimited permission to run the unmodified |
| 352 |
Program. The output from running a covered work is covered by this License only |
| 353 |
if the output, given its content, constitutes a covered work. This License |
| 354 |
acknowledges your rights of fair use or other equivalent, as provided by |
| 355 |
copyright law. |
| 356 |
|
| 357 |
You may make, run and propagate covered works that you do not convey, without |
| 358 |
conditions so long as your license otherwise remains in force. You may convey |
| 359 |
covered works to others for the sole purpose of having them make modifications |
| 360 |
exclusively for you, or provide you with facilities for running those works, |
| 361 |
provided that you comply with the terms of this License in conveying all |
| 362 |
material for which you do not control copyright. Those thus making or running |
| 363 |
the covered works for you must do so exclusively on your behalf, under your |
| 364 |
direction and control, on terms that prohibit them from making any copies of |
| 365 |
your copyrighted material outside their relationship with you. |
| 366 |
|
| 367 |
Conveying under any other circumstances is permitted solely under the conditions |
| 368 |
stated below. Sublicensing is not allowed; section 10 makes it unnecessary. |
| 369 |
|
| 370 |
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
| 371 |
|
| 372 |
No covered work shall be deemed part of an effective technological measure under |
| 373 |
any applicable law fulfilling obligations under article 11 of the WIPO copyright |
| 374 |
treaty adopted on 20 December 1996, or similar laws prohibiting or restricting |
| 375 |
circumvention of such measures. |
| 376 |
|
| 377 |
When you convey a covered work, you waive any legal power to forbid |
| 378 |
circumvention of technological measures to the extent such circumvention is |
| 379 |
effected by exercising rights under this License with respect to the covered |
| 380 |
work, and you disclaim any intention to limit operation or modification of the |
| 381 |
work as a means of enforcing, against the work's users, your or third parties' |
| 382 |
legal rights to forbid circumvention of technological measures. |
| 383 |
|
| 384 |
### 4. Conveying Verbatim Copies. |
| 385 |
|
| 386 |
You may convey verbatim copies of the Program's source code as you receive it, |
| 387 |
in any medium, provided that you conspicuously and appropriately publish on each |
| 388 |
copy an appropriate copyright notice; keep intact all notices stating that this |
| 389 |
License and any non-permissive terms added in accord with section 7 apply to the |
| 390 |
code; keep intact all notices of the absence of any warranty; and give all |
| 391 |
recipients a copy of this License along with the Program. |
| 392 |
|
| 393 |
You may charge any price or no price for each copy that you convey, and you may |
| 394 |
offer support or warranty protection for a fee. |
| 395 |
|
| 396 |
### 5. Conveying Modified Source Versions. |
| 397 |
|
| 398 |
You may convey a work based on the Program, or the modifications to produce it |
| 399 |
from the Program, in the form of source code under the terms of section 4, |
| 400 |
provided that you also meet all of these conditions: |
| 401 |
|
| 402 |
- a) The work must carry prominent notices stating that you modified |
| 403 |
it, and giving a relevant date. |
| 404 |
- b) The work must carry prominent notices stating that it is |
| 405 |
released under this License and any conditions added under |
| 406 |
section 7. This requirement modifies the requirement in section 4 |
| 407 |
to "keep intact all notices". |
| 408 |
- c) You must license the entire work, as a whole, under this |
| 409 |
License to anyone who comes into possession of a copy. This |
| 410 |
License will therefore apply, along with any applicable section 7 |
| 411 |
additional terms, to the whole of the work, and all its parts, |
| 412 |
regardless of how they are packaged. This License gives no |
| 413 |
permission to license the work in any other way, but it does not |
| 414 |
invalidate such permission if you have separately received it. |
| 415 |
- d) If the work has interactive user interfaces, each must display |
| 416 |
Appropriate Legal Notices; however, if the Program has interactive |
| 417 |
interfaces that do not display Appropriate Legal Notices, your |
| 418 |
work need not make them do so. |
| 419 |
|
| 420 |
A compilation of a covered work with other separate and independent works, which |
| 421 |
are not by their nature extensions of the covered work, and which are not |
| 422 |
combined with it such as to form a larger program, in or on a volume of a |
| 423 |
storage or distribution medium, is called an "aggregate" if the compilation and |
| 424 |
its resulting copyright are not used to limit the access or legal rights of the |
| 425 |
compilation's users beyond what the individual works permit. Inclusion of a |
| 426 |
covered work in an aggregate does not cause this License to apply to the other |
| 427 |
parts of the aggregate. |
| 428 |
|
| 429 |
### 6. Conveying Non-Source Forms. |
| 430 |
|
| 431 |
You may convey a covered work in object code form under the terms of sections 4 |
| 432 |
and 5, provided that you also convey the machine-readable Corresponding Source |
| 433 |
under the terms of this License, in one of these ways: |
| 434 |
|
| 435 |
- a) Convey the object code in, or embodied in, a physical product |
| 436 |
(including a physical distribution medium), accompanied by the |
| 437 |
Corresponding Source fixed on a durable physical medium |
| 438 |
customarily used for software interchange. |
| 439 |
- b) Convey the object code in, or embodied in, a physical product |
| 440 |
(including a physical distribution medium), accompanied by a |
| 441 |
written offer, valid for at least three years and valid for as |
| 442 |
long as you offer spare parts or customer support for that product |
| 443 |
model, to give anyone who possesses the object code either (1) a |
| 444 |
copy of the Corresponding Source for all the software in the |
| 445 |
product that is covered by this License, on a durable physical |
| 446 |
medium customarily used for software interchange, for a price no |
| 447 |
more than your reasonable cost of physically performing this |
| 448 |
conveying of source, or (2) access to copy the Corresponding |
| 449 |
Source from a network server at no charge. |
| 450 |
- c) Convey individual copies of the object code with a copy of the |
| 451 |
written offer to provide the Corresponding Source. This |
| 452 |
alternative is allowed only occasionally and noncommercially, and |
| 453 |
only if you received the object code with such an offer, in accord |
| 454 |
with subsection 6b. |
| 455 |
- d) Convey the object code by offering access from a designated |
| 456 |
place (gratis or for a charge), and offer equivalent access to the |
| 457 |
Corresponding Source in the same way through the same place at no |
| 458 |
further charge. You need not require recipients to copy the |
| 459 |
Corresponding Source along with the object code. If the place to |
| 460 |
copy the object code is a network server, the Corresponding Source |
| 461 |
may be on a different server (operated by you or a third party) |
| 462 |
that supports equivalent copying facilities, provided you maintain |
| 463 |
clear directions next to the object code saying where to find the |
| 464 |
Corresponding Source. Regardless of what server hosts the |
| 465 |
Corresponding Source, you remain obligated to ensure that it is |
| 466 |
available for as long as needed to satisfy these requirements. |
| 467 |
- e) Convey the object code using peer-to-peer transmission, |
| 468 |
provided you inform other peers where the object code and |
| 469 |
Corresponding Source of the work are being offered to the general |
| 470 |
public at no charge under subsection 6d. |
| 471 |
|
| 472 |
A separable portion of the object code, whose source code is excluded from the |
| 473 |
Corresponding Source as a System Library, need not be included in conveying the |
| 474 |
object code work. |
| 475 |
|
| 476 |
A "User Product" is either (1) a "consumer product", which means any tangible |
| 477 |
personal property which is normally used for personal, family, or household |
| 478 |
purposes, or (2) anything designed or sold for incorporation into a dwelling. In |
| 479 |
determining whether a product is a consumer product, doubtful cases shall be |
| 480 |
resolved in favor of coverage. For a particular product received by a particular |
| 481 |
user, "normally used" refers to a typical or common use of that class of |
| 482 |
product, regardless of the status of the particular user or of the way in which |
| 483 |
the particular user actually uses, or expects or is expected to use, the |
| 484 |
product. A product is a consumer product regardless of whether the product has |
| 485 |
substantial commercial, industrial or non-consumer uses, unless such uses |
| 486 |
represent the only significant mode of use of the product. |
| 487 |
|
| 488 |
"Installation Information" for a User Product means any methods, procedures, |
| 489 |
authorization keys, or other information required to install and execute |
| 490 |
modified versions of a covered work in that User Product from a modified version |
| 491 |
of its Corresponding Source. The information must suffice to ensure that the |
| 492 |
continued functioning of the modified object code is in no case prevented or |
| 493 |
interfered with solely because modification has been made. |
| 494 |
|
| 495 |
If you convey an object code work under this section in, or with, or |
| 496 |
specifically for use in, a User Product, and the conveying occurs as part of a |
| 497 |
transaction in which the right of possession and use of the User Product is |
| 498 |
transferred to the recipient in perpetuity or for a fixed term (regardless of |
| 499 |
how the transaction is characterized), the Corresponding Source conveyed under |
| 500 |
this section must be accompanied by the Installation Information. But this |
| 501 |
requirement does not apply if neither you nor any third party retains the |
| 502 |
ability to install modified object code on the User Product (for example, the |
| 503 |
work has been installed in ROM). |
| 504 |
|
| 505 |
The requirement to provide Installation Information does not include a |
| 506 |
requirement to continue to provide support service, warranty, or updates for a |
| 507 |
work that has been modified or installed by the recipient, or for the User |
| 508 |
Product in which it has been modified or installed. Access to a network may be |
| 509 |
denied when the modification itself materially and adversely affects the |
| 510 |
operation of the network or violates the rules and protocols for communication |
| 511 |
across the network. |
| 512 |
|
| 513 |
Corresponding Source conveyed, and Installation Information provided, in accord |
| 514 |
with this section must be in a format that is publicly documented (and with an |
| 515 |
implementation available to the public in source code form), and must require no |
| 516 |
special password or key for unpacking, reading or copying. |
| 517 |
|
| 518 |
### 7. Additional Terms. |
| 519 |
|
| 520 |
"Additional permissions" are terms that supplement the terms of this License by |
| 521 |
making exceptions from one or more of its conditions. Additional permissions |
| 522 |
that are applicable to the entire Program shall be treated as though they were |
| 523 |
included in this License, to the extent that they are valid under applicable |
| 524 |
law. If additional permissions apply only to part of the Program, that part may |
| 525 |
be used separately under those permissions, but the entire Program remains |
| 526 |
governed by this License without regard to the additional permissions. |
| 527 |
|
| 528 |
When you convey a copy of a covered work, you may at your option remove any |
| 529 |
additional permissions from that copy, or from any part of it. (Additional |
| 530 |
permissions may be written to require their own removal in certain cases when |
| 531 |
you modify the work.) You may place additional permissions on material, added by |
| 532 |
you to a covered work, for which you have or can give appropriate copyright |
| 533 |
permission. |
| 534 |
|
| 535 |
Notwithstanding any other provision of this License, for material you add to a |
| 536 |
covered work, you may (if authorized by the copyright holders of that material) |
| 537 |
supplement the terms of this License with terms: |
| 538 |
|
| 539 |
- a) Disclaiming warranty or limiting liability differently from the |
| 540 |
terms of sections 15 and 16 of this License; or |
| 541 |
- b) Requiring preservation of specified reasonable legal notices or |
| 542 |
author attributions in that material or in the Appropriate Legal |
| 543 |
Notices displayed by works containing it; or |
| 544 |
- c) Prohibiting misrepresentation of the origin of that material, |
| 545 |
or requiring that modified versions of such material be marked in |
| 546 |
reasonable ways as different from the original version; or |
| 547 |
- d) Limiting the use for publicity purposes of names of licensors |
| 548 |
or authors of the material; or |
| 549 |
- e) Declining to grant rights under trademark law for use of some |
| 550 |
trade names, trademarks, or service marks; or |
| 551 |
- f) Requiring indemnification of licensors and authors of that |
| 552 |
material by anyone who conveys the material (or modified versions |
| 553 |
of it) with contractual assumptions of liability to the recipient, |
| 554 |
for any liability that these contractual assumptions directly |
| 555 |
impose on those licensors and authors. |
| 556 |
|
| 557 |
All other non-permissive additional terms are considered "further restrictions" |
| 558 |
within the meaning of section 10. If the Program as you received it, or any part |
| 559 |
of it, contains a notice stating that it is governed by this License along with |
| 560 |
a term that is a further restriction, you may remove that term. If a license |
| 561 |
document contains a further restriction but permits relicensing or conveying |
| 562 |
under this License, you may add to a covered work material governed by the terms |
| 563 |
of that license document, provided that the further restriction does not survive |
| 564 |
such relicensing or conveying. |
| 565 |
|
| 566 |
If you add terms to a covered work in accord with this section, you must place, |
| 567 |
in the relevant source files, a statement of the additional terms that apply to |
| 568 |
those files, or a notice indicating where to find the applicable terms. |
| 569 |
|
| 570 |
Additional terms, permissive or non-permissive, may be stated in the form of a |
| 571 |
separately written license, or stated as exceptions; the above requirements |
| 572 |
apply either way. |
| 573 |
|
| 574 |
### 8. Termination. |
| 575 |
|
| 576 |
You may not propagate or modify a covered work except as expressly provided |
| 577 |
under this License. Any attempt otherwise to propagate or modify it is void, and |
| 578 |
will automatically terminate your rights under this License (including any |
| 579 |
patent licenses granted under the third paragraph of section 11). |
| 580 |
|
| 581 |
However, if you cease all violation of this License, then your license from a |
| 582 |
particular copyright holder is reinstated (a) provisionally, unless and until |
| 583 |
the copyright holder explicitly and finally terminates your license, and (b) |
| 584 |
permanently, if the copyright holder fails to notify you of the violation by |
| 585 |
some reasonable means prior to 60 days after the cessation. |
| 586 |
|
| 587 |
Moreover, your license from a particular copyright holder is reinstated |
| 588 |
permanently if the copyright holder notifies you of the violation by some |
| 589 |
reasonable means, this is the first time you have received notice of violation |
| 590 |
of this License (for any work) from that copyright holder, and you cure the |
| 591 |
violation prior to 30 days after your receipt of the notice. |
| 592 |
|
| 593 |
Termination of your rights under this section does not terminate the licenses of |
| 594 |
parties who have received copies or rights from you under this License. If your |
| 595 |
rights have been terminated and not permanently reinstated, you do not qualify |
| 596 |
to receive new licenses for the same material under section 10. |
| 597 |
|
| 598 |
### 9. Acceptance Not Required for Having Copies. |
| 599 |
|
| 600 |
You are not required to accept this License in order to receive or run a copy of |
| 601 |
the Program. Ancillary propagation of a covered work occurring solely as a |
| 602 |
consequence of using peer-to-peer transmission to receive a copy likewise does |
| 603 |
not require acceptance. However, nothing other than this License grants you |
| 604 |
permission to propagate or modify any covered work. These actions infringe |
| 605 |
copyright if you do not accept this License. Therefore, by modifying or |
| 606 |
propagating a covered work, you indicate your acceptance of this License to do |
| 607 |
so. |
| 608 |
|
| 609 |
### 10. Automatic Licensing of Downstream Recipients. |
| 610 |
|
| 611 |
Each time you convey a covered work, the recipient automatically receives a |
| 612 |
license from the original licensors, to run, modify and propagate that work, |
| 613 |
subject to this License. You are not responsible for enforcing compliance by |
| 614 |
third parties with this License. |
| 615 |
|
| 616 |
An "entity transaction" is a transaction transferring control of an |
| 617 |
organization, or substantially all assets of one, or subdividing an |
| 618 |
organization, or merging organizations. If propagation of a covered work results |
| 619 |
from an entity transaction, each party to that transaction who receives a copy |
| 620 |
of the work also receives whatever licenses to the work the party's predecessor |
| 621 |
in interest had or could give under the previous paragraph, plus a right to |
| 622 |
possession of the Corresponding Source of the work from the predecessor in |
| 623 |
interest, if the predecessor has it or can get it with reasonable efforts. |
| 624 |
|
| 625 |
You may not impose any further restrictions on the exercise of the rights |
| 626 |
granted or affirmed under this License. For example, you may not impose a |
| 627 |
license fee, royalty, or other charge for exercise of rights granted under this |
| 628 |
License, and you may not initiate litigation (including a cross-claim or |
| 629 |
counterclaim in a lawsuit) alleging that any patent claim is infringed by |
| 630 |
making, using, selling, offering for sale, or importing the Program or any |
| 631 |
portion of it. |
| 632 |
|
| 633 |
### 11. Patents. |
| 634 |
|
| 635 |
A "contributor" is a copyright holder who authorizes use under this License of |
| 636 |
the Program or a work on which the Program is based. The work thus licensed is |
| 637 |
called the contributor's "contributor version". |
| 638 |
|
| 639 |
A contributor's "essential patent claims" are all patent claims owned or |
| 640 |
controlled by the contributor, whether already acquired or hereafter acquired, |
| 641 |
that would be infringed by some manner, permitted by this License, of making, |
| 642 |
using, or selling its contributor version, but do not include claims that would |
| 643 |
be infringed only as a consequence of further modification of the contributor |
| 644 |
version. For purposes of this definition, "control" includes the right to grant |
| 645 |
patent sublicenses in a manner consistent with the requirements of this License. |
| 646 |
|
| 647 |
Each contributor grants you a non-exclusive, worldwide, royalty-free patent |
| 648 |
license under the contributor's essential patent claims, to make, use, sell, |
| 649 |
offer for sale, import and otherwise run, modify and propagate the contents of |
| 650 |
its contributor version. |
| 651 |
|
| 652 |
In the following three paragraphs, a "patent license" is any express agreement |
| 653 |
or commitment, however denominated, not to enforce a patent (such as an express |
| 654 |
permission to practice a patent or covenant not to sue for patent infringement). |
| 655 |
To "grant" such a patent license to a party means to make such an agreement or |
| 656 |
commitment not to enforce a patent against the party. |
| 657 |
|
| 658 |
If you convey a covered work, knowingly relying on a patent license, and the |
| 659 |
Corresponding Source of the work is not available for anyone to copy, free of |
| 660 |
charge and under the terms of this License, through a publicly available network |
| 661 |
server or other readily accessible means, then you must either (1) cause the |
| 662 |
Corresponding Source to be so available, or (2) arrange to deprive yourself of |
| 663 |
the benefit of the patent license for this particular work, or (3) arrange, in a |
| 664 |
manner consistent with the requirements of this License, to extend the patent |
| 665 |
license to downstream recipients. "Knowingly relying" means you have actual |
| 666 |
knowledge that, but for the patent license, your conveying the covered work in a |
| 667 |
country, or your recipient's use of the covered work in a country, would |
| 668 |
infringe one or more identifiable patents in that country that you have reason |
| 669 |
to believe are valid. |
| 670 |
|
| 671 |
If, pursuant to or in connection with a single transaction or arrangement, you |
| 672 |
convey, or propagate by procuring conveyance of, a covered work, and grant a |
| 673 |
patent license to some of the parties receiving the covered work authorizing |
| 674 |
them to use, propagate, modify or convey a specific copy of the covered work, |
| 675 |
then the patent license you grant is automatically extended to all recipients of |
| 676 |
the covered work and works based on it. |
| 677 |
|
| 678 |
A patent license is "discriminatory" if it does not include within the scope of |
| 679 |
its coverage, prohibits the exercise of, or is conditioned on the non-exercise |
| 680 |
of one or more of the rights that are specifically granted under this License. |
| 681 |
You may not convey a covered work if you are a party to an arrangement with a |
| 682 |
third party that is in the business of distributing software, under which you |
| 683 |
make payment to the third party based on the extent of your activity of |
| 684 |
conveying the work, and under which the third party grants, to any of the |
| 685 |
parties who would receive the covered work from you, a discriminatory patent |
| 686 |
license (a) in connection with copies of the covered work conveyed by you (or |
| 687 |
copies made from those copies), or (b) primarily for and in connection with |
| 688 |
specific products or compilations that contain the covered work, unless you |
| 689 |
entered into that arrangement, or that patent license was granted, prior to |
| 690 |
28 March 2007. |
| 691 |
|
| 692 |
Nothing in this License shall be construed as excluding or limiting any implied |
| 693 |
license or other defenses to infringement that may otherwise be available to you |
| 694 |
under applicable patent law. |
| 695 |
|
| 696 |
### 12. No Surrender of Others' Freedom. |
| 697 |
|
| 698 |
If conditions are imposed on you (whether by court order, agreement or |
| 699 |
otherwise) that contradict the conditions of this License, they do not excuse |
| 700 |
you from the conditions of this License. If you cannot convey a covered work so |
| 701 |
as to satisfy simultaneously your obligations under this License and any other |
| 702 |
pertinent obligations, then as a consequence you may not convey it at all. For |
| 703 |
example, if you agree to terms that obligate you to collect a royalty for |
| 704 |
further conveying from those to whom you convey the Program, the only way you |
| 705 |
could satisfy both those terms and this License would be to refrain entirely |
| 706 |
from conveying the Program. |
| 707 |
|
| 708 |
### 13. Use with the GNU Affero General Public License. |
| 709 |
|
| 710 |
Notwithstanding any other provision of this License, you have permission to link |
| 711 |
or combine any covered work with a work licensed under version 3 of the GNU |
| 712 |
Affero General Public License into a single combined work, and to convey the |
| 713 |
resulting work. The terms of this License will continue to apply to the part |
| 714 |
which is the covered work, but the special requirements of the GNU Affero |
| 715 |
General Public License, section 13, concerning interaction through a network |
| 716 |
will apply to the combination as such. |
| 717 |
|
| 718 |
### 14. Revised Versions of this License. |
| 719 |
|
| 720 |
The Free Software Foundation may publish revised and/or new versions of the GNU |
| 721 |
General Public License from time to time. Such new versions will be similar in |
| 722 |
spirit to the present version, but may differ in detail to address new problems |
| 723 |
or concerns. |
| 724 |
|
| 725 |
Each version is given a distinguishing version number. If the Program specifies |
| 726 |
that a certain numbered version of the GNU General Public License "or any later |
| 727 |
version" applies to it, you have the option of following the terms and |
| 728 |
conditions either of that numbered version or of any later version published by |
| 729 |
the Free Software Foundation. If the Program does not specify a version number |
| 730 |
of the GNU General Public License, you may choose any version ever published by |
| 731 |
the Free Software Foundation. |
| 732 |
|
| 733 |
If the Program specifies that a proxy can decide which future versions of the |
| 734 |
GNU General Public License can be used, that proxy's public statement of |
| 735 |
acceptance of a version permanently authorizes you to choose that version for |
| 736 |
the Program. |
| 737 |
|
| 738 |
Later license versions may give you additional or different permissions. |
| 739 |
However, no additional obligations are imposed on any author or copyright holder |
| 740 |
as a result of your choosing to follow a later version. |
| 741 |
|
| 742 |
### 15. Disclaimer of Warranty. |
| 743 |
|
| 744 |
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
| 745 |
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER |
| 746 |
PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER |
| 747 |
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 748 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE |
| 749 |
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE |
| 750 |
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
| 751 |
|
| 752 |
### 16. Limitation of Liability. |
| 753 |
|
| 754 |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY |
| 755 |
COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS |
| 756 |
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, |
| 757 |
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE |
| 758 |
THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED |
| 759 |
INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE |
| 760 |
PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY |
| 761 |
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 762 |
|
| 763 |
### 17. Interpretation of Sections 15 and 16. |
| 764 |
|
| 765 |
If the disclaimer of warranty and limitation of liability provided above cannot |
| 766 |
be given local legal effect according to their terms, reviewing courts shall |
| 767 |
apply local law that most closely approximates an absolute waiver of all civil |
| 768 |
liability in connection with the Program, unless a warranty or assumption of |
| 769 |
liability accompanies a copy of the Program in return for a fee. |
| 770 |
|
| 771 |
END OF TERMS AND CONDITIONS |
| 772 |
|
| 773 |
## How to Apply These Terms to Your New Programs |
| 774 |
|
| 775 |
If you develop a new program, and you want it to be of the greatest possible use |
| 776 |
to the public, the best way to achieve this is to make it free software which |
| 777 |
everyone can redistribute and change under these terms. |
| 778 |
|
| 779 |
To do so, attach the following notices to the program. It is safest to attach |
| 780 |
them to the start of each source file to most effectively state the exclusion of |
| 781 |
warranty; and each file should have at least the "copyright" line and a pointer |
| 782 |
to where the full notice is found. |
| 783 |
|
| 784 |
<one line to give the program's name and a brief idea of what it does.> |
| 785 |
Copyright (C) <year> <name of author> |
| 786 |
|
| 787 |
This program is free software: you can redistribute it and/or modify |
| 788 |
it under the terms of the GNU General Public License as published by |
| 789 |
the Free Software Foundation, either version 3 of the License, or |
| 790 |
(at your option) any later version. |
| 791 |
|
| 792 |
This program is distributed in the hope that it will be useful, |
| 793 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 794 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 795 |
GNU General Public License for more details. |
| 796 |
|
| 797 |
You should have received a copy of the GNU General Public License |
| 798 |
along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 799 |
|
| 800 |
Also add information on how to contact you by electronic and paper mail. |
| 801 |
|
| 802 |
If the program does terminal interaction, make it output a short notice like |
| 803 |
this when it starts in an interactive mode: |
| 804 |
|
| 805 |
<program> Copyright (C) <year> <name of author> |
| 806 |
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
| 807 |
This is free software, and you are welcome to redistribute it |
| 808 |
under certain conditions; type `show c' for details. |
| 809 |
|
| 810 |
The hypothetical commands \`show w' and \`show c' should show the appropriate |
| 811 |
parts of the General Public License. Of course, your program's commands might be |
| 812 |
different; for a GUI interface, you would use an "about box". |
| 813 |
|
| 814 |
You should also get your employer (if you work as a programmer) or school, if |
| 815 |
any, to sign a "copyright disclaimer" for the program, if necessary. For more |
| 816 |
information on this, and how to apply and follow the GNU GPL, see |
| 817 |
<https://www.gnu.org/licenses/>. |
| 818 |
|
| 819 |
The GNU General Public License does not permit incorporating your program into |
| 820 |
proprietary programs. If your program is a subroutine library, you may consider |
| 821 |
it more useful to permit linking proprietary applications with the library. If |
| 822 |
this is what you want to do, use the GNU Lesser General Public License instead |
| 823 |
of this License. But first, please read |
| 824 |
<https://www.gnu.org/licenses/why-not-lgpl.html>. |