Skip to content

[modemmanager-qt] New port - #54950

Draft
Daniele E. Domenichelli (drdanz) wants to merge 2 commits into
microsoft:masterfrom
drdanz:modemmanager-qt
Draft

Daniele E. Domenichelli (drdanz) wants to merge 2 commits into
microsoft:masterfrom
drdanz:modemmanager-qt

Conversation

@drdanz

Copy link
Copy Markdown
Contributor
  • Changes comply with the maintainer guide.
  • The packaged project is mature and ready for broad sharing with vcpkg users
    • Has a release at least 6 months old or 6 months of demonstrated public development
    • Is an official component of something else meeting that criteria
    • Some other reason (please explain)
  • The packaged project shows strong association with the chosen port name. Check this box if at least one of the following criteria is met:
    • The project is in Repology: https://repology.org/project/modemmanager-qt/versions
    • The project is amongst the first web search results for "modemmanager-qt" or "modemmanager-qt C++". Include a screenshot of the search engine results in the PR.
    • The port name follows the 'GitHubOrg-GitHubRepo' form or equivalent Owner-Project form.
  • Optional dependencies of the build are all controlled by the port. A dependency is controlled if it is declared an unconditional dependency in vcpkg.json, or explicitly disabled through patches or build system arguments such as CMAKE_DISABLE_FIND_PACKAGE_Xxx or VCPKG_LOCK_FIND_PACKAGE
  • The versioning scheme in vcpkg.json matches what upstream says.
  • The license declaration in vcpkg.json matches what upstream says.
  • The installed as the "copyright" file matches what upstream says.
  • The source code of the component installed comes from an authoritative source.
  • The generated "usage text" is brief and accurate. See adding-usage for context. Don't add a usage file if the automatically generated usage is correct.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Exactly one version is added in each modified versions file.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The port installs a shared library when static linkage is requested and accepts older ModemManager versions that leave installed cell-broadcast headers unusable.

2 open issues
What changed in this PR

Adds modemmanager-qt 6.31.0, KDE’s Qt wrapper for the ModemManager D-Bus API, as a Linux-only vcpkg port.

Changes:

  • Adds the port recipe and metadata, including a system ModemManager development-package requirement.
  • Adds Qt XML dependency discovery for static consumers.
  • Registers the port in the version database and KDE Frameworks update script.

Validation covered the supplied changes and relevant upstream build and header definitions; no builds or consumer tests were run.

File Description
versions/​m-/​modemmanager-qt.json Records the initial port version.
versions/​baseline.json Adds the 6.31.0 baseline entry.
scripts/​update_kf6.py Includes the port in KDE Frameworks updates.
ports/​modemmanager-qt/​vcpkg.json Defines metadata, Linux support, and dependencies.
ports/​modemmanager-qt/​portfile.cmake Downloads, configures, installs, and packages the library.
ports/​modemmanager-qt/​fix-static-dependencies.patch Adds Qt XML discovery for static consumers.

Review effort: Balanced

Comment thread ports/modemmanager-qt/portfile.cmake Resolved
Comment thread ports/modemmanager-qt/portfile.cmake Resolved
@drdanz
Daniele E. Domenichelli (drdanz) force-pushed the modemmanager-qt branch 2 times, most recently from 341edd8 to 1c6bde4 Compare November 8, 2026 08:57
@drdanz

Copy link
Copy Markdown
Contributor Author

The x64-linux failure is because the CI image is missing ModemManager headers. I don't think that a vcpkg port is worth at the moment, so instead I suggest to add modemmanager-dev to the CI image (the build message also requests that).
I added it to provision-image.sh like I did for libavahi-common-dev in kdnssd (#54922), but that didn't fix the PR, what's the proper way to handle this?

@drdanz
Daniele E. Domenichelli (drdanz) force-pushed the modemmanager-qt branch 2 times, most recently from 723c5d0 to dcf614c Compare November 8, 2026 10:27
@dg0yt

Copy link
Copy Markdown
Contributor

I suggest to add modemmanager-dev to the CI image (the build message also requests that).

This seems to rely on some packages which are also in vcpkg.
https://packages.ubuntu.com/stonking/modemmanager
Can this provide robust configurations at all?

@drdanz

Copy link
Copy Markdown
Contributor Author

Kai Pastor (@dg0yt) The page you linked is for the daemon package. modemmanager-dev has no dependencies at all, so nothing can clash with vcpkg packages, see https://packages.ubuntu.com/stonking/modemmanager-dev

At runtime it needs the system's ModemManager daemon anyway, like the other D-Bus services used by the KF6 ports. If you'd rather not add it to the CI image, an alternative is a small modemmanager-dev port installing just these headers.
I don't think that creating a port what packages the whole modemmanager daemon makes sense, since applications would still need to use the distribution daemon connecting to the system dbus. Also this requires some dependencies (gudev and possibly more) that are not packaged by vcpkg yet.

@dg0yt

Copy link
Copy Markdown
Contributor

The page you linked is for the daemon package. modemmanager-dev has no dependencies at all, so nothing can clash with vcpkg packages, see https://packages.ubuntu.com/stonking/modemmanager-dev

I picked the main package because this what you normally get as a dependency of a dev package. But I acknowledge that it is different here, and it is good to have this shown explicitly.

(OTOH if it is enough to build on modemmanager headers, why couldn't vcpkg package just the headers?)

@drdanz

Copy link
Copy Markdown
Contributor Author

Blocked by #55055

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants