[yocto] why is "package-management" defined as a PACKAGE_GROUP?

Robert P. J. Day rpjday at crashcourse.ca
Sun Nov 17 07:28:31 PST 2013


On Sun, 17 Nov 2013, Chris Larson wrote:

>
> On Sun, Nov 17, 2013 at 5:45 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
>         leaving aside the bug report, i am now hopelessly confused. are you
>       saying this line:
>
>       PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
>
>       from core-image.bbclass is currently *necessary* to properly support
>       the image feature of "package-management" in core images? i don't see
>       how or why. using that logic, you'd also need lines of that form for
>       "read-only-rootfs" and "debug-tweaks", which certainly don't exist.
>
>         are you sure you're answering the question i'm asking?
>
>       rday
>
>       p.s.  i just don't see how that line has any value based on a few
>       simple tests i ran. using dora to build for a beagle xm, i can display
>       some variables:
>
>       $ bb show -r core-image-base IMAGE_FEATURES
>       Parsing recipes..done.
>       IMAGE_FEATURES="debug-tweaks splash"
>       $ bb show -r core-image-base
>       EXTRA_IMAGE_FEATURES
>       Parsing recipes..done.
>       EXTRA_IMAGE_FEATURES="debug-tweaks"
>       $
>
>       which looks correct. now let's edit my local.conf and change:
>
>       EXTRA_IMAGE_FEATURES = "debug-tweaks"
>
>       to
>
>       EXTRA_IMAGE_FEATURES = "debug-tweaks package-management"
>
>       save, exit and verify:
>
>       $ bb show -r core-image-base IMAGE_FEATURES
>       Parsing recipes..done.
>       IMAGE_FEATURES="debug-tweaks splash package-management"
>       $ bb show -r core-image-base
>       EXTRA_IMAGE_FEATURES
>       Parsing recipes..done.
>       EXTRA_IMAGE_FEATURES="debug-tweaks package-management"
>
>       good. and now, let's edit core-image.bbclass and remove the line:
>
>       PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
>
>       save, exit and test:
>
>       $ bb show -r core-image-base IMAGE_FEATURES
>       Parsing recipes..done.
>       IMAGE_FEATURES="debug-tweaks splash package-management"
>       $ bb show -r core-image-base
>       EXTRA_IMAGE_FEATURES
>       Parsing recipes..done.
>       EXTRA_IMAGE_FEATURES="debug-tweaks package-management"
>       $
>
>         seems like the "package-management" image feature is being picked up
>       just fine.
>
>
> This test you did makes no sense. Of course it’s in IMAGE_FEATURES,
> you put it there. What you didn’t check is whether
> ${ROOTFS_PKGMANAGE} ended up being installed in the image, which it
> won’t be.

  ah, i think i see my misunderstanding, i will experiment further and
clarify it for myself, thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


More information about the yocto mailing list