All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* How to install individual -lic packages
@ 2020-07-09 10:58 Christian Eggers
  2020-07-09 16:04 ` [OE-core] " Christopher Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Eggers @ 2020-07-09 10:58 UTC (permalink / raw
  To: openembedded-core

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] How to install individual -lic packages
  2020-07-09 10:58 How to install individual -lic packages Christian Eggers
@ 2020-07-09 16:04 ` Christopher Larson
  2020-07-10 21:16   ` Christian Eggers
       [not found]   ` <162080BCA151ECDB.25249@lists.openembedded.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Larson @ 2020-07-09 16:04 UTC (permalink / raw
  To: Christian Eggers; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2361 bytes --]

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.

On Thu, Jul 9, 2020 at 3:58 AM Christian Eggers <ceggers@arri.de> wrote:

> 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
> 
>


-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 3755 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] How to install individual -lic packages
  2020-07-09 16:04 ` [OE-core] " Christopher Larson
@ 2020-07-10 21:16   ` Christian Eggers
       [not found]   ` <162080BCA151ECDB.25249@lists.openembedded.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Christian Eggers @ 2020-07-10 21:16 UTC (permalink / raw
  To: Christopher Larson; +Cc: Patches and discussions about the oe-core layer

Hi Christopher,

Am Donnerstag, 9. Juli 2020, 18:04:00 CEST schrieb Christopher Larson:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] How to install individual -lic packages
       [not found]   ` <162080BCA151ECDB.25249@lists.openembedded.org>
@ 2020-07-14 15:07     ` Christian Eggers
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Eggers @ 2020-07-14 15:07 UTC (permalink / raw
  To: openembedded-core; +Cc: Christopher Larson

In the meantime I could answer the question myself:

Am Freitag, 10. Juli 2020, 23:16:39 CEST schrieb Christian Eggers:
> [...]
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-14 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-09 10:58 How to install individual -lic packages Christian Eggers
2020-07-09 16:04 ` [OE-core] " Christopher Larson
2020-07-10 21:16   ` Christian Eggers
     [not found]   ` <162080BCA151ECDB.25249@lists.openembedded.org>
2020-07-14 15:07     ` Christian Eggers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.