currently, emerging dev-qt/qtcore in prefix installs wrong qmake5 link: QA Notice: Symbolic link /opt/prefix/usr/bin/qmake5 points to /opt/prefix/opt/prefix/usr/lib/qt5/bin/qmake which does not exist. to fix this, in qt5-build.eclass the dosym in qt5_symlink_binary_to_path() should be: dosym -r "/${QT5_BINDIR#${EPREFIX}}"/${1} /usr/bin/${1}${2}