Detect QML Dependencies

Neal Gompa ngompa13 at gmail.com
Fri Mar 31 17:05:07 BST 2023


On Thu, Mar 30, 2023 at 6:32 PM Sandro Knauß <bugs at sandroknauss.de> wrote:
>
> 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
>

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.


-- 
真実はいつも一つ!/ Always, there's only one truth!


More information about the Distributions mailing list