On Thu, Feb 4, 2021 at 7:10 AM Tomasz Dziendzielski <tomasz.dziendziel...@gmail.com> wrote: > > If image recipe depends on another image recipe it will try to use > license recipeinfo that is not deployed. It will result in: > | Exception: FileNotFoundError: [Errno 2] No such file or directory: > | 'TMPDIR/deploy/licenses/foo-image/recipeinfo' > > We can't determine in a simple and efficient way if dependency recipe > inherits image.bbclass, so let's introduce SKIP_LICENSE_MANIFEST_RECIPES > variable that will contain list of recipes that should be skipped. > > Signed-off-by: Tomasz Dziendzielski <tomasz.dziendziel...@gmail.com> > --- > meta/classes/license_image.bbclass | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/meta/classes/license_image.bbclass > b/meta/classes/license_image.bbclass > index 8fd88cfb2d..e2f3178306 100644 > --- a/meta/classes/license_image.bbclass > +++ b/meta/classes/license_image.bbclass > @@ -223,7 +223,8 @@ def get_deployed_dependencies(d): > pn = d.getVar("PN", True) > depends = list(set([dep[0] for dep > in list(taskdata.values()) > - if not dep[0].endswith("-native") and not dep[0] == pn])) > + if not dep[0].endswith("-native") and not dep[0] == pn > + and dep[0] not in > (d.getVar("SKIP_LICENSE_MANIFEST_RECIPES", True) or "").split()]))
I didn't see anything on the docs mailing list, but we should also have a matching update to the docs for the new variable (unless it is already in the docs, I didn't check for that). Cheers, Bruce > > # To verify what was deployed it checks the rootfs dependencies against > # the SSTATE_MANIFESTS for "deploy" task. > -- > 2.30.0 > > > > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147662): https://lists.openembedded.org/g/openembedded-core/message/147662 Mute This Topic: https://lists.openembedded.org/mt/80377785/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-