On Fri, 20 Dec 2013 14:50:47 +0400 "Yuri K. Shatroff" <yks-...@yandex.ru> wrote:
> > > 20.12.2013 14:35, Alexey Mishustin пишет: > > 2013/12/20 Yuri K. Shatroff <yks-...@yandex.ru>: > >> 20.12.2013 13:30, Alexey Mishustin пишет: > > > >>> What is the contents of /var/lib/portage/world? > >>> > >> > >> Hm, really, it's almost empty except for the last packages I have > >> added yesterday... So that's clearly not an emerge bug, but ... > >> Could anything mess it up? > >> I have copied the system to a new HDD recently > > > > Including /var? > > Yes, I have /var on root fs and just rsync'ed. > > >> and done an `emerge @world`, > >> too, and everything went OK. > > > > If the correct version of the world file is lost, you may want to > > try to regenerate it with `regenworld'. This utility will search old > > emerge log files (did you copy it from old HDD?) If old emerge log > > files are lost too, then the script from [1] could help to recover > > some (major) part of the world file entries. > > > > [1] http://forums.gentoo.org/viewtopic-t-869667.html > > > > Thanks, I think a pretty easy way to regenerate @world is to edit the > output of `emerge -pv --deplean`. At least I'm going to try this. FWLIW, that's the way I handle this kind of thing. Run `emerge -pv --depclean`, then if portage wants to remove anything I want installed, `emerge --noreplace [atom1] [atom2] [...]`