On Mon, Nov 23, 2020 at 11:51 AM Charlie Davies
<charles.dav...@whitetree.xyz> wrote:
>
> Hi All,
>
> I am seeing some behaviour when creating my own packagegroups which I do not 
> quite understand.
>
> Using the example from the mega-manual:
>
> DESCRIPTION = "My Custom Package Groups"
>
>       inherit packagegroup
>
>       PACKAGES = "\
>           packagegroup-custom-apps \
>           packagegroup-custom-tools \
>           "
>
>       RDEPENDS_packagegroup-custom-apps = "\
>           dropbear \
>           portmap \
>           psplash"
>
>       RDEPENDS_packagegroup-custom-tools = "\
>           oprofile \
>           oprofileui-server \
>           lttng-control \
>           lttng-viewer"
>
> If I then include packagegroup-custom-apps in my image I am also seeing the 
> packages in packagegroup-custom-tools being built (but not included in the 
> image) while building my image.
>
> Is this behaviour correct? I would not expect the packages in 
> packagegroup-custom-tools to be built if the packagegroup-custom-tools is not 
> included in the image.

This is correct. When at least one (binary) package is needed from a
recipe, then the recipe is built, and all the resulting packages are
built.
So when you include packagegroup-custom-apps in your image, you
request the whole packagegroup recipe to be built, which in turn will
build all binary packages (hence all packagegroups and their
dependencies).

>
> Many Thanks,
>
> Charlie
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51527): https://lists.yoctoproject.org/g/yocto/message/51527
Mute This Topic: https://lists.yoctoproject.org/mt/78450762/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to