root # emerge --update --pretend world These are the packages that I would merge, in order. Calculating world dependencies | !!! Error: couldn't find match for virtual/glu in x11-libs/qt-3.0.4.20020606-r1
take a look at your virtuals file. /usr/portage/profiles/YOUR_PROFILE/virtuals you can see which profile you are using when taking a look at the symlink /etc/make.profile and see where it is linked to. there should be a line like this: virtual/glu x11-base/xfree on my machines everything works fine. then portage knows, that the virtual/glu = x11-base/xfree and could install without problems.
make.profile points to /usr/portage/profiles/default-1.0 the virtuals file contains the mentioned line virtual/glu x11-base/xfree
this dissappeared as I remove the mesa line for virtual/opengl in /var/cache/ebd