Why does the new KPA ebuild depend on media-libs/phonon-4.7.2 and media-libs/phonon-gstreamer-4.7.2? Current git master builds just fine with the current stable versions media-libs/phonon-4.6.0-r1 and media-libs/phonon-gstreamer-4.6.3. Why are these testing dependencies added?
I think KPA actually makes use of Phonon (cf. Viewer/VideoDisplay.cpp), so it seems to depend on it. CMakeLists.txt seems not to check for Phonon though; perhaps, this is an upstream bug. I'll investigate this.
As part of the wider effort to prepare for KDE Frameworks 5, a number of Qt-based libraries have gained two new USE flags - qt4 & qt5. In order to ensure consumers of these libraries have the appropriate variant available, we have to enforce a USE dependency on these flags. In the case of phonon, the new qt4 USE flag is only available in testing versions (because we can't make major changes like this in stable). Thus depending on this USE flag causes unstable phonon to be pulled in, rather than us directly depending upon that version.
Ah okay, I see. Apart from this, would you mind to rename the bug again? (as "media-gfx/kphotoalbum-4.5 should not depend on media-libs/phonon" is not what I meant in the first place) So this is invalid, isn't it?
It would be possible to add more deps instead like || ( <media-libs/phonon-4.7.0 media-libs/phonon[qt4] ), but the minimal gain is probably not worth the added complexity. I would anticipate stabilisation of newer phonon soon anyway - it's long overdue.