How to install individual -lic packages
I have set LICENSE_CREATE_PACKAGE to "1" in order to create additional -lic packages per recipe. As NO_RECOMMENDATIONS is set to "1" in my image recipe, the -lic packages are not installed automatically.
How can I install specific -lic packages "manually". My idea was to create a new recipe which rdepends on all -lic packages which I would like to install.
# myrecipe.bb:
RDEPENDS_${PN} += "curl-lic"
After that I get the following error message:
ERROR: Nothing RPROVIDES 'curl-lic' (but ... RDEPENDS on or otherwise requires it)
The same happened when I tried to add the -lic packages to IMAGE_INSTALL in my image recipe.
I also tried adding one line in image.bbclass, but this changed nothing:
def add_package_and_files(d):
...
d.setVar('PACKAGES', "%s %s" % (pn_lic, packages))
d.setVar('FILES_' + pn_lic, files)+ d.setVar('RPROVIDES_' + pn_lic, pn_lic)
How can I install -lic packages in my rootfs without setting NO_RECOMMENDATIONS to 0?
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
COMPLEMENTARY_GLOB[lic-pkgs] = '*-lic'IMAGE_FEATURES += "lic-pkgs"
This is how the dbg-pkgs, dev-pkgs, doc-pkgs, src-pkgs, ptest-pkgs, staticdev-pkgs are done.
Quoted 60 lines · Christian Eggers
I have set
LICENSE_CREATE_PACKAGEto "1" in order to create additional -lic packages per recipe. AsNO_RECOMMENDATIONSis set to "1" in my image recipe,
the -lic packages are not installed automatically.How can I install specific -lic packages "manually". My idea was to create a
new recipe which rdepends on all -lic packages which I would like to install.# myrecipe.bb:
RDEPENDS_${PN} += "curl-lic"After that I get the following error message:
ERROR: Nothing RPROVIDES 'curl-lic' (but ... RDEPENDS on or otherwise requires
it)The same happened when I tried to add the -lic packages to
IMAGE_INSTALLin my
image recipe.I also tried adding one line in image.bbclass, but this changed nothing:
def
add_package_and_files(d):
...d.setVar('PACKAGES', "%s %s" % (pn_lic, packages)) d.setVar('FILES_' + pn_lic, files)+
d.setVar('RPROVIDES_' + pn_lic, pn_lic)How can I install -lic packages in my rootfs without setting
NO_RECOMMENDATIONSto 0?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
Signature · 4 lines
Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Senior Software Engineer, Mentor Graphics
Hi Christopher,
Am Donnerstag, 9. Juli 2020, 18:04:00 CEST schrieb Christopher Larson:
Quoted 5 lines
COMPLEMENTARY_GLOB[lic-pkgs] = '*-lic'
IMAGE_FEATURES+= "lic-pkgs"This is how the dbg-pkgs, dev-pkgs, doc-pkgs, src-pkgs, ptest-pkgs, staticdev-pkgs are done.
I think this is not what I require. How can I install -lic packages directly?
I would like to have all necessary -lic packages in my rootfs, so that I can publish the licenses via a webserver. I need some extra -lic packages which are not installed automatically because the main package is not part of the rootfs.
Example 1: My initramfs used dash from klibc. This code is licensed under BSD-3-Clause, so I need the copyright disclaimer of this package. How can I add the license of this package to my rootfs?
Example 2: My application depends on libuuid from util-linux. It looks like the -lic package is not added to RRECOMMENDS_libuuid because package splitting is done dynamically for util-linux. So I need a way to install util-linux-lic manually.
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
In the meantime I could answer the question myself:
Am Freitag, 10. Juli 2020, 23:16:39 CEST schrieb Christian Eggers:
Quoted 3 lines
[...]
I think this is not what I require. How can I install -lic packages directly?
In order to known by other (image) recipes, -lic packages must be added to PACKAGES_DYNAMIC. This is done in my distro.conf but should also work from local.conf:
# Create separate ${PN}-lic packages for all recipes LICENSE_CREATE_PACKAGE = "1"
# -lic packages are created dynamically. Satisfy dependencies to it (required
# if a -lic package needs to be installed directly (e.g. via IMAGE_INSTALL)
# instead of being installed due to RRECOMMENDS_${PN}).
PACKAGES_DYNAMIC += "^${PN}-lic"After adding ${PN}-lic to PACKAGES_DYNAMIC, arbitrary -lic packages can be added to an image recipe by using IMAGE_INSTALL. As an alternative, other packages can RDEPEND on them.
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