I have my own compiled versions of Qt and KDE, so I have injected Qt and KDE by adding these to packages.provided x11-libs/qt-3.3.4-r3 kde-base/kdelibs-3.4.3 kde-base/kdebase-3.4.3 kde-base/arts-3.4.3 kde-base/kde-3.4.3 Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Now, *any* application that depends on KDE will not emerge because portage has checks in various places that all packages are built with the "arts" use flag or all aren't. However, these functions don't take into account the possibility that the packages are injected, so they fail to return valid results. For example, the function "best_kde_version" returns an empty string and "built_with_use" returns false. So when the emerge attempts to take place, and I have the "arts" flag in my USE flags, it will die and complain: You are trying to compile <app> with the "arts" USE flag enabled. However, <empty string> was compiled with this flag disabled. There are more than one of these function checks in portage, for exmple in eclass/kde.eclass, the function "kde_pkg_setup" Expected Results: The expected behavior is to allow KDE to be injected and all these functions to take this into account so that KDE apps can be injected with the "arts" flag enabled with no problem.
*** This bug has been marked as a duplicate of 110165 ***