Skip to contentSkip to conversation

Detect QML Dependencies

DISCUSSION Anna (cybertailor) Vyalkova 2 participants 2 messages Mar 31, 2023

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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!