Comment 3 for bug 1500859

Revision history for this message
James Henstridge (jamesh) wrote :

This is a bit of a weird one, since none of the libraries in the qtubuntu-media package actually link to libmediascanner:

    phablet@ubuntu-phablet:~$ dpkg -L qtubuntu-media | grep .so
    /usr/lib/arm-linux-gnueabihf/qt5/plugins/mediaservice/libaalmediaplayer.so
    /usr/lib/arm-linux-gnueabihf/qt5/imports/Ubuntu/Media/libubuntumediaplugin.so
    phablet@ubuntu-phablet:~$ ldd /usr/lib/arm-linux-gnueabihf/qt5/plugins/mediaservice/libaalmediaplayer.so | grep mediascanner
    phablet@ubuntu-phablet:~$ ldd /usr/lib/arm-linux-gnueabihf/qt5/imports/Ubuntu/Media/libubuntumediaplugin.so | grep mediascanner
    phablet@ubuntu-phablet:~$

While there is certainly some code in the tree using the mediascanner APIs:

http://bazaar.launchpad.net/~phablet-team/qtubuntu-media/trunk/view/head:/src/aal/aalmetadatareadercontrol.cpp#L81

That file doesn't appear to be listed in the sources of qmake project file for the plugin:

http://bazaar.launchpad.net/~phablet-team/qtubuntu-media/trunk/view/head:/src/aal/aal.pro

While the plugin is being linked with -lmediascanner-2.0, that dependency is probably ignored due to everything in Ubuntu being linked using the --as-needed linker flag.

Is it possible that someone added the explicit dependency on libmediascanner-2.0-3 because they didn't understand why it wasn't being added automatically?