<div dir="ltr"><div><div>Hi,<br></div>I have tried to get an image recipe to work with packagegroups. The problem is that a recipe is built that in my opinion should not be built, in this case portmap. I have narrowed it down to basically the example in the yocto dev manual:<br></div>A packagegroup recipe <a href="http://packagegroup-pg-image.bb">packagegroup-pg-image.bb</a>:<br>-------------------<br>DESCRIPTION = "My Custom Package Groups"<br>inherit packagegroup<br>LICENSE = "MIT"<br>PACKAGES = "\<br>    packagegroup-custom-apps \<br>    packagegroup-custom-tools \<br>    "<br>RDEPENDS_packagegroup-custom-apps = "\<br>    dropbear \<br>    psplash"<br>RDEPENDS_packagegroup-custom-tools = "\<br>    portmap \<br>"<br>-------------------<br><div><br>An image recipe, <a href="http://pg-test-image.bb">pg-test-image.bb</a>:<br>-------------------<br>SUMMARY = "Package group test image definition."<br>DESCRIPTION = "This image does not do anything useful"<br>LICENSE = "MIT"<br>inherit image<br>IMAGE_FEATURES_append = " package-management"<br>IMAGE_INSTALL = "\<br>    packagegroup-custom-apps \<br>"<br>-------------------<br><br></div><div>When bitbaking, the portmap recipe is also baked, is this expected?<br></div><div>If looking at the debug log from:<br>bitbake -DDDD pg-test-image > pg-test-image.log the following is seen<br>--------------<br>DEBUG: Added runtime dependencies ['portmap', 'dropbear', 'psplash'] for /home/jryd/..../meta-sre-freja/recipes-core/packagegroups/<a href="http://packagegroup-pg-image.bb">packagegroup-pg-image.bb</a><br>---------------<br></div><div>It does not only get built but also populates sysroot, but it does not show up in the manifest file for the image.<br><br></div><div>This is of course a constructed example, my real problem is that one package gets built and installs things on sysroot which another package should provide. This means that the last of the two recipes get to provide the file(s). This causes build failures and or warnings.</div><div><br></div><div>I use daisy 1.6.1, to build for the sabresd.<br></div><div><br></div><div>Best regards<br>Jonas Rydow<br></div></div>