Skip to content

meson: bump minimum version to 0.51 and remove usages of deprecated features

Íñigo Huguet requested to merge ih/meson_deprecations into main

Summary

Bump minimum meson version to 0.51 as we were using some features from an older version than the previous one.

Remove the usages of all the deprecated features so we don't get sudden build failures when they are finally removed from the latest meson.

Purpose

These changes fixes the following warnings:

WARNING: Project specifies a minimum meson_version '>= 0.47.2' but uses features which were added in newer versions:
 * 0.48.0: {'meson.add_dist_script'}
 * 0.49.0: {'Calling "add_dist_script" with multiple arguments'}
NOTICE: Future-deprecated features used:
 * 0.48.0: {'module python3'}
 * 0.55.0: {'ExternalProgram.path'}
 * 0.56.0: {'dependency.get_pkgconfig_variable', 'meson.source_root'}

Resolves: https://issues.redhat.com/browse/NMT-1064

Checklist

Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
  • you have added unit tests if applicable
  • the NEWS file is updated when the change deserves to be mentioned, for example for new features, behavior changes, API deprecations, etc.

Merge request reports