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

meson: fix broken commit that broke the build #3368

Merged
merged 2 commits into from
Dec 16, 2022

Conversation

eli-schwartz
Copy link
Contributor

In commit 031de3c some code was added that returned a boolean, but was treated as if it returned a dependency object. This wasn't tested and could not work. Moreover, zstd no longer built at all unless the entire programs directory was disabled and not even evaluated.

Fix the return type checking.

Also:

  • fix warning for using too-new features

In commit 031de3c some code was added
that returned a boolean, but was treated as if it returned a dependency
object. This wasn't tested and could not work. Moreover, zstd no longer
built at all unless the entire programs directory was disabled and not
even evaluated.

Fix the return type checking.
In commit 031de3c a feature of Meson
0.50.0 was added, but the minimum specified version of Meson is 0.48.0.
Meson therefore emitted a warning:

WARNING: Project targets '>=0.48.0' but uses feature introduced in '0.50.0': required arg in compiler.has_header.

And if anyone actually used Meson 0.48.0 to build with, it would error
out with mysterious claims that the build file itself is invalid, rather
than telling the user to install a newer version of Meson.

Solve this by bumping the minimum version to align with reality. This
e.g. drops support for Debian oldstable (buster)'s packaged version of
Meson, but still works if backports are enabled, or if the user can
`pip install` a newer version.
@eli-schwartz
Copy link
Contributor Author

This should have been caught by Travis CI, but apparently Travis is no longer enabled. And that was where the historic tests of Meson were being done.

As mentioned in another issue, I have prepared additions to the CI to test Meson -- they currently rely on building other fixes, so I'll PR those once the other fixes go in.

@yoniko
Copy link
Contributor

yoniko commented Dec 16, 2022

Looks good, merging.

@yoniko yoniko merged commit 8745229 into facebook:dev Dec 16, 2022
@eli-schwartz eli-schwartz deleted the meson-execinfo-bool branch December 18, 2022 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants