Packagegroup Understanding
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.
Many Thanks,
Charlie
Quoted 27 lines · Charlie Davies
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"
Quoted 3 lines
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).
Quoted 8 lines
Many Thanks,
Charlie
Ok - I understand now.
Thanks for the explanation.
Charlie