aboutsummaryrefslogtreecommitdiffstats
path: root/community/fwupd/fix-no-systemd.patch
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-09-09 23:19:22 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-09-11 15:14:41 -0300
commit3d59341e662acfc945669bec947347a2358ba60c (patch)
tree1cb5c55a62f93fb4b54035b88d8b408cf607491e /community/fwupd/fix-no-systemd.patch
parent918f3ec5e35f8ec13ee925d2e938ff01049b473c (diff)
downloadaports-3d59341e662acfc945669bec947347a2358ba60c.tar.bz2
aports-3d59341e662acfc945669bec947347a2358ba60c.tar.xz
community/fwupd: move from testing
Diffstat (limited to 'community/fwupd/fix-no-systemd.patch')
-rw-r--r--community/fwupd/fix-no-systemd.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/fwupd/fix-no-systemd.patch b/community/fwupd/fix-no-systemd.patch
new file mode 100644
index 0000000000..1c5466b05a
--- /dev/null
+++ b/community/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