Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 761727

Summary: dev-qt/qtattributionsscanner: New package request (was: dev-qt/qtchooser creates dangling link to non-existing binary)
Product: Gentoo Linux Reporter: Jean-Francois Ostiguy <jfostiguy>
Component: New packagesAssignee: Qt Bug Alias <qt>
Status: UNCONFIRMED ---    
Severity: normal CC: asturm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 450444    

Description Jean-Francois Ostiguy 2020-12-26 02:28:10 UTC
The qtattributionsscanner utility ( from the qttools module) is missing even though emerging dev-qt/qtdiags creates the link  /usr/bin/qtattributionsscanner -> qtchooser.

qtattributionsscanner is never built; the corresponding executable which should be under /usr/lib64/qt5/bin  

i.e. /usr/lib64/qt5/bin/qtattributionsscanner

is simply missing.

For other utilities from the qttools modules, there is a corresponding 
package e.g.

dev-qt/qtplugininfo
 
which installs the actual executable, i.e. this case: 

/usr/lib64/qt5/bin/qtplugininfo

while  dev-qt/qtchooser 

creates the link 

 /usr/bin/qtplugininfo -> qtchooser


Bottom line: a package: 

dev-qt/qtattributionsscanner 

is needed and I believe is missing. 


At the moment, executing qtattributionsscanner hangs the system.
Comment 1 Andreas Sturmlechner gentoo-dev 2020-12-26 08:49:24 UTC
It is one of the weak points of qtchooser that it installs various dangling links, either because not everything is packaged or because some binary only exists in Qt4 or Qt5. In case of qtattributionscanner, it is explicitly disabled in Gentoo:

https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/qt5-build.eclass#n672

Meanwhile, QtChooser's demise is actively being worked on:
https://github.com/gentoo/qt/pull/225

(In reply to Jean-Francois Ostiguy from comment #0)
> At the moment, executing qtattributionsscanner hangs the system.
What do you need qtattributionsscanner for?
Comment 2 Andreas Sturmlechner gentoo-dev 2020-12-26 08:51:35 UTC
(In reply to Andreas Sturmlechner from comment #1)
> (In reply to Jean-Francois Ostiguy from comment #0)
> > At the moment, executing qtattributionsscanner hangs the system.
> What do you need qtattributionsscanner for?
PS: I forgot, it doesn't exactly hang here:
$ qtattributionsscanner 
qtattributionsscanner: could not exec '/usr/lib64/qt5/bin/qtattributionsscanner': No such file or directory
Comment 3 Jean-Francois Ostiguy 2020-12-26 14:16:10 UTC

Well it was hanging for me; the apparent cause was that qtattributionsscanner  under /usr/lib64/qt5/bin was also a link to qtchooser.
I am not sure why, but I suspect a side effect from a recent (2 -3 weeks ago) profile migration.

In answer to your question, qattributionsscanner is used to build the documentation of some tools e.g. GammaRay from KDAB. My understanding is that the tool reads *.json files to incorporate attributions into the documentation.     
qtattributionsscanner should be straightforward to package; since it is part 
of the official qt tools, why omit it ?
Comment 4 Andreas Sturmlechner gentoo-dev 2020-12-26 15:37:04 UTC
Well, GammaRay remains not packaged in Gentoo at least for the time being, but upon trying I can see it may cause trouble down the line for mis-detecting qtattributionsscanner when the qtchooser link is present:

> -- The following features have been enabled:
> 
>  * User Manual creation in qch format, Requires qdoc, qhelpgenerator,
> qtattributionsscanner, the qdoc templates and index files
As for being packaged or not, packaging is not *gratis* and I guess no one registered any demand for it yet, at least not via bugzie.

(In reply to Jean-Francois Ostiguy from comment #3)
> Well it was hanging for me; the apparent cause was that
> qtattributionsscanner under /usr/lib64/qt5/bin was also a link to qtchooser.
> I am not sure why, but I suspect a side effect from a recent (2 -3 weeks
> ago) profile migration.
I can't see a scenario where that would happen, qtchooser does not own any paths below /usr/lib* but mostly only installs links into /usr/bin.