Hi, I submitted something similar awhile back to this mailing list.
https://lists.openembedded.org/g/openembedded-core/message/146607?p=,,,20,0,0,0::relevance,,Michael.Ho%40bmw.de,20,2,0,79619287 If yours makes more sense (I didn't think there's ever a case where an image recipe actually has a license) then my patch should probably be skipped over for yours. Kind regards, Michael Ho -- BMW Car IT GmbH Michael Ho Spezialist Entwicklung – Build and Release Engineering Lise-Meitner-Straße 14 89081 Ulm Tel.: +49-731-37804-071 Mobil: +49-152-54980-471 Fax: +49-731-37804-001 Mail: michael...@bmw-carit.de Web: http://www.bmw-carit.de <http://www.bmw-carit.de/> ------------------------------------------------------------------------- BMW Car IT GmbH Geschäftsführer: Kai-Uwe Balszuweit und Michael Böttrich Sitz und Registergericht: München HRB 134810 ------------------------------------------------------------------------- On 04.02.21, 13:11, "openembedded-core@lists.openembedded.org on behalf of Tomasz Dziendzielski" <openembedded-core@lists.openembedded.org on behalf of 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()])) # To verify what was deployed it checks the rootfs dependencies against # the SSTATE_MANIFESTS for "deploy" task. -- 2.30.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147659): https://lists.openembedded.org/g/openembedded-core/message/147659 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] -=-=-=-=-=-=-=-=-=-=-=-