pygoscelis wrote:[...] I am interested in a general procedure. Something like "remove all /etc/portage/package.*; remove all use flags from /etc/make.conf; run emerge -pg --emptytree --backtrack=0 @world". Something along these lines. Not that these specific instructions are correct (I'm trying to do something like that right now).
pygoscelis,
1. Check with "emerge -cp" if there is something to clean
2. Check your /var/lib/portage/world file with this script (please read the entire thread):
https://forums.gentoo.org/viewtopic-t-1176922.html
(and do of course again an "emerge -c" if you had some packages removed with "emerge -c PCKNAME")
3. Check again with "emerge -uUDvp @world"
If still problems, go on with:
4. For now, leave your USE flags in the USE= section of make.conf unchanged, but ...
5. Add temporary in you make.conf a line allowing most licences: ACCEPT_LICENSE="* -@EULA" (because of ->)
6. MOVE (so you still have them) all /etc/portage/package.*/* files to a safe place
7. Check again with "emerge -uUDvp @world" ... and now copy back some package-specific Use-flags into ./package.use
If you have still problems, then there are only 2 choices:
Either you are able to solve it ... or get help here (or IRC.)