On Tue, 11 Dec 2012 07:36:10 -0600
Bruce Hill <[email protected]> wrote:

> On Sun, Dec 09, 2012 at 04:48:24PM +0000, Neil Bothwick wrote:
> > 
> > > workstation ~ # emerge -a @preserved-rebuild
> > > emerge: 'preserved-rebuild' is an empty set
> > > emerge: no targets left after set expansion
> > 
> > So you have nothing that needs rebuilding. Portage will warn you
> > when the set it non-empty, telling you to run emerge
> > @preserved-rebuild. There is no need to run it at any other time.
> 
> After using Gentoo for close to two years, the only time/place I've
> ever even seen @preserved-rebuild is in this thread. Yet you say,
> "Portage will warn you when the set is [it] non-empty, telling you to
> run emerge @preserved-rebuild."
> 
> How will portage do this? An alias 'ud'
> 
> alias ud='eix-sync && emerge -aDjNuv @world && dispatch-conf &&
> emerge -a --depclean && revdep-rebuild -i && clear && exit'
> 
> is run every morning with my first cup of coffee. If something were
> changed or left off that alias do you suppose this mysterious
> @preserved-rebuild would be run?

No, you would likely never see it. Your alias runs revdep-rebuild,
which would inelegantly fix the very problem that @preserved-rebuild
elegantly fixes.

Of course, all this assumes that your version of portage supports
@preserved-rebuild

To use it, you simply notice the portage message right at the end of an
emerge and run "emerge @preserved-rebuild" - it's just a regular emerge
using a particular built-in set that has a defined purpose


-- 
Alan McKinnon
[email protected]


Reply via email to