Rich Freeman posted on Wed, 12 Oct 2011 23:26:28 -0400 as excerpted:

> On Wed, Oct 12, 2011 at 11:20 PM, Mike Frysinger <vap...@gentoo.org>
> wrote:
>> isn't that already done with @installed ?  `emerge --upgrade
>> @installed`
> 
> Well, you'd arguably at least need a -N in there.

Indeed.

> Also, this doesn't work in stable portage - I assume this is something
> available in the newer branch.

Yes.  @ denotes a set.  Stable portage doesn't have sets in general yet, 
altho it is setup to recognize the two special sets, @system and @world 
(which for those sets only, for backward compatibility, may appear with 
or without the @).

> In any case, if that is the "right thing" then we should update
> our docs accordingly.

Of course, that would need to wait for sets to stabilize.  When that 
might be I haven't the foggiest, but it'd be nice to not have to be 
running hard-masked portage, again.  (FWIW, my world file is entirely 
empty as all the packages formerly contained therein are now in custom 
sets, @local.admin, @local.fonts, @local.kde.base.kdebase.workspace, 
@local.xorg, etc, and those are in turn listed in the world-sets file, 
not world, which is for packages, not sets.)

> Also - will doing an emerge -u @installed add those packages to @world -
> ie do we need to throw a -1 in there, or is this behavior coded in as an
> exception?

Sets are recognized by the @ in front of them, and would normally be 
added to world-sets instead of world, but there's a number of special 
sets like @selected (@world minus packages only pulled in by @system) 
@system, @world, @installed, @live-rebuild (basically -9999 versions), 
@preserved-rebuild, @security, @unavailable-binaries (AFAIK, @installed 
minus binpkg-available), @module-rebuild (external kernel modules), @x11-
module-rebuild, etc.

So yes, @installed is one of the special sets and therefore an exception.


But... talking about -1 in context of --best (or whatever), I've always 
wondered why that wasn't the default, as well.  Only add the package to 
@world if the user specifies to do so.  That way a user can remerge an 
individual package (or set), without having to worry about whether it's 
going to be added to the world (world-sets) file, as it's only added when 
the option is specifically listed.

But for that to work with --best, --best would have to be in 
EMERGE_DEFAULT_OPTIONS (with --best cancellable by later options if 
necessary), or people would be even MORE likely to forget to add the -1 
for one-off emerges.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


Reply via email to