From: Sven Eden Date: Mon, 27 Aug 2018 06:44:24 +0000 (+0200) Subject: Prep v239: A few cosmetic upgrades X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9d814db96b6f093fc334f60fa7c97fb3ce9852a8 Prep v239: A few cosmetic upgrades --- diff --git a/man/custom-entities.ent.in b/man/custom-entities.ent.in index 002028df0..9c70fecb2 100644 --- a/man/custom-entities.ent.in +++ b/man/custom-entities.ent.in @@ -1,12 +1,12 @@ diff --git a/meson.build b/meson.build index cdb4dedc8..93a108000 100644 --- a/meson.build +++ b/meson.build @@ -1442,6 +1442,19 @@ conf.set10('ENABLE_EFI', have) ##################################################################### +#if 1 /// These are not needed by elogind, but meson wants them although they are commented out. +conf.set_quoted('CERTIFICATE_ROOT', '/dev/null') +conf.set_quoted('MEMORY_ACCOUNTING_DEFAULT_YES_NO', 'N/A') +conf.set_quoted('MOUNT_PATH', '/dev/null') +conf.set_quoted('SYSTEM_ENV_GENERATOR_PATH', '/dev/null') +conf.set_quoted('SYSTEM_GENERATOR_PATH', '/dev/null') +conf.set_quoted('UMOUNT_PATH', '/dev/null') +conf.set_quoted('USER_ENV_GENERATOR_PATH', '/dev/null') +conf.set_quoted('USER_GENERATOR_PATH', '/dev/null') +##################################################################### + +#endif // 1 + config_h = configure_file( output : 'config.h', configuration : conf) diff --git a/pwx b/pwx index 2bee2d829..d50863bb6 160000 --- a/pwx +++ b/pwx @@ -1 +1 @@ -Subproject commit 2bee2d8292d4cfb3bfdfd6ac7db3a5ca75aca306 +Subproject commit d50863bb69d4fd2c59070f2fc931ff113a68c6b6 diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 63a206ce2..5178dd847 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -2434,7 +2434,6 @@ static int method_can_shutdown_or_sleep( } finish: - return sd_bus_reply_method_return(message, "s", result); } diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 1d7d46ac1..77b380ca3 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -363,7 +363,11 @@ static bool can_s2h(Manager *m) { } FOREACH_STRING(p, "suspend", "hibernate") { +#if 0 /// elogind must transport a pointer to its managers instance + r = can_sleep(p); +#else r = can_sleep(m, p); +#endif // 0 if (IN_SET(r, 0, -ENOSPC)) { log_debug("Unable to %s system.", p); return false; @@ -395,7 +399,11 @@ int can_sleep(Manager *m, const char *verb) { assert(STR_IN_SET(verb, "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate")); if (streq(verb, "suspend-then-hibernate")) +#if 0 /// elogind must transport a pointer to its managers instance + return can_s2h(); +#else return can_s2h(m); +#endif // 0 #if 0 /// already parsed by elogind config r = parse_sleep_config(verb, &modes, &states, NULL); diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index fba7b9baf..87efd0ac7 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -383,6 +383,7 @@ int main(int argc, char *argv[]) { r = execute_s2h(delay); else r = execute(modes, states); +finish: return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; } #else