distributions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Fwd: Detect QML Dependencies
@ 2023-03-31 15:33 Anna (cybertailor) Vyalkova
  2023-03-31 16:00 ` Neal Gompa
  0 siblings, 1 reply; 2+ messages in thread
From: Anna (cybertailor) Vyalkova @ 2023-03-31 15:33 UTC (permalink / raw)
  To: distributions


[-- Attachment #0: Type: message/rfc822, Size: 66123 bytes --]

[-- Attachment #1.1: Type: text/plain, Size: 678 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Detect QML Dependencies
  2023-03-31 15:33 Fwd: Detect QML Dependencies Anna (cybertailor) Vyalkova
@ 2023-03-31 16:00 ` Neal Gompa
  0 siblings, 0 replies; 2+ messages in thread
From: Neal Gompa @ 2023-03-31 16:00 UTC (permalink / raw)
  To: Anna (cybertailor) Vyalkova; +Cc: distributions

On Fri, Mar 31, 2023 at 11:39 AM Anna (cybertailor) Vyalkova
<cyber+gentoo@sysrq.in> 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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-31 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 15:33 Fwd: Detect QML Dependencies Anna (cybertailor) Vyalkova
2023-03-31 16:00 ` Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).