license.manifest misses header-only libraries
According to [1], a license manifest is generated during image creation:
"The Yocto Project generates a license manifest during image creation that is located in ${DEPLOY_DIR}/licenses/image_name-datestamp to assist with any audits."
This manifest lists all packages installed on the target (either being installed directly via IMAGE_INSTALL or due to other packages RDEPENDS).
The manifest seems to miss header-only libraries (like tclap or big parts of boost), which were used during compilation (headers) but do not contain dynamic libraries required at runtime. I guess that the same may be true for libraries linked statically.
Setting RDEPENDS_${PN} += "tclap" in my own applications recipe seems to improve the situation as now the (empty) package tclap is included in my image and in the license.manifest. But this requires manual work and cannot do this for all recipes shipped by OE. Additionally this doesn't work for boost, as rdepending on boost will pull in ALL boost library packages.
Is there a reliable way to get the header-only/static libraries into the manifest file?
regards
Christian
________________________________
[http://assets.arri.com/media/sign/2020-04-03-E-mail-signature-Stellar2_V1.jpg] <https://microsites.arri.com/stellar/>
Get all the latest information from www.arri.com<https://www.arri.com/>, Facebook<https://www.facebook.com/TeamARRI>, Twitter<https://twitter.com/ARRIChannel>, Instagram<https://instagram.com/arri> and YouTube<https://www.youtube.com/user/ARRIChannel>.
Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRA 57918 Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRB 54477 Geschäftsführer: Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger; Markus Zeiler
Quoted 25 lines · Christian Eggers
According to [1], a license manifest is generated during image creation:
"The Yocto Project generates a license manifest during image creation that is located in ${DEPLOY_DIR}/licenses/image_name-datestamp to assist with any audits."
This manifest lists all packages installed on the target (either being installed
directly viaIMAGE_INSTALLor due to other packages RDEPENDS).The manifest seems to miss header-only libraries (like tclap or big parts
of boost), which were used during compilation (headers) but do not contain dynamic libraries required at runtime. I guess that the same may be true for libraries linked statically.Setting RDEPENDS_${PN} += "tclap" in my own applications recipe seems to improve the situation as now the (empty) package tclap is included in my image and in the license.manifest. But this requires
manual work and cannot do this for all recipes shipped by OE. Additionally this doesn't work for boost, as rdepending on boost will pull in ALL boost library packages.
Quoted 2 lines
Is there a reliable way to get the header-only/static libraries into the manifest file?
The image manifest is a list of the things actually shipping in the image and their corresponding licenses. Most images don't ship development headers so they'll not be included there.
You can certainly get a list of everything used during the build instead. I'm not sure how you'd decide that a set of headers were used or not, compared to say the cross toolchain binaries or a native tool though so anything in between these two is harder.
There is some work I did a while back which traces all SPDX identifiers referenced by debug symbols in the code to better audit license information but the lack of SPDX headers in much of the code we use makes that less useful right now.
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rpurdie/license-experiments-osls
(and a presentation/slides at OSLS 2019)
Cheers,
Richard
Am Mittwoch, 8. Juli 2020, 18:19:24 CEST schrieb Richard Purdie:
Quoted 8 lines · Christian Eggers
Quoted 3 lines
[...]
Is there a reliable way to get the header-only/static libraries into the manifest file?The image manifest is a list of the things actually shipping in the image and their corresponding licenses. Most images don't ship development headers so they'll not be included there.
I'm more focusing on the (empty) main packages, not the -dev packages with the header files.
Quoted 4 lines
You can certainly get a list of everything used during the build instead. I'm not sure how you'd decide that a set of headers were used or not, compared to say the cross toolchain binaries or a native tool though so anything in between these two is harder.
I suppose that the "archiver" class already tracks everything which has been used for building. But I'm only looking for licenses which are distributed with my binary embedded software
Quoted 7 lines
There is some work I did a while back which traces all SPDX identifiers referenced by debug symbols in the code to better audit license information but the lack of SPDX headers in much of the code we use makes that less useful right now.
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rpurdie/license-exp
eriments-osls (and a presentation/slides at OSLS 2019)
Thanks for this hint. But I think that this is not exactly what I'm locking for. For now I'll stay at manually rdepending on the empty main packages of header only libraries for getting them into the license manifest. For the case of the boost library, I'll probably "invent" some additional empty sub packages for tracking the license of the boost components I use.
At the end I'll anyway publish everything collected by the archiver class on our download site. But for the printed documentation of our product I would like to focus on licenses which apply for the "binary distribution".
regards
Christian
________________________________
[http://assets.arri.com/media/sign/2020-04-03-E-mail-signature-Stellar2_V1.jpg] <https://microsites.arri.com/stellar/>
Get all the latest information from www.arri.com<https://www.arri.com/>, Facebook<https://www.facebook.com/TeamARRI>, Twitter<https://twitter.com/ARRIChannel>, Instagram<https://instagram.com/arri> and YouTube<https://www.youtube.com/user/ARRIChannel>.
Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRA 57918 Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRB 54477 Geschäftsführer: Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger; Markus Zeiler