From: Zbigniew Jędrzejewski-Szmek Date: Wed, 19 Dec 2018 08:29:32 +0000 (+0100) Subject: Remove use of PACKAGE_STRING X-Git-Tag: v241-rc1~131^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2aaf130991149055f2f9b606d0b52d673d75cfd;p=thirdparty%2Fsystemd.git Remove use of PACKAGE_STRING PACKAGE_VERSION is more explicit, and also, we don't pretend that changing the project name in meson.build has any real effect. "systemd" is embedded in a thousand different places, so let's just use the hardcoded string consistently. This is mostly in preparation for future changes. --- diff --git a/meson.build b/meson.build index 1608278fbb0..88fe6a16156 100644 --- a/meson.build +++ b/meson.build @@ -20,7 +20,6 @@ libudev_version = '1.6.11' # names, sometimes. Not all variables are included in every # set. Ugh, ugh, ugh! conf = configuration_data() -conf.set_quoted('PACKAGE_STRING', meson.project_name() + ' ' + meson.project_version()) conf.set_quoted('PACKAGE_VERSION', meson.project_version()) substs = configuration_data() diff --git a/src/basic/util.c b/src/basic/util.c index c4f12a6daa0..4d0c64f932f 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -557,7 +557,7 @@ uint64_t system_tasks_max_scale(uint64_t v, uint64_t max) { } int version(void) { - puts(PACKAGE_STRING "\n" + puts("systemd " PACKAGE_VERSION "\n" SYSTEMD_FEATURES); return 0; } diff --git a/src/core/main.c b/src/core/main.c index 839dc062ff7..0c2313fc191 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1914,7 +1914,7 @@ static void log_execution_mode(bool *ret_first_boot) { if (arg_system) { int v; - log_info(PACKAGE_STRING " running in %ssystem mode. (" SYSTEMD_FEATURES ")", + log_info("systemd " PACKAGE_VERSION " running in %ssystem mode. (" SYSTEMD_FEATURES ")", arg_action == ACTION_TEST ? "test " : "" ); v = detect_virtualization(); @@ -1942,7 +1942,7 @@ static void log_execution_mode(bool *ret_first_boot) { _cleanup_free_ char *t; t = uid_to_name(getuid()); - log_debug(PACKAGE_STRING " running in %suser mode for user " UID_FMT "/%s. (" SYSTEMD_FEATURES ")", + log_debug("systemd " PACKAGE_VERSION " running in %suser mode for user " UID_FMT "/%s. (" SYSTEMD_FEATURES ")", arg_action == ACTION_TEST ? " test" : "", getuid(), strna(t)); } diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 1e08fcc5541..8d459235bfd 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -236,7 +236,7 @@ int start_upload(Uploader *u, easy_setopt(curl, CURLOPT_VERBOSE, 1L, LOG_WARNING, ); easy_setopt(curl, CURLOPT_USERAGENT, - "systemd-journal-upload " PACKAGE_STRING, + "systemd-journal-upload " PACKAGE_VERSION, LOG_WARNING, ); if (arg_key || startswith(u->url, "https://")) {