Skip to content

build: validate GTK and librsvg typelibs in configure - #1148

Open
akgeilani-tech wants to merge 1 commit into
libratbag:masterfrom
akgeilani-tech:pr/h3-configure-checks
Open

akgeilani-tech wants to merge 1 commit into
libratbag:masterfrom
akgeilani-tech:pr/h3-configure-checks

Conversation

@akgeilani-tech

Copy link
Copy Markdown

Summary

GTK and librsvg are loaded through PyGObject, so pkg-config cannot find them and a missing typelib only failed at application startup. When runtime-dependency-checks is enabled, configure now imports Gtk 3.22+ and Rsvg 2.0 and fails with the Debian package names (gir1.2-gtk-3.0, gir1.2-rsvg-2.0).

A new runtime-checks matrix entry exercises this path in CI.

Changes

  • meson.build: configure-time typelib check.
  • README.md: document the runtime typelibs.
  • .github/workflows/main.yml: add gir1.2-gtk-3.0 and the runtime-checks matrix entry.

Testing

With checks disabled (as in the existing CI):

meson setup builddir -Druntime-dependency-checks=false
ninja -C builddir
meson test -C builddir --print-errorlogs

Result: 6 OK / 0 fail; black and ruff are clean.

The check itself was validated with a minimal Meson project (this host lacks pygobject-3.0.pc): Gtk 3.0 + Rsvg 2.0 passes; Gtk 9.0 fails with the expected message. The runtime-checks CI entry covers the full path on Ubuntu 22.04.

Notes

The check only runs when runtime-dependency-checks is enabled; the existing debug/plain/release entries are unchanged.

GTK and librsvg are loaded through PyGObject, so pkg-config cannot find them
and a missing typelib only showed up at application startup. When runtime
dependency checks are enabled, import them during configure and fail naming
the Debian packages.

Run that path in CI through a dedicated runtime-checks matrix entry.
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.

1 participant