diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2021-10-06 10:42:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-08 22:01:25 +0100 |
commit | 96594eb948732b0805f15495b8b11b15004e6d40 (patch) | |
tree | c562db3c254ed5aaff25217bbce0e5c94ba4db93 /documentation/dev-manual/common-tasks.rst | |
parent | 6118a0510af238bc889f37a4a18098400b44bd7f (diff) | |
download | poky-96594eb948732b0805f15495b8b11b15004e6d40.tar.gz |
dev-manual: warn about license compliance issues when static libraries are used
This partly addresses [YOCTO #14407]
(From yocto-docs rev: 444ca8900e8057562d2a71a77e6e6798aca3ce85)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/common-tasks.rst')
-rw-r--r-- | documentation/dev-manual/common-tasks.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/documentation/dev-manual/common-tasks.rst b/documentation/dev-manual/common-tasks.rst index 8ab45193b8..4683b1c045 100644 --- a/documentation/dev-manual/common-tasks.rst +++ b/documentation/dev-manual/common-tasks.rst | |||
@@ -11158,6 +11158,26 @@ this function, you have to follow the following steps: | |||
11158 | For more usage information refer to :yocto_git:`the meta-spdxscanner repository | 11158 | For more usage information refer to :yocto_git:`the meta-spdxscanner repository |
11159 | </meta-spdxscanner/>`. | 11159 | </meta-spdxscanner/>`. |
11160 | 11160 | ||
11161 | Compliance Limitations with Executables Built from Static Libraries | ||
11162 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
11163 | |||
11164 | When package A is added to an image via the :term:`RDEPENDS` or :term:`RRECOMMENDS` | ||
11165 | mechanisms as well as explicitly included in the image recipe with | ||
11166 | :term:`IMAGE_INSTALL`, and depends on a static linked library recipe B | ||
11167 | (``DEPENDS += "B"``), package B will neither appear in the generated license | ||
11168 | manifest nor in the generated source tarballs. This occurs as the | ||
11169 | :ref:`license <ref-classes-license>` and :ref:`archiver <ref-classes-archiver>` | ||
11170 | classes assume that only packages included via :term:`RDEPENDS` or :term:`RRECOMMENDS` | ||
11171 | end up in the image. | ||
11172 | |||
11173 | As a result, potential obligations regarding license compliance for package B | ||
11174 | may not be met. | ||
11175 | |||
11176 | The Yocto Project doesn't enable static libraries by default, in part because | ||
11177 | of this issue. Before a solution to this limitation is found, you need to | ||
11178 | keep in mind that if your root filesystem is built from static libraries, | ||
11179 | you will need to manually ensure that your deliveries are compliant | ||
11180 | with the licenses of these libraries. | ||
11161 | 11181 | ||
11162 | Copying Non Standard Licenses | 11182 | Copying Non Standard Licenses |
11163 | ----------------------------- | 11183 | ----------------------------- |