1 |
commit: 557319dfdd2e495af848d1803227941c2a4f82fd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 11 10:05:58 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 21 11:07:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/policy-guide.git/commit/?id=557319df |
7 |
|
8 |
other-metadata: LICENSE |
9 |
|
10 |
Closes: https://bugs.gentoo.org/709020 |
11 |
Closes: https://github.com/gentoo/policy-guide/pull/12 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
other-metadata.rst | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/other-metadata.rst b/other-metadata.rst |
18 |
index f05014b..14651cf 100644 |
19 |
--- a/other-metadata.rst |
20 |
+++ b/other-metadata.rst |
21 |
@@ -94,4 +94,53 @@ this circumstance, and they will not fail for users. |
22 |
common, and there is little harm in overspecifying it. |
23 |
|
24 |
|
25 |
+.. index:: license |
26 |
+ |
27 |
+LICENSE |
28 |
+------- |
29 |
+:Source: QA |
30 |
+:Reported: no |
31 |
+ |
32 |
+The ``LICENSE`` variable must explicitly list licenses for all files |
33 |
+installed by the package. If some of the applicable licenses are |
34 |
+conditional to USE flags, appropriate USE conditionals need to |
35 |
+be expressed in the variable. |
36 |
+ |
37 |
+If a package bundles any dependencies that are either installed, |
38 |
+statically linked or in any other way combined with installed files, |
39 |
+the licenses of these dependencies need to be listed as well. This |
40 |
+is not presently required when statically linking to dependencies |
41 |
+installed by separate packages in the repository. |
42 |
+ |
43 |
+The licenses for files that are not installed but that are used at build |
44 |
+time are not listed explicitly. |
45 |
+ |
46 |
+*Rationale*: the primary purpose of the license support in the package |
47 |
+manager is to provide the users with ability to decide on acceptable |
48 |
+licenses for their installed systems (and binary packages). In order |
49 |
+for this to work effectively, the packages must provide a correct |
50 |
+and complete license list. |
51 |
+ |
52 |
+Static linking combines code from multiple packages, potentially covered |
53 |
+by different licenses. Listing all licenses is the simplest way |
54 |
+of ensuring that nothing is missed, as well as protecting against wrong |
55 |
+derivative work licenses stated upstream (i.e. when a less restrictively |
56 |
+licensed package links to a more restrictively licensed dependency). |
57 |
+ |
58 |
+Listing of licenses is enforced for bundled dependencies but not for |
59 |
+static linking to other packages, as in the latter case it is |
60 |
+non-trivial to implement and the package manager already verifies |
61 |
+the license while building dependencies (but not when installing binary |
62 |
+packages). |
63 |
+ |
64 |
+The ebuild format does not provide a separate variable to list licenses |
65 |
+needed only at build time. So far it has not been considered important |
66 |
+enough to have one, as the relevant files exist only temporarily |
67 |
+on the user's system and do not affect the runtime use of packages. |
68 |
+ |
69 |
+.. Note:: |
70 |
+ Please remember to include the licenses of support files provided |
71 |
+ by the ebuild, e.g. init.d scripts (usually GPL-2). |
72 |
+ |
73 |
+ |
74 |
.. _metadata invariance: https://projects.gentoo.org/pms/7/pms.html#x1-600007.1 |