dev-manual: warn about license compliance issues when static libraries are used
PATCH 1/1 dev-manual: warn about license compliance issues when static libraries are used
This partly addresses [YOCTO #14407]
--- documentation/dev-manual/common-tasks.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
documentation/dev-manual/common-tasks.rst +17 -0
@@ -11158,6 +11158,23 @@ this function, you have to follow the following steps: For more usage information refer to :yocto_git:`the meta-spdxscanner repository </meta-spdxscanner/>`. +Compliance Limitations with Executables Built from Static Libraries +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +When package A is added to an image (``RDEPENDS += "A"``), and depends on +a static linked library package B (``DEPENDS += "B"``), package B will neither +appear in the generated license manifest nor in the source tarballs generated +by the archiving class. This occurs as the licensing and archiving classes +assume that only packages included via :term:`RDEPENDS` end up in the image. + +As a result, potential obligations regarding license compliance for package B +may not be met. + +The Yocto Project doesn't enable static libraries by default, in part because +of this issue. Before a solution to this limitation is found, you need to +keep in mind that if your root filesystem is built from static libraries, +you will need to manually ensure that your deliveries are compliant +with the licenses of these libraries. Copying Licenses that Do Not Exist ----------------------------------
Signature · 1 line
2.25.1
Hi Michael,
Quoted 12 lines · Michael Opdenacker
This partly addresses [YOCTO #14407]
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/dev-manual/common-tasks.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)documentation/dev-manual/common-tasks.rst +0
-0
documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11164
Quoted 7 lines
documentation/dev-manual/common-tasks.rst +4
-0@@ -11158,6 +11158,23 @@ this function, you have to follow the following steps: For more usage information refer to :yocto_git:`the meta-spdxscanner repository </meta-spdxscanner/>`. +Compliance Limitations with Executables Built from Static Libraries +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +When package A is added to an image (``RDEPENDS += "A"``), and depends on
RDEPENDS does not exist as is.
If I may suggest:
s/``RDEPENDS += "A"``/via :term:RDEPENDS or :term:RRECOMMENDS mechanism as well as explicitly included in the image recipe with :term:IMAGE_INSTALL/
?
documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11165
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+a static linked library package B (``DEPENDS += "B"``), package B will neither
For the first occurrence:
s/package B/recipe B/
documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11167
Quoted 2 lines
documentation/dev-manual/common-tasks.rst +2
-0+appear in the generated license manifest nor in the source tarballs generated +by the archiving class. This occurs as the licensing and archiving classes
s/archiving/:ref:archiver <ref-classes-archiver>/ s/licensing/:ref:license <ref-classes-license>/
documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11169
Quoted 2 lines
documentation/dev-manual/common-tasks.rst +2
-0+assume that only packages included via :term:`RDEPENDS` end up in the image. +
+ or :term:RRECOMMENDS ?
Cheers,
Quentin
Hi Quentin,
Many thanks for the review.
Quoted 35 lines · Quentin Schulz
Hi Michael,
Quoted 12 lines · Michael Opdenacker
This partly addresses [YOCTO #14407]
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/dev-manual/common-tasks.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)documentation/dev-manual/common-tasks.rst +0
-0documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11164
Quoted 7 lines
documentation/dev-manual/common-tasks.rst +4
-0@@ -11158,6 +11158,23 @@ this function, you have to follow the following steps: For more usage information refer to :yocto_git:`the meta-spdxscanner repository </meta-spdxscanner/>`. +Compliance Limitations with Executables Built from Static Libraries +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +When package A is added to an image (``RDEPENDS += "A"``), and depends onRDEPENDS does not exist as is.
If I may suggest:
s/``RDEPENDS += "A"``/via :term:
RDEPENDSor :term:RRECOMMENDSmechanism as well as explicitly included in the image recipe with :term:IMAGE_INSTALL/?
documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11165
Quoted 1 line
documentation/dev-manual/common-tasks.rst +1
-0+a static linked library package B (``DEPENDS += "B"``), package B will neitherFor the first occurrence:
s/package B/recipe B/
Quoted 8 lines
documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11167
Quoted 2 lines
documentation/dev-manual/common-tasks.rst +2
-0+appear in the generated license manifest nor in the source tarballs generated +by the archiving class. This occurs as the licensing and archiving classess/archiving/:ref:
archiver <ref-classes-archiver>/ s/licensing/:ref:license <ref-classes-license>/documentation/dev-manual/common-tasks.rst this function, you have to follow the following steps: · line 11169
Quoted 2 lines
documentation/dev-manual/common-tasks.rst +2
-0+assume that only packages included via :term:`RDEPENDS` end up in the image. ++ or :term:
RRECOMMENDS?
It all makes sense. I will include the changes that you propose. Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com