Debhelper 14 and dh_qmldeps
Hefee
hefee at debian.org
Sun May 3 09:42:22 BST 2026
Hi Aurélien,
> >The relevant changes:
> >* you are able to control the dependency field via qmlfiles with the -d
> >parameter. As Debhelper 14 does not support demotion anymore.
>
> Not sure I understand this. Could you give an example ? Does it mean we need
> to update qmlfiles for all packages shipping one ?
No file needs to be updated, as if no -d parameter is given its fallback is
Depends. I describe that in the documentation:
https://qt-kde-team.pages.debian.net/dh_qmldeps.html
I will add kquickimageeditor/debian/kquickimageeditor-dev.qmlfiles:
-d Suggests -qmlFiles ${QMLDEPS_AUTODETECT_FILES}
libkf6purpose-bin should be handled correctly, if we add ${qml6:Recommends} or
switch to Debhelper 14.
Do you know any other packages, where demotion is happening?
I think Niels Thykier made a point, that instead of doing the do the demotions
via pkg.qmlfiles we should improve dh_qmldeps to detect more cases correctly.
That's why I added the examples detection, as this seems like a pattern of
demotions. if there is any other pattern, please give a hint, than dh_qmldeps
can be improved.
> IIRC we have cases where we previously didn't put ${qml6:Depends} for *some*
> binaries for multi-binary source packages. Can this now work automagically
> ? Are there not cases where we'll need to override the default behaviour ?
Yes this will work automatically with debhelper 14 and pkg-kde-tools
0.22.0~rc2.
From the early beginning dh_qmldeps worked in an opportunistic mode.
It scanned for each binary package, if qml files are shipped or a pkg.qmlfiles
exists, if it does detect any qmlfiles, qml dependencies are written to
substvars. For those not shipping any qmlfiles no substvars were created and no
error was triggered.
I just made the build fails if ${qml6:Depends} is missing for the packages if
qml dependencies were detected, as debhelper 13 would silently ignore those
unsued substvars. That part is not triggered for debhelper 14.
Btw. the other way round is not working anymore - You cannot force dh_qmldeps
to break the build, if no qmlfiles are found by adding ${qml6:Depends}.
Regards,
hefee
PS: I also update dh_plasmaversionbase for debhelper 14 and not fails if
plasma var dep does not exists.
https://salsa.debian.org/qt-kde-team/pkg-kde-tools/-/blob/master/
dh_plasmaversionbase?ref_type=heads#L46
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-talk/attachments/20260503/5bf52eb7/attachment.sig>
More information about the pkg-kde-talk
mailing list