aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-09-13 22:19:35 +0300
committerGitHub <noreply@github.com>2018-09-13 22:19:35 +0300
commitf2041405fbd39321a8b80d78905be84cc84e15ee (patch)
tree774af2e185985d351aa273ec7fe35f626604fb70 /docs/markdown
parent8fa7c29661db94b5cafac2aab53f738df2cdaf99 (diff)
parent1394cb9263a17484fea01ce807402dcc95e68e20 (diff)
downloadmeson-f2041405fbd39321a8b80d78905be84cc84e15ee.zip
meson-f2041405fbd39321a8b80d78905be84cc84e15ee.tar.gz
meson-f2041405fbd39321a8b80d78905be84cc84e15ee.tar.bz2
Merge pull request #4017 from jon-turney/version-comparison-rewrite
Use rpmvercmp version comparison
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md2
-rw-r--r--docs/markdown/snippets/version_comparison.md15
2 files changed, 16 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 907ceda..b616d3e 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1094,7 +1094,7 @@ Project supports the following keyword arguments.
`meson.project_license()`.
- `meson_version` takes a string describing which Meson version the
- project requires. Usually something like `>0.28.0`.
+ project requires. Usually something like `>=0.28.0`.
- `subproject_dir` specifies the top level directory name that holds
Meson subprojects. This is only meant as a compatibility option
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'`.