Qt5 needs dev-qt/qtchooser which depends on Qt 4.8.6. dev-qt/qtsql-4.8.6 depends on virtual/mysql-5.6 while dev-qt/qtsql-5.3.2 depends on virtual/mysql:0/0 which is virtual/mysql-5.5. Reproducible: Always
$ grep virtual/mysql *.ebuild qtsql-4.8.5.ebuild: mysql? ( virtual/mysql ) qtsql-4.8.6-r1.ebuild: mysql? ( >=virtual/mysql-5.6-r2:=[${MULTILIB_USEDEP}] ) qtsql-5.3.2.ebuild: mysql? ( virtual/mysql:= ) That is intended and not a bug. You just have to rebuild qtsql:5 against a version of virtual/mysql that satisfies the dep in qtsql:4. Portage should offer to do that automatically if you try to upgrade virtual/mysql.
Output from emerge: !!! Multiple package instances within a single package slot have been pulled !!! into the dependency graph, resulting in a slot conflict: virtual/mysql:0 (virtual/mysql-5.6-r2::gentoo, ebuild scheduled for merge) pulled in by =virtual/mysql-5.6-r2 required by (dev-qt/qtsql-4.8.5::gentoo, installed) (and 6 more with the same problem) (virtual/mysql-5.5::gentoo, installed) pulled in by virtual/mysql:0/0= required by (dev-qt/qtsql-5.3.2::gentoo, installed)
What was the emerge command that led to that output?
Take your pick: emerge -uDN world emerge --oneshot virtual/mysql emerge --oneshot virtual/mysql:0 emerge --oneshot virtual/mysql-5.6-r2
Try emerge --oneshot virtual/mysql qtsql:5
In any case, the dependencies are correct.