qdbusviewer qdbusviewer: could not exec '/usr/lib64/qt4/bin/qdbusviewer': No such file or directory ls -lisa /usr/bin/qdbusviewer 7090673 0 lrwxrwxrwx 1 root root 9 Jan 20 15:41 /usr/bin/qdbusviewer -> qtchooser equery b /usr/bin/qdbusviewer * Searching for /usr/bin/qdbusviewer ... dev-qt/qtchooser-0_p20150102 (/usr/bin/qtchooser) dev-qt/qtchooser-0_p20150102 (/usr/bin/qdbusviewer -> qtchooser) So it looks like I'm missing qdbusviewer and the issue here is not as obvious as it could be. This is especially bad, as it might be called via a script. Could we add USE flags (probably using USE expand qt_${PN}) to qtchooser to control those symlinks and add a depend on qtchooser[qt_${PN}] to the requested qt packages?
(In reply to Manuel Rüger from comment #0) > So it looks like I'm missing qdbusviewer and the issue here is not as > obvious as it could be. > This is especially bad, as it might be called via a script. I'm not convinced (yet) that this is a real problem... can you make an example? > Could we add USE flags (probably using USE expand qt_${PN}) to qtchooser to > control those symlinks and add a depend on qtchooser[qt_${PN}] to the > requested qt packages? This won't prevent people from enabling every flag in qtchooser without having the corresponding packages installed.
(In reply to Davide Pesavento from comment #1) > (In reply to Manuel Rüger from comment #0) > > So it looks like I'm missing qdbusviewer and the issue here is not as > > obvious as it could be. > > This is especially bad, as it might be called via a script. > > I'm not convinced (yet) that this is a real problem... can you make an > example? Might be a bit constructed but could be possible. if [[ -e /usr/bin/qdbus ]]; then # do something, e.g. set a value via qdbus; drop stderr/stdout. fi > > > Could we add USE flags (probably using USE expand qt_${PN}) to qtchooser to > > control those symlinks and add a depend on qtchooser[qt_${PN}] to the > > requested qt packages? > > This won't prevent people from enabling every flag in qtchooser without > having the corresponding packages installed. You could enforce deps in qtchooser via PDEPEND="qt_$PN? ( dev-qt/$PN )".
(In reply to Manuel Rüger from comment #2) > (In reply to Davide Pesavento from comment #1) > > (In reply to Manuel Rüger from comment #0) > > > So it looks like I'm missing qdbusviewer and the issue here is not as > > > obvious as it could be. > > > This is especially bad, as it might be called via a script. > > > > I'm not convinced (yet) that this is a real problem... can you make an > > example? > Might be a bit constructed but could be possible. > > if [[ -e /usr/bin/qdbus ]]; then > # do something, e.g. set a value via qdbus; drop stderr/stdout. > fi Sure, but have you actually seen something like this in the wild, i.e. in a real program or package or script? We haven't received any bug reports due to this behavior so far, and I'm worried that we may be trying to fix a use case that does not really exist in practice... Besides, both Ubuntu and Fedora seem to do the same (i.e. install all symlinks).
Closing for now. We can revisit when/if this behavior starts causing problems for other packages.