Bug#978489: QML QtQuick dependencies

Bernhard Schmidt berni at debian.org
Mon Dec 28 10:26:15 GMT 2020


Hi,

I've recently packaged a QML based application (linphone-desktop) and I
have been hit with a couple of missing qml-module-* dependencies in the
resulting binary package which caused RC bugs.

The latest one
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978489) I cannot even
reproduce locally, but the crash is pretty obvious

[00:50:46:566][0x5618e548aed0][Info]app/App.cpp:784: "Open Linphone app."
[00:50:46:566][0x5618e548aed0][Info]app/App.cpp:225: "Creating
subwindow: `qrc:/ui/views/App/Calls/CallsWindow.qml`."
[00:50:46:608][0x5618e548aed0][Warning]app/App.cpp:229:
(qrc:/ui/views/App/Calls/CallsWindow.qml:191:9: Type Chat unavailable
            Chat {
            ^, qrc:/ui/modules/Linphone/Chat/Chat.qml:215:7: Type
DroppableTextArea unavailable
          DroppableTextArea {
          ^, qrc:/ui/modules/Common/Form/DroppableTextArea.qml:108:5:
Type FileDialog unavailable
        FileDialog {
        ^,
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:42:1:
module "QtQuick.Controls" version 1.2 is not installed
    import QtQuick.Controls 1.2
    ^)

As far as I can tell DefaultFileDialog.qml (from
qml-module-qtquick-dialogs) is using QtQuick.Controls 1.2 (from
qml-module-qtquick-controls) without declaring a dependency, so the
issue is actually not with linphone but with
qtquickcontrols-opensource-src . Am I reading this correctly?

Is there any debhelper or other tool to check/set the qml dependencies
at build time? The only way I could find so far is to run something
alike to

git grep -h "import QtQuick" | sort | uniq | sort

in the source directory and map all of them to package names. But that's
error prone.

Thanks,
Bernhard



More information about the Pkg-voip-maintainers mailing list