| 1 |
_________________________ |
|---|
| 2 |
|
|---|
| 3 |
P H I N G |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
Please, be sure to read the license header on any one of the phing core |
|---|
| 10 |
|
|---|
| 11 |
files. It explains the licensing scheme. |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
Some files in phing are Perl Artistic, Apache, BSD, or just free. See |
|---|
| 16 |
|
|---|
| 17 |
"CREDITS" for a list. |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
We've included a copy of the LGPL for convenience. |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
LGPL LICENSE |
|---|
| 28 |
|
|---|
| 29 |
------------ |
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
GNU LESSER GENERAL PUBLIC LICENSE |
|---|
| 34 |
|
|---|
| 35 |
Version 2.1, February 1999 |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
Copyright (C) 1991, 1999 Free Software Foundation, Inc. |
|---|
| 40 |
|
|---|
| 41 |
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 42 |
|
|---|
| 43 |
Everyone is permitted to copy and distribute verbatim copies |
|---|
| 44 |
|
|---|
| 45 |
of this license document, but changing it is not allowed. |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
[This is the first released version of the Lesser GPL. It also counts |
|---|
| 50 |
|
|---|
| 51 |
as the successor of the GNU Library Public License, version 2, hence |
|---|
| 52 |
|
|---|
| 53 |
the version number 2.1.] |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
Preamble |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
The licenses for most software are designed to take away your |
|---|
| 62 |
|
|---|
| 63 |
freedom to share and change it. By contrast, the GNU General Public |
|---|
| 64 |
|
|---|
| 65 |
Licenses are intended to guarantee your freedom to share and change |
|---|
| 66 |
|
|---|
| 67 |
free software--to make sure the software is free for all its users. |
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 |
This license, the Lesser General Public License, applies to some |
|---|
| 72 |
|
|---|
| 73 |
specially designated software packages--typically libraries--of the |
|---|
| 74 |
|
|---|
| 75 |
Free Software Foundation and other authors who decide to use it. You |
|---|
| 76 |
|
|---|
| 77 |
can use it too, but we suggest you first think carefully about whether |
|---|
| 78 |
|
|---|
| 79 |
this license or the ordinary General Public License is the better |
|---|
| 80 |
|
|---|
| 81 |
strategy to use in any particular case, based on the explanations below. |
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
When we speak of free software, we are referring to freedom of use, |
|---|
| 86 |
|
|---|
| 87 |
not price. Our General Public Licenses are designed to make sure that |
|---|
| 88 |
|
|---|
| 89 |
you have the freedom to distribute copies of free software (and charge |
|---|
| 90 |
|
|---|
| 91 |
for this service if you wish); that you receive source code or can get |
|---|
| 92 |
|
|---|
| 93 |
it if you want it; that you can change the software and use pieces of |
|---|
| 94 |
|
|---|
| 95 |
it in new free programs; and that you are informed that you can do |
|---|
| 96 |
|
|---|
| 97 |
these things. |
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
To protect your rights, we need to make restrictions that forbid |
|---|
| 102 |
|
|---|
| 103 |
distributors to deny you these rights or to ask you to surrender these |
|---|
| 104 |
|
|---|
| 105 |
rights. These restrictions translate to certain responsibilities for |
|---|
| 106 |
|
|---|
| 107 |
you if you distribute copies of the library or if you modify it. |
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
For example, if you distribute copies of the library, whether gratis |
|---|
| 112 |
|
|---|
| 113 |
or for a fee, you must give the recipients all the rights that we gave |
|---|
| 114 |
|
|---|
| 115 |
you. You must make sure that they, too, receive or can get the source |
|---|
| 116 |
|
|---|
| 117 |
code. If you link other code with the library, you must provide |
|---|
| 118 |
|
|---|
| 119 |
complete object files to the recipients, so that they can relink them |
|---|
| 120 |
|
|---|
| 121 |
with the library after making changes to the library and recompiling |
|---|
| 122 |
|
|---|
| 123 |
it. And you must show them these terms so they know their rights. |
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
We protect your rights with a two-step method: (1) we copyright the |
|---|
| 128 |
|
|---|
| 129 |
library, and (2) we offer you this license, which gives you legal |
|---|
| 130 |
|
|---|
| 131 |
permission to copy, distribute and/or modify the library. |
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 |
To protect each distributor, we want to make it very clear that |
|---|
| 136 |
|
|---|
| 137 |
there is no warranty for the free library. Also, if the library is |
|---|
| 138 |
|
|---|
| 139 |
modified by someone else and passed on, the recipients should know |
|---|
| 140 |
|
|---|
| 141 |
that what they have is not the original version, so that the original |
|---|
| 142 |
|
|---|
| 143 |
author's reputation will not be affected by problems that might be |
|---|
| 144 |
|
|---|
| 145 |
introduced by others. |
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| 149 |
Finally, software patents pose a constant threat to the existence of |
|---|
| 150 |
|
|---|
| 151 |
any free program. We wish to make sure that a company cannot |
|---|
| 152 |
|
|---|
| 153 |
effectively restrict the users of a free program by obtaining a |
|---|
| 154 |
|
|---|
| 155 |
restrictive license from a patent holder. Therefore, we insist that |
|---|
| 156 |
|
|---|
| 157 |
any patent license obtained for a version of the library must be |
|---|
| 158 |
|
|---|
| 159 |
consistent with the full freedom of use specified in this license. |
|---|
| 160 |
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
Most GNU software, including some libraries, is covered by the |
|---|
| 164 |
|
|---|
| 165 |
ordinary GNU General Public License. This license, the GNU Lesser |
|---|
| 166 |
|
|---|
| 167 |
General Public License, applies to certain designated libraries, and |
|---|
| 168 |
|
|---|
| 169 |
is quite different from the ordinary General Public License. We use |
|---|
| 170 |
|
|---|
| 171 |
this license for certain libraries in order to permit linking those |
|---|
| 172 |
|
|---|
| 173 |
libraries into non-free programs. |
|---|
| 174 |
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| 177 |
When a program is linked with a library, whether statically or using |
|---|
| 178 |
|
|---|
| 179 |
a shared library, the combination of the two is legally speaking a |
|---|
| 180 |
|
|---|
| 181 |
combined work, a derivative of the original library. The ordinary |
|---|
| 182 |
|
|---|
| 183 |
General Public License therefore permits such linking only if the |
|---|
| 184 |
|
|---|
| 185 |
entire combination fits its criteria of freedom. The Lesser General |
|---|
| 186 |
|
|---|
| 187 |
Public License permits more lax criteria for linking other code with |
|---|
| 188 |
|
|---|
| 189 |
the library. |
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
We call this license the "Lesser" General Public License because it |
|---|
| 194 |
|
|---|
| 195 |
does Less to protect the user's freedom than the ordinary General |
|---|
| 196 |
|
|---|
| 197 |
Public License. It also provides other free software developers Less |
|---|
| 198 |
|
|---|
| 199 |
of an advantage over competing non-free programs. These disadvantages |
|---|
| 200 |
|
|---|
| 201 |
are the reason we use the ordinary General Public License for many |
|---|
| 202 |
|
|---|
| 203 |
libraries. However, the Lesser license provides advantages in certain |
|---|
| 204 |
|
|---|
| 205 |
special circumstances. |
|---|
| 206 |
|
|---|
| 207 |
|
|---|
| 208 |
|
|---|
| 209 |
For example, on rare occasions, there may be a special need to |
|---|
| 210 |
|
|---|
| 211 |
encourage the widest possible use of a certain library, so that it |
|---|
| 212 |
|
|---|
| 213 |
becomes a de-facto standard. To achieve this, non-free programs must be |
|---|
| 214 |
|
|---|
| 215 |
allowed to use the library. A more frequent case is that a free |
|---|
| 216 |
|
|---|
| 217 |
library does the same job as widely used non-free libraries. In this |
|---|
| 218 |
|
|---|
| 219 |
case, there is little to gain by limiting the free library to free |
|---|
| 220 |
|
|---|
| 221 |
software only, so we use the Lesser General Public License. |
|---|
| 222 |
|
|---|
| 223 |
|
|---|
| 224 |
|
|---|
| 225 |
In other cases, permission to use a particular library in non-free |
|---|
| 226 |
|
|---|
| 227 |
programs enables a greater number of people to use a large body of |
|---|
| 228 |
|
|---|
| 229 |
free software. For example, permission to use the GNU C Library in |
|---|
| 230 |
|
|---|
| 231 |
non-free programs enables many more people to use the whole GNU |
|---|
| 232 |
|
|---|
| 233 |
operating system, as well as its variant, the GNU/Linux operating |
|---|
| 234 |
|
|---|
| 235 |
system. |
|---|
| 236 |
|
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 |
Although the Lesser General Public License is Less protective of the |
|---|
| 240 |
|
|---|
| 241 |
users' freedom, it does ensure that the user of a program that is |
|---|
| 242 |
|
|---|
| 243 |
linked with the Library has the freedom and the wherewithal to run |
|---|
| 244 |
|
|---|
| 245 |
that program using a modified version of the Library. |
|---|
| 246 |
|
|---|
| 247 |
|
|---|
| 248 |
|
|---|
| 249 |
The precise terms and conditions for copying, distribution and |
|---|
| 250 |
|
|---|
| 251 |
modification follow. Pay close attention to the difference between a |
|---|
| 252 |
|
|---|
| 253 |
"work based on the library" and a "work that uses the library". The |
|---|
| 254 |
|
|---|
| 255 |
former contains code derived from the library, whereas the latter must |
|---|
| 256 |
|
|---|
| 257 |
be combined with the library in order to run. |
|---|
| 258 |
|
|---|
| 259 |
|
|---|
| 260 |
|
|---|
| 261 |
GNU LESSER GENERAL PUBLIC LICENSE |
|---|
| 262 |
|
|---|
| 263 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|---|
| 264 |
|
|---|
| 265 |
|
|---|
| 266 |
|
|---|
| 267 |
0. This License Agreement applies to any software library or other |
|---|
| 268 |
|
|---|
| 269 |
program which contains a notice placed by the copyright holder or |
|---|
| 270 |
|
|---|
| 271 |
other authorized party saying it may be distributed under the terms of |
|---|
| 272 |
|
|---|
| 273 |
this Lesser General Public License (also called "this License"). |
|---|
| 274 |
|
|---|
| 275 |
Each licensee is addressed as "you". |
|---|
| 276 |
|
|---|
| 277 |
|
|---|
| 278 |
|
|---|
| 279 |
A "library" means a collection of software functions and/or data |
|---|
| 280 |
|
|---|
| 281 |
prepared so as to be conveniently linked with application programs |
|---|
| 282 |
|
|---|
| 283 |
(which use some of those functions and data) to form executables. |
|---|
| 284 |
|
|---|
| 285 |
|
|---|
| 286 |
|
|---|
| 287 |
The "Library", below, refers to any such software library or work |
|---|
| 288 |
|
|---|
| 289 |
which has been distributed under these terms. A "work based on the |
|---|
| 290 |
|
|---|
| 291 |
Library" means either the Library or any derivative work under |
|---|
| 292 |
|
|---|
| 293 |
copyright law: that is to say, a work containing the Library or a |
|---|
| 294 |
|
|---|
| 295 |
portion of it, either verbatim or with modifications and/or translated |
|---|
| 296 |
|
|---|
| 297 |
straightforwardly into another language. (Hereinafter, translation is |
|---|
| 298 |
|
|---|
| 299 |
included without limitation in the term "modification".) |
|---|
| 300 |
|
|---|
| 301 |
|
|---|
| 302 |
|
|---|
| 303 |
"Source code" for a work means the preferred form of the work for |
|---|
| 304 |
|
|---|
| 305 |
making modifications to it. For a library, complete source code means |
|---|
| 306 |
|
|---|
| 307 |
all the source code for all modules it contains, plus any associated |
|---|
| 308 |
|
|---|
| 309 |
interface definition files, plus the scripts used to control compilation |
|---|
| 310 |
|
|---|
| 311 |
and installation of the library. |
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 |
|
|---|
| 315 |
Activities other than copying, distribution and modification are not |
|---|
| 316 |
|
|---|
| 317 |
covered by this License; they are outside its scope. The act of |
|---|
| 318 |
|
|---|
| 319 |
running a program using the Library is not restricted, and output from |
|---|
| 320 |
|
|---|
| 321 |
such a program is covered only if its contents constitute a work based |
|---|
| 322 |
|
|---|
| 323 |
on the Library (independent of the use of the Library in a tool for |
|---|
| 324 |
|
|---|
| 325 |
writing it). Whether that is true depends on what the Library does |
|---|
| 326 |
|
|---|
| 327 |
and what the program that uses the Library does. |
|---|
| 328 |
|
|---|
| 329 |
|
|---|
| 330 |
|
|---|
| 331 |
1. You may copy and distribute verbatim copies of the Library's |
|---|
| 332 |
|
|---|
| 333 |
complete source code as you receive it, in any medium, provided that |
|---|
| 334 |
|
|---|
| 335 |
you conspicuously and appropriately publish on each copy an |
|---|
| 336 |
|
|---|
| 337 |
appropriate copyright notice and disclaimer of warranty; keep intact |
|---|
| 338 |
|
|---|
| 339 |
all the notices that refer to this License and to the absence of any |
|---|
| 340 |
|
|---|
| 341 |
warranty; and distribute a copy of this License along with the |
|---|
| 342 |
|
|---|
| 343 |
Library. |
|---|
| 344 |
|
|---|
| 345 |
|
|---|
| 346 |
|
|---|
| 347 |
You may charge a fee for the physical act of transferring a copy, |
|---|
| 348 |
|
|---|
| 349 |
and you may at your option offer warranty protection in exchange for a |
|---|
| 350 |
|
|---|
| 351 |
fee. |
|---|
| 352 |
|
|---|
| 353 |
|
|---|
| 354 |
|
|---|
| 355 |
2. You may modify your copy or copies of the Library or any portion |
|---|
| 356 |
|
|---|
| 357 |
of it, thus forming a work based on the Library, and copy and |
|---|
| 358 |
|
|---|
| 359 |
distribute such modifications or work under the terms of Section 1 |
|---|
| 360 |
|
|---|
| 361 |
above, provided that you also meet all of these conditions: |
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 |
|
|---|
| 365 |
a) The modified work must itself be a software library. |
|---|
| 366 |
|
|---|
| 367 |
|
|---|
| 368 |
|
|---|
| 369 |
b) You must cause the files modified to carry prominent notices |
|---|
| 370 |
|
|---|
| 371 |
stating that you changed the files and the date of any change. |
|---|
| 372 |
|
|---|
| 373 |
|
|---|
| 374 |
|
|---|
| 375 |
c) You must cause the whole of the work to be licensed at no |
|---|
| 376 |
|
|---|
| 377 |
charge to all third parties under the terms of this License. |
|---|
| 378 |
|
|---|
| 379 |
|
|---|
| 380 |
|
|---|
| 381 |
d) If a facility in the modified Library refers to a function or a |
|---|
| 382 |
|
|---|
| 383 |
table of data to be supplied by an application program that uses |
|---|
| 384 |
|
|---|
| 385 |
the facility, other than as an argument passed when the facility |
|---|
| 386 |
|
|---|
| 387 |
is invoked, then you must make a good faith effort to ensure that, |
|---|
| 388 |
|
|---|
| 389 |
in the event an application does not supply such function or |
|---|
| 390 |
|
|---|
| 391 |
table, the facility still operates, and performs whatever part of |
|---|
| 392 |
|
|---|
| 393 |
its purpose remains meaningful. |
|---|
| 394 |
|
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
(For example, a function in a library to compute square roots has |
|---|
| 398 |
|
|---|
| 399 |
a purpose that is entirely well-defined independent of the |
|---|
| 400 |
|
|---|
| 401 |
application. Therefore, Subsection 2d requires that any |
|---|
| 402 |
|
|---|
| 403 |
application-supplied function or table used by this function must |
|---|
| 404 |
|
|---|
| 405 |
be optional: if the application does not supply it, the square |
|---|
| 406 |
|
|---|
| 407 |
root function must still compute square roots.) |
|---|
| 408 |
|
|---|
| 409 |
|
|---|
| 410 |
|
|---|
| 411 |
These requirements apply to the modified work as a whole. If |
|---|
| 412 |
|
|---|
| 413 |
identifiable sections of that work are not derived from the Library, |
|---|
| 414 |
|
|---|
| 415 |
and can be reasonably considered independent and separate works in |
|---|
| 416 |
|
|---|
| 417 |
themselves, then this License, and its terms, do not apply to those |
|---|
| 418 |
|
|---|
| 419 |
sections when you distribute them as separate works. But when you |
|---|
| 420 |
|
|---|
| 421 |
distribute the same sections as part of a whole which is a work based |
|---|
| 422 |
|
|---|
| 423 |
on the Library, the distribution of the whole must be on the terms of |
|---|
| 424 |
|
|---|
| 425 |
this License, whose permissions for other licensees extend to the |
|---|
| 426 |
|
|---|
| 427 |
entire whole, and thus to each and every part regardless of who wrote |
|---|
| 428 |
|
|---|
| 429 |
it. |
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 |
|
|---|
| 433 |
Thus, it is not the intent of this section to claim rights or contest |
|---|
| 434 |
|
|---|
| 435 |
your rights to work written entirely by you; rather, the intent is to |
|---|
| 436 |
|
|---|
| 437 |
exercise the right to control the distribution of derivative or |
|---|
| 438 |
|
|---|
| 439 |
collective works based on the Library. |
|---|
| 440 |
|
|---|
| 441 |
|
|---|
| 442 |
|
|---|
| 443 |
In addition, mere aggregation of another work not based on the Library |
|---|
| 444 |
|
|---|
| 445 |
with the Library (or with a work based on the Library) on a volume of |
|---|
| 446 |
|
|---|
| 447 |
a storage or distribution medium does not bring the other work under |
|---|
| 448 |
|
|---|
| 449 |
the scope of this License. |
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 |
|
|---|
| 453 |
3. You may opt to apply the terms of the ordinary GNU General Public |
|---|
| 454 |
|
|---|
| 455 |
License instead of this License to a given copy of the Library. To do |
|---|
| 456 |
|
|---|
| 457 |
this, you must alter all the notices that refer to this License, so |
|---|
| 458 |
|
|---|
| 459 |
that they refer to the ordinary GNU General Public License, version 2, |
|---|
| 460 |
|
|---|
| 461 |
instead of to this License. (If a newer version than version 2 of the |
|---|
| 462 |
|
|---|
| 463 |
ordinary GNU General Public License has appeared, then you can specify |
|---|
| 464 |
|
|---|
| 465 |
that version instead if you wish.) Do not make any other change in |
|---|
| 466 |
|
|---|
| 467 |
these notices. |
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 |
|
|---|
| 471 |
Once this change is made in a given copy, it is irreversible for |
|---|
| 472 |
|
|---|
| 473 |
that copy, so the ordinary GNU General Public License applies to all |
|---|
| 474 |
|
|---|
| 475 |
subsequent copies and derivative works made from that copy. |
|---|
| 476 |
|
|---|
| 477 |
|
|---|
| 478 |
|
|---|
| 479 |
This option is useful when you wish to copy part of the code of |
|---|
| 480 |
|
|---|
| 481 |
the Library into a program that is not a library. |
|---|
| 482 |
|
|---|
| 483 |
|
|---|
| 484 |
|
|---|
| 485 |
4. You may copy and distribute the Library (or a portion or |
|---|
| 486 |
|
|---|
| 487 |
derivative of it, under Section 2) in object code or executable form |
|---|
| 488 |
|
|---|
| 489 |
under the terms of Sections 1 and 2 above provided that you accompany |
|---|
| 490 |
|
|---|
| 491 |
it with the complete corresponding machine-readable source code, which |
|---|
| 492 |
|
|---|
| 493 |
must be distributed under the terms of Sections 1 and 2 above on a |
|---|
| 494 |
|
|---|
| 495 |
medium customarily used for software interchange. |
|---|
| 496 |
|
|---|
| 497 |
|
|---|
| 498 |
|
|---|
| 499 |
If distribution of object code is made by offering access to copy |
|---|
| 500 |
|
|---|
| 501 |
from a designated place, then offering equivalent access to copy the |
|---|
| 502 |
|
|---|
| 503 |
source code from the same place satisfies the requirement to |
|---|
| 504 |
|
|---|
| 505 |
distribute the source code, even though third parties are not |
|---|
| 506 |
|
|---|
| 507 |
compelled to copy the source along with the object code. |
|---|
| 508 |
|
|---|
| 509 |
|
|---|
| 510 |
|
|---|
| 511 |
5. A program that contains no derivative of any portion of the |
|---|
| 512 |
|
|---|
| 513 |
Library, but is designed to work with the Library by being compiled or |
|---|
| 514 |
|
|---|
| 515 |
linked with it, is called a "work that uses the Library". Such a |
|---|
| 516 |
|
|---|
| 517 |
work, in isolation, is not a derivative work of the Library, and |
|---|
| 518 |
|
|---|
| 519 |
therefore falls outside the scope of this License. |
|---|
| 520 |
|
|---|
| 521 |
|
|---|
| 522 |
|
|---|
| 523 |
However, linking a "work that uses the Library" with the Library |
|---|
| 524 |
|
|---|
| 525 |
creates an executable that is a derivative of the Library (because it |
|---|
| 526 |
|
|---|
| 527 |
contains portions of the Library), rather than a "work that uses the |
|---|
| 528 |
|
|---|
| 529 |
library". The executable is therefore covered by this License. |
|---|
| 530 |
|
|---|
| 531 |
Section 6 states terms for distribution of such executables. |
|---|
| 532 |
|
|---|
| 533 |
|
|---|
| 534 |
|
|---|
| 535 |
When a "work that uses the Library" uses material from a header file |
|---|
| 536 |
|
|---|
| 537 |
that is part of the Library, the object code for the work may be a |
|---|
| 538 |
|
|---|
| 539 |
derivative work of the Library even though the source code is not. |
|---|
| 540 |
|
|---|
| 541 |
Whether this is true is especially significant if the work can be |
|---|
| 542 |
|
|---|
| 543 |
linked without the Library, or if the work is itself a library. The |
|---|
| 544 |
|
|---|
| 545 |
threshold for this to be true is not precisely defined by law. |
|---|
| 546 |
|
|---|
| 547 |
|
|---|
| 548 |
|
|---|
| 549 |
If such an object file uses only numerical parameters, data |
|---|
| 550 |
|
|---|
| 551 |
structure layouts and accessors, and small macros and small inline |
|---|
| 552 |
|
|---|
| 553 |
functions (ten lines or less in length), then the use of the object |
|---|
| 554 |
|
|---|
| 555 |
file is unrestricted, regardless of whether it is legally a derivative |
|---|
| 556 |
|
|---|
| 557 |
work. (Executables containing this object code plus portions of the |
|---|
| 558 |
|
|---|
| 559 |
Library will still fall under Section 6.) |
|---|
| 560 |
|
|---|
| 561 |
|
|---|
| 562 |
|
|---|
| 563 |
Otherwise, if the work is a derivative of the Library, you may |
|---|
| 564 |
|
|---|
| 565 |
distribute the object code for the work under the terms of Section 6. |
|---|
| 566 |
|
|---|
| 567 |
Any executables containing that work also fall under Section 6, |
|---|
| 568 |
|
|---|
| 569 |
whether or not they are linked directly with the Library itself. |
|---|
| 570 |
|
|---|
| 571 |
|
|---|
| 572 |
|
|---|
| 573 |
6. As an exception to the Sections above, you may also combine or |
|---|
| 574 |
|
|---|
| 575 |
link a "work that uses the Library" with the Library to produce a |
|---|
| 576 |
|
|---|
| 577 |
work containing portions of the Library, and distribute that work |
|---|
| 578 |
|
|---|
| 579 |
under terms of your choice, provided that the terms permit |
|---|
| 580 |
|
|---|
| 581 |
modification of the work for the customer's own use and reverse |
|---|
| 582 |
|
|---|
| 583 |
engineering for debugging such modifications. |
|---|
| 584 |
|
|---|
| 585 |
|
|---|
| 586 |
|
|---|
| 587 |
You must give prominent notice with each copy of the work that the |
|---|
| 588 |
|
|---|
| 589 |
Library is used in it and that the Library and its use are covered by |
|---|
| 590 |
|
|---|
| 591 |
this License. You must supply a copy of this License. If the work |
|---|
| 592 |
|
|---|
| 593 |
during execution displays copyright notices, you must include the |
|---|
| 594 |
|
|---|
| 595 |
copyright notice for the Library among them, as well as a reference |
|---|
| 596 |
|
|---|
| 597 |
directing the user to the copy of this License. Also, you must do one |
|---|
| 598 |
|
|---|
| 599 |
of these things: |
|---|
| 600 |
|
|---|
| 601 |
|
|---|
| 602 |
|
|---|
| 603 |
a) Accompany the work with the complete corresponding |
|---|
| 604 |
|
|---|
| 605 |
machine-readable source code for the Library including whatever |
|---|
| 606 |
|
|---|
| 607 |
changes were used in the work (which must be distributed under |
|---|
| 608 |
|
|---|
| 609 |
Sections 1 and 2 above); and, if the work is an executable linked |
|---|
| 610 |
|
|---|
| 611 |
with the Library, with the complete machine-readable "work that |
|---|
| 612 |
|
|---|
| 613 |
uses the Library", as object code and/or source code, so that the |
|---|
| 614 |
|
|---|
| 615 |
user can modify the Library and then relink to produce a modified |
|---|
| 616 |
|
|---|
| 617 |
executable containing the modified Library. (It is understood |
|---|
| 618 |
|
|---|
| 619 |
that the user who changes the contents of definitions files in the |
|---|
| 620 |
|
|---|
| 621 |
Library will not necessarily be able to recompile the application |
|---|
| 622 |
|
|---|
| 623 |
to use the modified definitions.) |
|---|
| 624 |
|
|---|
| 625 |
|
|---|
| 626 |
|
|---|
| 627 |
b) Use a suitable shared library mechanism for linking with the |
|---|
| 628 |
|
|---|
| 629 |
Library. A suitable mechanism is one that (1) uses at run time a |
|---|
| 630 |
|
|---|
| 631 |
copy of the library already present on the user's computer system, |
|---|
| 632 |
|
|---|
| 633 |
rather than copying library functions into the executable, and (2) |
|---|
| 634 |
|
|---|
| 635 |
will operate properly with a modified version of the library, if |
|---|
| 636 |
|
|---|
| 637 |
the user installs one, as long as the modified version is |
|---|
| 638 |
|
|---|
| 639 |
interface-compatible with the version that the work was made with. |
|---|
| 640 |
|
|---|
| 641 |
|
|---|
| 642 |
|
|---|
| 643 |
c) Accompany the work with a written offer, valid for at |
|---|
| 644 |
|
|---|
| 645 |
least three years, to give the same user the materials |
|---|
| 646 |
|
|---|
| 647 |
specified in Subsection 6a, above, for a charge no more |
|---|
| 648 |
|
|---|
| 649 |
than the cost of performing this distribution. |
|---|
| 650 |
|
|---|
| 651 |
|
|---|
| 652 |
|
|---|
| 653 |
d) If distribution of the work is made by offering access to copy |
|---|
| 654 |
|
|---|
| 655 |
from a designated place, offer equivalent access to copy the above |
|---|
| 656 |
|
|---|
| 657 |
specified materials from the same place. |
|---|
| 658 |
|
|---|
| 659 |
|
|---|
| 660 |
|
|---|
| 661 |
e) Verify that the user has already received a copy of these |
|---|
| 662 |
|
|---|
| 663 |
materials or that you have already sent this user a copy. |
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 |
For an executable, the required form of the "work that uses the |
|---|
| 668 |
|
|---|
| 669 |
Library" must include any data and utility programs needed for |
|---|
| 670 |
|
|---|
| 671 |
reproducing the executable from it. However, as a special exception, |
|---|
| 672 |
|
|---|
| 673 |
the materials to be distributed need not include anything that is |
|---|
| 674 |
|
|---|
| 675 |
normally distributed (in either source or binary form) with the major |
|---|
| 676 |
|
|---|
| 677 |
components (compiler, kernel, and so on) of the operating system on |
|---|
| 678 |
|
|---|
| 679 |
which the executable runs, unless that component itself accompanies |
|---|
| 680 |
|
|---|
| 681 |
the executable. |
|---|
| 682 |
|
|---|
| 683 |
|
|---|
| 684 |
|
|---|
| 685 |
It may happen that this requirement contradicts the license |
|---|
| 686 |
|
|---|
| 687 |
restrictions of other proprietary libraries that do not normally |
|---|
| 688 |
|
|---|
| 689 |
accompany the operating system. Such a contradiction means you cannot |
|---|
| 690 |
|
|---|
| 691 |
use both them and the Library together in an executable that you |
|---|
| 692 |
|
|---|
| 693 |
distribute. |
|---|
| 694 |
|
|---|
| 695 |
|
|---|
| 696 |
|
|---|
| 697 |
7. You may place library facilities that are a work based on the |
|---|
| 698 |
|
|---|
| 699 |
Library side-by-side in a single library together with other library |
|---|
| 700 |
|
|---|
| 701 |
facilities not covered by this License, and distribute such a combined |
|---|
| 702 |
|
|---|
| 703 |
library, provided that the separate distribution of the work based on |
|---|
| 704 |
|
|---|
| 705 |
the Library and of the other library facilities is otherwise |
|---|
| 706 |
|
|---|
| 707 |
permitted, and provided that you do these two things: |
|---|
| 708 |
|
|---|
| 709 |
|
|---|
| 710 |
|
|---|
| 711 |
a) Accompany the combined library with a copy of the same work |
|---|
| 712 |
|
|---|
| 713 |
based on the Library, uncombined with any other library |
|---|
| 714 |
|
|---|
| 715 |
facilities. This must be distributed under the terms of the |
|---|
| 716 |
|
|---|
| 717 |
Sections above. |
|---|
| 718 |
|
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 |
b) Give prominent notice with the combined library of the fact |
|---|
| 722 |
|
|---|
| 723 |
that part of it is a work based on the Library, and explaining |
|---|
| 724 |
|
|---|
| 725 |
where to find the accompanying uncombined form of the same work. |
|---|
| 726 |
|
|---|
| 727 |
|
|---|
| 728 |
|
|---|
| 729 |
8. You may not copy, modify, sublicense, link with, or distribute |
|---|
| 730 |
|
|---|
| 731 |
the Library except as expressly provided under this License. Any |
|---|
| 732 |
|
|---|
| 733 |
attempt otherwise to copy, modify, sublicense, link with, or |
|---|
| 734 |
|
|---|
| 735 |
distribute the Library is void, and will automatically terminate your |
|---|
| 736 |
|
|---|
| 737 |
rights under this License. However, parties who have received copies, |
|---|
| 738 |
|
|---|
| 739 |
or rights, from you under this License will not have their licenses |
|---|
| 740 |
|
|---|
| 741 |
terminated so long as such parties remain in full compliance. |
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 |
|
|---|
| 745 |
9. You are not required to accept this License, since you have not |
|---|
| 746 |
|
|---|
| 747 |
signed it. However, nothing else grants you permission to modify or |
|---|
| 748 |
|
|---|
| 749 |
distribute the Library or its derivative works. These actions are |
|---|
| 750 |
|
|---|
| 751 |
prohibited by law if you do not accept this License. Therefore, by |
|---|
| 752 |
|
|---|
| 753 |
modifying or distributing the Library (or any work based on the |
|---|
| 754 |
|
|---|
| 755 |
Library), you indicate your acceptance of this License to do so, and |
|---|
| 756 |
|
|---|
| 757 |
all its terms and conditions for copying, distributing or modifying |
|---|
| 758 |
|
|---|
| 759 |
the Library or works based on it. |
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 |
|
|---|
| 763 |
10. Each time you redistribute the Library (or any work based on the |
|---|
| 764 |
|
|---|
| 765 |
Library), the recipient automatically receives a license from the |
|---|
| 766 |
|
|---|
| 767 |
original licensor to copy, distribute, link with or modify the Library |
|---|
| 768 |
|
|---|
| 769 |
subject to these terms and conditions. You may not impose any further |
|---|
| 770 |
|
|---|
| 771 |
restrictions on the recipients' exercise of the rights granted herein. |
|---|
| 772 |
|
|---|
| 773 |
You are not responsible for enforcing compliance by third parties with |
|---|
| 774 |
|
|---|
| 775 |
this License. |
|---|
| 776 |
|
|---|
| 777 |
|
|---|
| 778 |
|
|---|
| 779 |
11. If, as a consequence of a court judgment or allegation of patent |
|---|
| 780 |
|
|---|
| 781 |
infringement or for any other reason (not limited to patent issues), |
|---|
| 782 |
|
|---|
| 783 |
conditions are imposed on you (whether by court order, agreement or |
|---|
| 784 |
|
|---|
| 785 |
otherwise) that contradict the conditions of this License, they do not |
|---|
| 786 |
|
|---|
| 787 |
excuse you from the conditions of this License. If you cannot |
|---|
| 788 |
|
|---|
| 789 |
distribute so as to satisfy simultaneously your obligations under this |
|---|
| 790 |
|
|---|
| 791 |
License and any other pertinent obligations, then as a consequence you |
|---|
| 792 |
|
|---|
| 793 |
may not distribute the Library at all. For example, if a patent |
|---|
| 794 |
|
|---|
| 795 |
license would not permit royalty-free redistribution of the Library by |
|---|
| 796 |
|
|---|
| 797 |
all those who receive copies directly or indirectly through you, then |
|---|
| 798 |
|
|---|
| 799 |
the only way you could satisfy both it and this License would be to |
|---|
| 800 |
|
|---|
| 801 |
refrain entirely from distribution of the Library. |
|---|
| 802 |
|
|---|
| 803 |
|
|---|
| 804 |
|
|---|
| 805 |
If any portion of this section is held invalid or unenforceable under any |
|---|
| 806 |
|
|---|
| 807 |
particular circumstance, the balance of the section is intended to apply, |
|---|
| 808 |
|
|---|
| 809 |
and the section as a whole is intended to apply in other circumstances. |
|---|
| 810 |
|
|---|
| 811 |
|
|---|
| 812 |
|
|---|
| 813 |
It is not the purpose of this section to induce you to infringe any |
|---|
| 814 |
|
|---|
| 815 |
patents or other property right claims or to contest validity of any |
|---|
| 816 |
|
|---|
| 817 |
such claims; this section has the sole purpose of protecting the |
|---|
| 818 |
|
|---|
| 819 |
integrity of the free software distribution system which is |
|---|
| 820 |
|
|---|
| 821 |
implemented by public license practices. Many people have made |
|---|
| 822 |
|
|---|
| 823 |
generous contributions to the wide range of software distributed |
|---|
| 824 |
|
|---|
| 825 |
through that system in reliance on consistent application of that |
|---|
| 826 |
|
|---|
| 827 |
system; it is up to the author/donor to decide if he or she is willing |
|---|
| 828 |
|
|---|
| 829 |
to distribute software through any other system and a licensee cannot |
|---|
| 830 |
|
|---|
| 831 |
impose that choice. |
|---|
| 832 |
|
|---|
| 833 |
|
|---|
| 834 |
|
|---|
| 835 |
This section is intended to make thoroughly clear what is believed to |
|---|
| 836 |
|
|---|
| 837 |
be a consequence of the rest of this License. |
|---|
| 838 |
|
|---|
| 839 |
|
|---|
| 840 |
|
|---|
| 841 |
12. If the distribution and/or use of the Library is restricted in |
|---|
| 842 |
|
|---|
| 843 |
certain countries either by patents or by copyrighted interfaces, the |
|---|
| 844 |
|
|---|
| 845 |
original copyright holder who places the Library under this License may |
|---|
| 846 |
|
|---|
| 847 |
add an explicit geographical distribution limitation excluding those |
|---|
| 848 |
|
|---|
| 849 |
countries, so that distribution is permitted only in or among countries |
|---|
| 850 |
|
|---|
| 851 |
not thus excluded. In such case, this License incorporates the |
|---|
| 852 |
|
|---|
| 853 |
limitation as if written in the body of this License. |
|---|
| 854 |
|
|---|
| 855 |
|
|---|
| 856 |
|
|---|
| 857 |
13. The Free Software Foundation may publish revised and/or new |
|---|
| 858 |
|
|---|
| 859 |
versions of the Lesser General Public License from time to time. |
|---|
| 860 |
|
|---|
| 861 |
Such new versions will be similar in spirit to the present version, |
|---|
| 862 |
|
|---|
| 863 |
but may differ in detail to address new problems or concerns. |
|---|
| 864 |
|
|---|
| 865 |
|
|---|
| 866 |
|
|---|
| 867 |
Each version is given a distinguishing version number. If the Library |
|---|
| 868 |
|
|---|
| 869 |
specifies a version number of this License which applies to it and |
|---|
| 870 |
|
|---|
| 871 |
"any later version", you have the option of following the terms and |
|---|
| 872 |
|
|---|
| 873 |
conditions either of that version or of any later version published by |
|---|
| 874 |
|
|---|
| 875 |
the Free Software Foundation. If the Library does not specify a |
|---|
| 876 |
|
|---|
| 877 |
license version number, you may choose any version ever published by |
|---|
| 878 |
|
|---|
| 879 |
the Free Software Foundation. |
|---|
| 880 |
|
|---|
| 881 |
|
|---|
| 882 |
|
|---|
| 883 |
14. If you wish to incorporate parts of the Library into other free |
|---|
| 884 |
|
|---|
| 885 |
programs whose distribution conditions are incompatible with these, |
|---|
| 886 |
|
|---|
| 887 |
write to the author to ask for permission. For software which is |
|---|
| 888 |
|
|---|
| 889 |
copyrighted by the Free Software Foundation, write to the Free |
|---|
| 890 |
|
|---|
| 891 |
Software Foundation; we sometimes make exceptions for this. Our |
|---|
| 892 |
|
|---|
| 893 |
decision will be guided by the two goals of preserving the free status |
|---|
| 894 |
|
|---|
| 895 |
of all derivatives of our free software and of promoting the sharing |
|---|
| 896 |
|
|---|
| 897 |
and reuse of software generally. |
|---|
| 898 |
|
|---|
| 899 |
|
|---|
| 900 |
|
|---|
| 901 |
NO WARRANTY |
|---|
| 902 |
|
|---|
| 903 |
|
|---|
| 904 |
|
|---|
| 905 |
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
|---|
| 906 |
|
|---|
| 907 |
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
|---|
| 908 |
|
|---|
| 909 |
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
|---|
| 910 |
|
|---|
| 911 |
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |
|---|
| 912 |
|
|---|
| 913 |
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
|---|
| 914 |
|
|---|
| 915 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|---|
| 916 |
|
|---|
| 917 |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
|---|
| 918 |
|
|---|
| 919 |
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |
|---|
| 920 |
|
|---|
| 921 |
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|---|
| 922 |
|
|---|
| 923 |
|
|---|
| 924 |
|
|---|
| 925 |
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN |
|---|
| 926 |
|
|---|
| 927 |
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY |
|---|
| 928 |
|
|---|
| 929 |
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU |
|---|
| 930 |
|
|---|
| 931 |
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR |
|---|
| 932 |
|
|---|
| 933 |
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |
|---|
| 934 |
|
|---|
| 935 |
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
|---|
| 936 |
|
|---|
| 937 |
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
|---|
| 938 |
|
|---|
| 939 |
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
|---|
| 940 |
|
|---|
| 941 |
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
|---|
| 942 |
|
|---|
| 943 |
DAMAGES. |
|---|
| 944 |
|
|---|
| 945 |
|
|---|
| 946 |
|
|---|
| 947 |
END OF TERMS AND CONDITIONS |
|---|
| 948 |
|
|---|
| 949 |
|
|---|
| 950 |
|
|---|
| 951 |
How to Apply These Terms to Your New Libraries |
|---|
| 952 |
|
|---|
| 953 |
|
|---|
| 954 |
|
|---|
| 955 |
If you develop a new library, and you want it to be of the greatest |
|---|
| 956 |
|
|---|
| 957 |
possible use to the public, we recommend making it free software that |
|---|
| 958 |
|
|---|
| 959 |
everyone can redistribute and change. You can do so by permitting |
|---|
| 960 |
|
|---|
| 961 |
redistribution under these terms (or, alternatively, under the terms of the |
|---|
| 962 |
|
|---|
| 963 |
ordinary General Public License). |
|---|
| 964 |
|
|---|
| 965 |
|
|---|
| 966 |
|
|---|
| 967 |
To apply these terms, attach the following notices to the library. It is |
|---|
| 968 |
|
|---|
| 969 |
safest to attach them to the start of each source file to most effectively |
|---|
| 970 |
|
|---|
| 971 |
convey the exclusion of warranty; and each file should have at least the |
|---|
| 972 |
|
|---|
| 973 |
"copyright" line and a pointer to where the full notice is found. |
|---|
| 974 |
|
|---|
| 975 |
|
|---|
| 976 |
|
|---|
| 977 |
<one line to give the library's name and a brief idea of what it does.> |
|---|
| 978 |
|
|---|
| 979 |
Copyright (C) <year> <name of author> |
|---|
| 980 |
|
|---|
| 981 |
|
|---|
| 982 |
|
|---|
| 983 |
This library is free software; you can redistribute it and/or |
|---|
| 984 |
|
|---|
| 985 |
modify it under the terms of the GNU Lesser General Public |
|---|
| 986 |
|
|---|
| 987 |
License as published by the Free Software Foundation; either |
|---|
| 988 |
|
|---|
| 989 |
version 2.1 of the License, or (at your option) any later version. |
|---|
| 990 |
|
|---|
| 991 |
|
|---|
| 992 |
|
|---|
| 993 |
This library is distributed in the hope that it will be useful, |
|---|
| 994 |
|
|---|
| 995 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 996 |
|
|---|
| 997 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 998 |
|
|---|
| 999 |
Lesser General Public License for more details. |
|---|
| 1000 |
|
|---|
| 1001 |
|
|---|
| 1002 |
|
|---|
| 1003 |
You should have received a copy of the GNU Lesser General Public |
|---|
| 1004 |
|
|---|
| 1005 |
License along with this library; if not, write to the Free Software |
|---|
| 1006 |
|
|---|
| 1007 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 1008 |
|
|---|
| 1009 |
|
|---|
| 1010 |
|
|---|
| 1011 |
Also add information on how to contact you by electronic and paper mail. |
|---|
| 1012 |
|
|---|
| 1013 |
|
|---|
| 1014 |
|
|---|
| 1015 |
You should also get your employer (if you work as a programmer) or your |
|---|
| 1016 |
|
|---|
| 1017 |
school, if any, to sign a "copyright disclaimer" for the library, if |
|---|
| 1018 |
|
|---|
| 1019 |
necessary. Here is a sample; alter the names: |
|---|
| 1020 |
|
|---|
| 1021 |
|
|---|
| 1022 |
|
|---|
| 1023 |
Yoyodyne, Inc., hereby disclaims all copyright interest in the |
|---|
| 1024 |
|
|---|
| 1025 |
library `Frob' (a library for tweaking knobs) written by James Random Hacker. |
|---|
| 1026 |
|
|---|
| 1027 |
|
|---|
| 1028 |
|
|---|
| 1029 |
<signature of Ty Coon>, 1 April 1990 |
|---|
| 1030 |
|
|---|
| 1031 |
Ty Coon, President of Vice |
|---|
| 1032 |
|
|---|
| 1033 |
|
|---|
| 1034 |
|
|---|
| 1035 |
That's all there is to it! |
|---|
| 1036 |
|
|---|
| 1037 |
|
|---|
| 1038 |
|
|---|
| 1039 |
--$Id$ |
|---|
| 1040 |
|
|---|
| 1041 |
|
|---|
| 1042 |
|
|---|