Detect QML Dependencies
Hey,
in Debian we package more and more QML applications and face the problem, that we don't have tooling to easily get a list of QML dependencies out of the qml files. I normally end up doing a grep in the qml files and than I need to translate these dependencies to the corresponding Debian packages. What is quite error prune.
Does anyone have already a working solution to detect the QML dependencies - maybe there is alaready a qmllinter/qmlchecker tool that returns the needed QML dependencies and create package dependencies?
That is currently my way:
grep -r --include="*qml" '^import ' | sed 's/^.*\.qml:import \([^ ]*.*\)/\1/g' | sort | uniq
Regards,
hefee
Quoted 12 lines · Anna (cybertailor) Vyalkova
Hey,
in Debian we package more and more QML applications and face the problem, that we don't have tooling to easily get a list of QML dependencies out of the qml files. I normally end up doing a grep in the qml files and than I need to translate these dependencies to the corresponding Debian packages. What is quite error prune.
Does anyone have already a working solution to detect the QML dependencies - maybe there is alaready a qmllinter/qmlchecker tool that returns the needed QML dependencies and create package dependencies?
Quoted 5 lines
That is currently my way:
grep -r --include="*qml" '^import ' | sed 's/^.*\.qml:import \([^ ]*.*\)/\1/g' | sort | uniq
I've been looking into this for Fedora as well:
https://pagure.io/fedora-kde/SIG/issue/37
There are some examples of dependency generators from openSUSE, Sailfish OS, and OpenMandriva.
It'd be good to turn this into a unified framework that distributions can use, because all these implementations are kind of scattered with their own issues.
Signature · 1 line
真実はいつも一つ!/ Always, there's only one truth!