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.
Fixing the summary...
built_with_use now returns true when the package does not exist (i.e. it is injected or packaged.provided)
*** Bug 110166 has been marked as a duplicate of this bug. ***
This seems to have been reverted recently.
this cant really be done yet ...
(In reply to comment #5) > this cant really be done yet ... Yes it *can*. It's done in the patches of bug #139842.
i have the same problem here since my return from vacation. Examples of packages : media-gfx/kst, media-gfx/digikam and so no. Is there any quick fix we could do ?
the bug still hurts a lot here. I have all arts/kde injected and i just can't emerge anything kde-related, which means a lot of course. I can't emerge -vuta world anymore because of that. example : >>> Emerging (40 of 201) app-portage/kuroo-0.80.2-r1 to / * kuroo-0.80.2.tar.bz2 MD5 ;-) ... [ ok ] * kuroo-0.80.2.tar.bz2 RMD160 ;-) ... [ ok ] * kuroo-0.80.2.tar.bz2 SHA1 ;-) ... [ ok ] * kuroo-0.80.2.tar.bz2 SHA256 ;-) ... [ ok ] * kuroo-0.80.2.tar.bz2 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking kuroo-0.80.2.tar.bz2 ;-) ... [ ok ] !!! ERROR: app-portage/kuroo-0.80.2-r1 failed. Call stack: ebuild.sh, line 1562: Called dyn_setup ebuild.sh, line 665: Called pkg_setup ebuild.sh, line 1255: Called kde_pkg_setup kde.eclass, line 60: Called built_with_use 'kde-base/kdelibs' 'arts' eutils.eclass, line 1594: Called die !!! Unable to resolve kde-base/kdelibs to an installed package !!! If you need support, post the topmost build error, and the call stack if relevant.
*** This bug has been marked as a duplicate of 142941 ***