diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-08-13 21:01:23 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-09-12 15:38:00 +0100 |
commit | 8b3ad3e9a061a0e66b60e31655e10473b05ee5b3 (patch) | |
tree | 3585eae851690bd9614d6bd19fc285708e1a74e6 /docs/markdown/snippets | |
parent | eb260f614195306d91e525f703eaa5708c0b1e88 (diff) | |
download | meson-8b3ad3e9a061a0e66b60e31655e10473b05ee5b3.zip meson-8b3ad3e9a061a0e66b60e31655e10473b05ee5b3.tar.gz meson-8b3ad3e9a061a0e66b60e31655e10473b05ee5b3.tar.bz2 |
Add a release note snippet
Also tweak releated documentation
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/version_comparison.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/snippets/version_comparison.md b/docs/markdown/snippets/version_comparison.md new file mode 100644 index 0000000..861a3ee --- /dev/null +++ b/docs/markdown/snippets/version_comparison.md @@ -0,0 +1,15 @@ +## Version comparison + +`dependency(version:)` and other version constraints now handle versions +containing non-numeric characters better, comparing versions using the rpmvercmp +algorithm (as using the `pkg-config` autoconf macro `PKG_CHECK_MODULES` does). + +This is a breaking change for exact comparison constraints which rely on the +previous comparison behaviour of extending the compared versions with `'0'` +elements, up to the same length of `'.'`-separated elements. + +For example, a version of `'0.11.0'` would previously match a version constraint +of `'==0.11'`, but no longer does, being instead considered strictly greater. + +Instead, use a version constraint which exactly compares with the precise +version required, e.g. `'==0.11.0'`. |