Repository navigation
build: validate GTK and librsvg typelibs in configure - #1148
Open
akgeilani-tech wants to merge 1 commit into
Open
akgeilani-tech wants to merge 1 commit into
akgeilani-tech wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-checksis 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-checksmatrix entry exercises this path in CI.Changes
meson.build: configure-time typelib check.README.md: document the runtime typelibs..github/workflows/main.yml: addgir1.2-gtk-3.0and theruntime-checksmatrix 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-errorlogsResult: 6 OK / 0 fail;
blackandruffare 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. Theruntime-checksCI entry covers the full path on Ubuntu 22.04.Notes
The check only runs when
runtime-dependency-checksis enabled; the existing debug/plain/release entries are unchanged.