All of lore.kernel.org
 help / color / mirror / Atom feed
* license.bbclass does not add recommends to dynamic packages
@ 2021-07-07 11:53 Mike Crowe
  2021-07-07 12:25 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Crowe @ 2021-07-07 11:53 UTC (permalink / raw)
  To: openembedded-core

We're using LICENSE_CREATE_PACKAGE to create ${PN}-lic package files and
relying on the automatically generated recommends to cause them to be
installed in the image. This works well for most packages, but fails for
packages where we only install package created using PACKAGES_DYNAMIC.

For example, liborc is being installed in our image but that package lacks
a recommends for orc-lic, so the licences that apply to it are not being
installed. This is because license.bbclass:add_package_and_files iterates
only over the packages listed in PACKAGES.

Steps to reproduce on current master:

$ echo 'LICENSE_CREATE_PACKAGE = "1"' >> conf/local.conf
$ bitbake orc
$ dpkg-deb -I tmp-glibc/deploy/ipk/armv7vet2hf-neon/orc_0.4.32-r0_armv7vet2hf-neon.ipk|grep Recommends
 Recommends: orc-lic
$ dpkg-deb -I tmp-glibc/deploy/ipk/armv7vet2hf-neon/liborc-0.4-0_0.4.32-r0_armv7vet2hf-neon.ipk|grep Recommends
$

(I would have expected the last command to produce the same output as the
penultimate one.)

Even if I could fathom out how to fix orc and any other recipes so that they
did add the ${PN}-lic dependency, I'd be worried about not noticing that
the problem affected other recipes in the future.

Is there a way to teach license.bbclass:add_package_and_files to add the
${PN}-lic recommends for dynamic packages, or would it be necessary to
teach package.bbclass to do so?

Thanks.

Mike.

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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-07 11:53 license.bbclass does not add recommends to dynamic packages Mike Crowe
2021-07-07 12:25 ` [OE-core] " Richard Purdie
2021-07-07 13:05   ` Mike Crowe
2021-07-07 16:43     ` Richard Purdie
     [not found]     ` <168F8FE5ADDC556E.30794@lists.openembedded.org>
2021-07-07 16:48       ` Richard Purdie
2021-07-07 16:55         ` Mike Crowe
2021-07-07 18:14           ` Richard Purdie

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.