diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-08 10:50:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-08 10:50:14 +0100 |
commit | 3f71901f8c228f4de570abed1831ce3ee425343e (patch) | |
tree | a2dcd300d05ef8a2ec275b44a92a9d85bd3baa24 /dev-util/sysprof/files | |
parent | 12bb627384ddfd47382b9f1b6464481a58d01ebb (diff) |
gentoo resync 08.09.2018
Diffstat (limited to 'dev-util/sysprof/files')
-rw-r--r-- | dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch b/dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch new file mode 100644 index 000000000000..c83a951d846a --- /dev/null +++ b/dev-util/sysprof/files/3.28.1-fix-nosystemd-build.patch @@ -0,0 +1,51 @@ +From 28c28eb11ac1696ce08c9c90e8a7a7759bc5c50b Mon Sep 17 00:00:00 2001 +From: Christian Hergert <chergert@redhat.com> +Date: Tue, 28 Aug 2018 12:22:57 -0700 +Subject: [PATCH] kernel-symbol: respect ENABLE_POLKIT setting + +This fixes the compilation when we have sysprofd fully disabled. +That is not an ideal configuration, but keeping it working +ensures that some of the code is easy copy/paste'able in the +future for some situations. +--- + lib/symbols/sp-kernel-symbol.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/lib/symbols/sp-kernel-symbol.c b/lib/symbols/sp-kernel-symbol.c +index 8eb8087..14e026f 100644 +--- a/lib/symbols/sp-kernel-symbol.c ++++ b/lib/symbols/sp-kernel-symbol.c +@@ -18,8 +18,13 @@ + + #define G_LOG_DOMAIN "sp-kernel-symbol" + ++#include "config.h" ++ + #include <gio/gio.h> +-#include <polkit/polkit.h> ++ ++#ifdef ENABLE_POLKIT ++# include <polkit/polkit.h> ++#endif + + #include "sp-kallsyms.h" + +@@ -87,6 +92,7 @@ type_is_ignored (guint8 type) + static gboolean + authorize_proxy (GDBusConnection *conn) + { ++#ifdef ENABLE_POLKIT + PolkitSubject *subject = NULL; + GPermission *permission = NULL; + const gchar *name; +@@ -113,6 +119,7 @@ authorize_proxy (GDBusConnection *conn) + failure: + g_clear_object (&subject); + g_clear_object (&permission); ++#endif + + return FALSE; + } +-- +2.17.0 + |