diff --git a/meson.build b/meson.build index 7816ba9949..100265570d 100644 --- a/meson.build +++ b/meson.build @@ -21,7 +21,6 @@ libudev_version = '1.6.11' # set. Ugh, ugh, ugh! conf = configuration_data() conf.set('PROJECT_VERSION', meson.project_version()) -conf.set_quoted('PACKAGE_VERSION', meson.project_version()) substs = configuration_data() substs.set('PROJECT_URL', 'https://www.freedesktop.org/wiki/Software/systemd') @@ -584,6 +583,10 @@ endif ##################################################################### +vcs_tagger = [meson.source_root() + '/tools/meson-vcs-tag.sh', + '@0@/.git'.format(meson.source_root()), + meson.project_version()] + sed = find_program('sed') awk = find_program('awk') m4 = find_program('m4') diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 1f69b9fda1..3915b66739 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -14,6 +14,7 @@ #include "alloc-util.h" #include "analyze-security.h" #include "analyze-verify.h" +#include "build.h" #include "bus-error.h" #include "bus-unit-util.h" #include "bus-util.h" @@ -696,7 +697,7 @@ static int analyze_plot(int argc, char *argv[], void *userdata) { "\n" "\n" "\n\n" - "\n\n", PACKAGE_VERSION); + "\n\n", GIT_VERSION); /* style sheet */ svg("\n