Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnome module: fix invalid find_tool variable contents causing crash #12479

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

eli-schwartz
Copy link
Member

If a tool that is looked up in a .pc file is supposed to be there and has a pkg-config variable entry, but the value is incorrect, we can't actually use it.

Since commit ab3d020 we actually do run the ExternalProgram search procedure on it though -- which caused it to go wonky and return a None if it doesn't exist, instead of containing a path to a program that does not exist and fails at build time. This is better in the case where searching helps resolve .exe file extensions -- and worse in the case where patches to the dependency means nothing we do is ever enough to actually find what is expected, since now we crash.

Raise an explicit error in such a case, pointing out that the dependency itself is broken and needs a distributor-side resolution.

Fixes #12412

If a tool that is looked up in a .pc file is supposed to be there and
has a pkg-config variable entry, but the value is incorrect, we can't
actually use it.

Since commit ab3d020 we actually do run
the ExternalProgram search procedure on it though -- which caused it to
go wonky and return a None if it doesn't exist, instead of containing a
path to a program that does not exist and fails at build time. This is
better in the case where searching helps resolve .exe file extensions --
and worse in the case where patches to the dependency means nothing we
do is ever enough to actually find what is expected, since now we crash.

Raise an explicit error in such a case, pointing out that the dependency
itself is broken and needs a distributor-side resolution.

Fixes mesonbuild#12412
@xclaesse xclaesse merged commit 87480bc into mesonbuild:master Nov 5, 2023
57 of 61 checks passed
@eli-schwartz eli-schwartz deleted the find_tool-incorrect branch November 6, 2023 03:59
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.

regression: meson 1.2.3 fails to build gtk3, gtk4, glib-networking and gvfs
2 participants