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

forced fallback doesn't work as documented for find_program #14006

Open
matthiasclasen opened this issue Dec 14, 2024 · 1 comment
Open

forced fallback doesn't work as documented for find_program #14006

matthiasclasen opened this issue Dec 14, 2024 · 1 comment
Assignees

Comments

@matthiasclasen
Copy link

GTK has a gi-docgen subproject, and the wrap file has program_names = gi-docgen in its provides section.

GTK uses find_program('gi-docgen') in its meson.build.

I configure GTK with --force-fallback-for=gi-docgen.

meson doesn't use the subproject and continues to use /usr/bin/gi-docgen.

This is wrong. It should have built the subproject and used the gi-docgen binary that it provides.

@dcbaker dcbaker self-assigned this Dec 14, 2024
@dcbaker
Copy link
Member

dcbaker commented Dec 14, 2024

Looking at the code there is no attempt to make that case work, we only honor the --force-fallback-for flag in cases of dependency, and not find_program.

I've had it in mind to refactor the internals of find_program to work more like dependency, so I'll see if I can solve this at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants