Update THANKS
[xz.git] / COPYING
blob7d81323993fa7bde4e4dbeb8f564fc2be427d132
2 XZ Utils Licensing
3 ==================
5     Different licenses apply to different files in this package. Here
6     is a summary of which licenses apply to which parts of this package:
8       - liblzma is under the BSD Zero Clause License (0BSD).
10       - The command line tools xz, xzdec, lzmadec, and lzmainfo are
11         under 0BSD except that, on systems that don't have a usable
12         getopt_long, GNU getopt_long is compiled and linked in from the
13         'lib' directory. The getopt_long code is under GNU LGPLv2.1+.
15       - The scripts to grep, diff, and view compressed files have been
16         adapted from GNU gzip. These scripts (xzgrep, xzdiff, xzless,
17         and xzmore) are under GNU GPLv2+. The man pages of the scripts
18         are under 0BSD; they aren't based on the man pages of GNU gzip.
20       - Most of the XZ Utils specific documentation that is in
21         plain text files (like README, INSTALL, PACKAGERS, NEWS,
22         and ChangeLog) are under 0BSD unless stated otherwise in
23         the file itself. The files xz-file-format.txt and
24         lzma-file-format.xt are in the public domain but may
25         be distributed under the terms of 0BSD too.
27       - Translated messages and man pages are under 0BSD except that
28         some old translations are in the public domain.
30       - Test files and test code in the 'tests' directory, and
31         debugging utilities in the 'debug' directory are under
32         the BSD Zero Clause License (0BSD).
34       - The GNU Autotools based build system contains files that are
35         under GNU GPLv2+, GNU GPLv3+, and a few permissive licenses.
36         These files don't affect the licensing of the binaries being
37         built.
39       - The 'extra' directory contains files that are under various
40         free software licenses. These aren't built or installed as
41         part of XZ Utils.
43     The following command may be helpful in finding per-file license
44     information. It works on xz.git and on a clean file tree extracted
45     from a release tarball.
47         sh build-aux/license-check.sh -v
49     For the files under the BSD Zero Clause License (0BSD), if
50     a copyright notice is needed, the following is sufficient:
52         Copyright (C) The XZ Utils authors and contributors
54     If you copy significant amounts of 0BSD-licensed code from XZ Utils
55     into your project, acknowledging this somewhere in your software is
56     polite (especially if it is proprietary, non-free software), but
57     it is not legally required by the license terms. Here is an example
58     of a good notice to put into "about box" or into documentation:
60         This software includes code from XZ Utils <https://tukaani.org/xz/>.
62     The following license texts are included in the following files:
63       - COPYING.0BSD: BSD Zero Clause License
64       - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
65       - COPYING.GPLv2: GNU General Public License version 2
66       - COPYING.GPLv3: GNU General Public License version 3
68     A note about old XZ Utils releases:
70         XZ Utils releases 5.4.6 and older and 5.5.1alpha have a
71         significant amount of code put into the public domain and
72         that obviously remains so. The switch from public domain to
73         0BSD for newer releases was made in Febrary 2024 because
74         public domain has (real or perceived) legal ambiguities in
75         some jurisdictions.
77         There is very little *practical* difference between public
78         domain and 0BSD. The main difference likely is that one
79         shouldn't claim that 0BSD-licensed code is in the public
80         domain; 0BSD-licensed code is copyrighted but available under
81         an extremely permissive license. Neither 0BSD nor public domain
82         require retaining or reproducing author, copyright holder, or
83         license notices when distributing the software. (Compare to,
84         for example, BSD 2-Clause "Simplified" License which does have
85         such requirements.)
87     If you have questions, don't hesitate to ask for more information.
88     The contact information is in the README file.