All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: yocto@yoctoproject.org, Chris Larson <clarson@kergoth.com>
Subject: Re: why is "package-management" defined as a PACKAGE_GROUP?
Date: Mon, 18 Nov 2013 10:35:25 +0000	[thread overview]
Message-ID: <3439049.gDsLHNyZCo@helios> (raw)
In-Reply-To: <alpine.DEB.2.02.1311171105010.23270@oneiric>

Hi Robert,

On Sunday 17 November 2013 11:17:13 Robert P. J. Day wrote:
> On Sun, 17 Nov 2013, Chris Larson wrote:
> 
> ... huge snip that i hope won't be necessary ...
> 
> > 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.
> 
>   i think i see my basic and fatal misunderstanding, and if you can
> tolerate one more post, i want to make sure i know what i did wrong as
> i want to write this up and i want to be accurate.
> 
>   as i understood it (apparently incorrectly), IMAGE_FEATURES fell
> into two categories:
> 
>   1) actual package groups, as defined in core-image.bbclass, as in:
> 
> PACKAGE_GROUP_x11 = "packagegroup-core-x11"
> PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base"
> PACKAGE_GROUP_x11-sato = "packagegroup-core-x11-sato"

As I keep saying, these aren't package groups despite the name of the 
variable. Please stop calling them that. All they say is that if "x11" is 
present in IMAGE_FEATURES, bring in packagegroup-core-x11. The fact that these 
*do* point to actual package groups as packages is pretty much incidental.

>   2) non-package group values that were processed independently by
> code in image.bbclass, such as "read-only-rootfs" or "debug-tweaks"
> 
>   what i *thought* was that each setting had to be one *or* the other,
> but not both. so when i saw code in image.bbclass that was handling
> the "package-management" IMAGE_FEATURE, i immediately assumed that
> meant it couldn't *also* represent an actual package group. is that
> where i went wrong?
> 
>   so, in this one case for the IMAGE FEATURE "package-management",
> there is an actual package group defined as:
> 
> PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"

Not a package group.

> which represents the packages:
> 
> $ bb show -r core-image-base ROOTFS_PKGMANAGE
> Parsing recipes..done.
> # ROOTFS_PKGMANAGE=opkg opkg-collateral ${EXTRAOPKGCONFIG}
> ROOTFS_PKGMANAGE="opkg opkg-collateral poky-feed-config-opkg"
> $
> 
> but that feature *also* pulls in additional processing as it's defined
> in image.bbclass.
> 
>   have i finally got it right?

In that there are several things at work dealing with the single "package-
management" item, yes.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  parent reply	other threads:[~2013-11-18 10:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-17  9:19 why is "package-management" defined as a PACKAGE_GROUP? Robert P. J. Day
2013-11-17 11:24 ` Paul Eggleton
2013-11-17 11:30   ` Robert P. J. Day
2013-11-17 12:12     ` Paul Eggleton
2013-11-17 12:45       ` Robert P. J. Day
2013-11-17 15:04         ` Chris Larson
2013-11-17 15:28           ` Robert P. J. Day
2013-11-17 16:17           ` Robert P. J. Day
2013-11-17 16:38             ` Chris Larson
2013-11-17 16:46               ` Robert P. J. Day
2013-11-18 10:35             ` Paul Eggleton [this message]
2013-11-18 11:23               ` Robert P. J. Day

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3439049.gDsLHNyZCo@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=clarson@kergoth.com \
    --cc=rpjday@crashcourse.ca \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.