On Fri, Feb 6, 2026 at 10:52 AM Ben Knoble <[email protected]> wrote:
>
> > Le 5 févr. 2026 à 22:29, Alexis <[email protected]> a écrit :
> >
> > Eli Schwartz <[email protected]> writes:
> >
> >> The "that is to say" explicitly contradicts the previous sentence: "The
> >> @world set is the largest superset on a Gentoo system: a union of
> >> @selected, @system, and @profile sets."
> >> Because "all packages installed on the system" includes dependencies
> >> that are not in either of the 3 items the union consists of. They are
> >> *installed*, but neither *selected* nor system/profile.
> >> Suggestions for better wording for the wiki? "installed" is wrong,
> >> "explicitly installed" only applies to @selected as one doesn't
> >> explicitly add @system/@profile to @selected-sets or anything, "all
> >> packages not eligible for depclean" is accurate but not in theme, "all
> >> required packages for the system" feels clumsy.
>
> This:
>
> « Not eligible for depclean »
>
> > In the absence of any other suggestions, how about we:
> >
> > * delete the "that is to say" sentence; and
> >
> > * modify the previous sentence to say something like:
> >
> > "The @world set is the largest superset on a Gentoo system: a  union of
> > the @selected, @system, and @profile sets, together with their  required
> > dependencies."

Hm. Portage disagrees:

$ python3
>>> import portage
>>> import portage._sets
>>> conf = portage._sets.load_default_config(portage.settings, 
>>> portage.db[portage.root])
>>> world = conf.getSetAtoms('world')

>From exploring the "world" set object, it's _exactly_ @selected U
@system U @profile, without any dependencies!

> And this
>
> « with their required dependencies »
>
> Appear to be part of what is tripping me up; in the original email, 
> app-text/asciidoc is both ineligible for depclean and a required dependency 
> of a selected package, AIUI. So it should be in @world, but it took some time 
> to find the right invocation to make that apparent. I think it makes a bit 
> more sense now, so I agree these suggestions are good.
>
> Equery doesn’t show it when listing @world, which I would say is a bug. I’ll 
> have a look to see if I can improve that. Meanwhile, the wiki recommendations 
> should probably be altered (_e.g._, to drop -O from the emerge version).

So I no longer consider this a bug (or that the package I'm interested
in is in @world at all), but I definitely think the wiki should be
clearer that @world does not include dependencies. That does mean "-O"
is correct in the emerge version.

Unfortunately, that leaves me with checking for installed packages
using @installed, which feels gross since it might not agree with
@world + deps in some situations. It works, though.

-- 
D. Ben Knoble

Reply via email to