Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553316 - dev-qt/qtchooser installs symlinks to binaries that are not available
Summary: dev-qt/qtchooser installs symlinks to binaries that are not available
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-26 11:13 UTC by Manuel Rüger (RETIRED)
Modified: 2015-07-22 01:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2015-06-26 11:13:15 UTC
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?
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2015-06-26 12:57:02 UTC
(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.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2015-06-26 13:08:08 UTC
(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 )".
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2015-06-26 13:58:30 UTC
(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).
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2015-07-22 01:25:54 UTC
Closing for now. We can revisit when/if this behavior starts causing problems for other packages.