-
Notifications
You must be signed in to change notification settings - Fork 52
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 fixes #621
base: main
Are you sure you want to change the base?
meson fixes #621
Conversation
We keep compatibility with RHEL 8 where is is meson 0.55.3. That means we cannot increase the minimal version above it. |
You already have - you're using features only available since 0.56.0. Edit: It looks like you have a case handling old meson. Feel free to merge the second commit. Recommend bumping the older meson on RHEL 8, there's really no disadvantage to it. |
libmodulemd/modulemd/meson.build Lines 287 to 293 in 1a19ce7
Meson will automatically parse I don't see this style at all, to be honest. Existing uses of version_compare() conditionals inevitably tend to use |
To help clarify here, the grammar has always said that It was deprecated without replacement in meson 1.1.0, since it has no use case and all existing instances in the wild are assumed to be typos. This PR fixes that typo. |
meson will automatically suppress the warnings about using features from later versions in the `if` statement. This is not the case when the later version features are in `else`. Rewrite the conditional to switch to comparing `>=${NEW_VERSION}` so that meson stops warning the use of newer features than our `meson_version`. Signed-off-by: Matt Jolly <[email protected]>
Later versions of meson deprecate this "feature", and every other boolean value in meson.options is actually a bool. Signed-off-by: Matt Jolly <[email protected]>
3abe672
to
d644787
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these patches look good to me now.
Getting rid of that annoying warning about the minimum version is great.
Lastly: we have no control over what version of meson is shipped in RHEL 8, because it's 1) locked due to support guarantees and 2) an OS in maintenance-only mode.
Bump the minimum meson version to reflect what is actually in-use in the project and make a boolean value actually boolean.