Handing QML dependencies

Lisandro Damián Nicanor Pérez Meyer perezmeyer at gmail.com
Mon Oct 14 19:56:37 BST 2024


Awesome!

On Sat, 12 Oct 2024 at 10:51, Hefee <hefee at debian.org> wrote:
>
> Hey,
>
> After some more work: Say hello to dh_qmldeps
>
> ( do not mix it with dh_qmlcdeps ;) Anyways are qmlc files still a thing in Qt
> 6?
>
> dh_qmldeps is a layer on top of  pkgkde-getqmldepends to make it more usable
> in dh.
>
> How to use dh_qmldeps:
> *  add dh-sequence-qmldeps as build depends
>  * and ${qml6:Depends} to Depends/Recommends of the package you want to add
> qmldepends
>
> and most of the time that's it. (okay the need to have qml module installed is
> not solved yet).
>
> dh_qmldeps will try to find in every binary package for qml files and warn if
> ${qml6:Depends} is missing somewhere.
> If it is a single bin package it will fall back to **/*.qml, if no qml files
> are found in the binary package.
>
> To modify the behavior of dh_qmldeps, you can add:
> * debian/qmldepends.overrides:
>    <qml.module.name> <debian_pkg_list>
>   (this will resolve the qml depdendecy <qml.module.name> to the
> <debian_pkg_list> (splitted by ", ", you can also add version dependencies (>=
> X.Y)
>     (see neochat [1] or kreversi - both used that to fix the internal shipped
> qml modules in the binary)
>
> * debian/<pkg>.qmlfiles
>   the arguments for qmlimportscanner, to override the automatic detection of
> files
>    (see kosmindoormap [2]
>    that package ship multiple packages have qml dependencies:
>      - kosmindoormap-demo
>      - qml6-module-org-kde-kosmindoormap
> )
>
> To get more an idea where we want to go, I started to add qml packages to the
> dev packages. I started with some leaf libs: libkdegams, kpublictransport,
> kosmindoormap, kopeninghours
>
> The next days, I'll start with some documentation on our website.
>
> I'm happy for any feedback and help.
>
> Regards,
>
> hefee
>
> [1] https://salsa.debian.org/qt-kde-team/kde/neochat/-/blob/debian/
> experimental/debian/qmldeps.overrides
> [2] https://salsa.debian.org/qt-kde-team/kde/kosmindoormap/-/blob/debian/
> experimental/debian/kosmindoormap-demo.qmlfiles?ref_type=heads--
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-kde-talk



-- 
Lisandro Damián Nicanor Pérez Meyer
https://perezmeyer.com.ar/



More information about the pkg-kde-talk mailing list