Comment 4 for bug 1652531

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

The difference between Debian and Ubuntu here is that Ubuntu uses -Wl,--as-needed linker flag [1].

The Debian build log [2] contains this line:

dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/gqrx-sdr/usr/bin/gqrx was not linked against libQt5Svg.so.5 (it uses none of the library's symbols)

It means that the build system links the binary with libQt5Svg.so.5, but the dependency is not actually used. Because Ubuntu uses -Wl,--as-needed, that library is not linked, and so the dependency does not get added.

If the application uses SVG icons, it should add the dependency on libqt5svg5 explicitly. I will also add that libqt5gui5 recommends libqt5svg5, so this package will usually be installed. We cannot make it a hard dependency because that will introduce a circular dependency.

So this is not a bug in qtsvg-opensource-src.

[1] https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wl.2C--as-needed
[2] https://buildd.debian.org/status/fetch.php?pkg=gqrx-sdr&arch=amd64&ver=2.6-1%2Bb1&stamp=1480595463