meson: Fix various versions

Follow up for 8b3b01c4b7

We switch to PROJECT_VERSION instead of PROJECT_VERSION_FULL where
we report our version and which is likely being parsed to avoid
breaking compat. If we didn't, the output would change from systemd
255 to systemd 255.1 which could break various tools.
This commit is contained in:
Daan De Meyer
2024-07-04 19:28:12 +02:00
parent a79b6dc070
commit 6a4fcf8cef
5 changed files with 17 additions and 16 deletions
+2 -2
View File
@@ -287,8 +287,8 @@ int version(void) {
if (colors_enabled())
b = systemd_features_with_color();
printf("%ssystemd " PROJECT_VERSION_FULL "%s (" GIT_VERSION ")\n%s\n",
ansi_highlight(), ansi_normal(),
printf("%ssystemd %i%s (" GIT_VERSION ")\n%s\n",
ansi_highlight(), PROJECT_VERSION, ansi_normal(),
b ?: systemd_features);
return 0;
}