Hi Robert,

On 5/27/26 3:58 PM, Robert P. J. Day via lists.openembedded.org wrote:

   (while this is from meta-security layer, it's a more general
question about how a packagegroup assigns a value for SUMMARY).

   building an image that includes packagegroup-security-tpm2.bb:

https://git.yoctoproject.org/meta-security/tree/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb?h=wrynose

and getting the warning:

"WARNING: packagegroup-security-tpm2-1.0-r0 do_recipe_qa: QA Issue:
Recipe packagegroup-security-tpm2 in
/home/rpjday/Layers/repo/wrynose-next/layers/meta-security/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
does not contain a SUMMARY. Please add an entry. [missing-metadata]"

   here's the rather odd content from that packagegroup recipe file:

     PACKAGE_ARCH = "${TUNE_PKGARCH}"

     inherit packagegroup

     PACKAGES = "${PN}"

     SUMMARY:packagegroup-security-tpm2 = "Security TPM 2.0 support"
     RDEPENDS:packagegroup-security-tpm2 = " \
         tpm2-tools \
         ... snip ...

this seems overly complicated since the packagegroup doesn't define
any sub-packagegroups, so the "PACKAGES =" line seems superfluous, as

Yes, because the default value of PACKAGES, here https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n335 is overwritten in the packagegroup class with the above, see https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/packagegroup.bbclass#n13.

I'm sure meta-security would appreciate a patch for that.

does the override usage for SUMMARY.


There are a few SUMMARY: overrides in OE-Core for packagegroups but they all have a recipe SUMMARY as well. I'm not sure where SUMMARY is used and whether an override for it per package makes sense, but in any case, I guess here the override part could be removed?

   but why should this generate the warning above? is there something

Because do_recipe_qa() which does the check, does it without a package override, so it needs to be defined at the recipe-level (that is, without an override).

odd about the way this packagegroup is being defined?

Yes, there's a package SUMMARY but not a recipe SUMMARY.

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237670): 
https://lists.openembedded.org/g/openembedded-core/message/237670
Mute This Topic: https://lists.openembedded.org/mt/119512778/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to