diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2019-06-09 13:55:56 +0300 |
|---|---|---|
| committer | Timo Teräs <timo.teras@iki.fi> | 2019-06-09 15:28:35 +0300 |
| commit | d5aefcf0c141eafcd663cb473da0a1695289fb07 (patch) | |
| tree | e279c52bcfb4156793c96bd31b9c4bb1dbcdf1b0 /testing/fwupd/fix-no-systemd.patch | |
| parent | d41429e184408e6a35f789ca19296ef37559ea47 (diff) | |
| download | aports-d5aefcf0c141eafcd663cb473da0a1695289fb07.tar.bz2 aports-d5aefcf0c141eafcd663cb473da0a1695289fb07.tar.xz | |
testing/fwupd: new aport
Firmware update daemon
https://fwupd.org/
Diffstat (limited to 'testing/fwupd/fix-no-systemd.patch')
| -rw-r--r-- | testing/fwupd/fix-no-systemd.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/fwupd/fix-no-systemd.patch b/testing/fwupd/fix-no-systemd.patch new file mode 100644 index 0000000000..1c5466b05a --- /dev/null +++ b/testing/fwupd/fix-no-systemd.patch @@ -0,0 +1,49 @@ +Only in fwupd-1.2.9.new: output +diff -ru fwupd-1.2.9/src/fu-tool.c fwupd-1.2.9.new/src/fu-tool.c +--- fwupd-1.2.9/src/fu-tool.c 2019-05-20 13:17:42.000000000 +0300 ++++ fwupd-1.2.9.new/src/fu-tool.c 2019-06-07 14:50:24.112996194 +0300 +@@ -113,8 +113,10 @@ + { + g_autoptr(GError) error_local = NULL; + ++#ifdef HAVE_SYSTEMD + if (!fu_systemd_unit_stop (fu_util_get_systemd_unit (), &error_local)) + g_debug ("Failed top stop daemon: %s", error_local->message); ++#endif + if (!fu_engine_load (priv->engine, flags, error)) + return FALSE; + if (fu_engine_get_tainted (priv->engine)) { +diff -ru fwupd-1.2.9/src/fu-util-common.c fwupd-1.2.9.new/src/fu-util-common.c +--- fwupd-1.2.9/src/fu-util-common.c 2019-05-20 13:17:42.000000000 +0300 ++++ fwupd-1.2.9.new/src/fu-util-common.c 2019-06-07 14:52:03.371845913 +0300 +@@ -15,7 +15,6 @@ + + #ifdef HAVE_SYSTEMD + #include "fu-systemd.h" +-#endif + + #define SYSTEMD_FWUPD_UNIT "fwupd.service" + #define SYSTEMD_SNAP_FWUPD_UNIT "snap.fwupd.fwupd.service" +@@ -61,6 +60,7 @@ + + return TRUE; + } ++#endif + + void + fu_util_print_data (const gchar *title, const gchar *msg) +diff -ru fwupd-1.2.9/src/fu-util.c fwupd-1.2.9.new/src/fu-util.c +--- fwupd-1.2.9/src/fu-util.c 2019-05-20 13:17:42.000000000 +0300 ++++ fwupd-1.2.9.new/src/fu-util.c 2019-06-07 14:53:13.841029263 +0300 +@@ -2122,7 +2122,11 @@ + if (!fu_util_prompt_for_boolean (FALSE)) + return TRUE; + } ++#ifdef HAVE_SYSTEMD + return fu_systemd_unit_stop (fu_util_get_systemd_unit (), error); ++#else ++ return TRUE; ++#endif + } + + static void |
