From fba0e1fdffb6ff6e813872369696b7cb07450e0e Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 20 Feb 2013 20:15:24 +0100 Subject: [PATCH] Fix the build --- ...tem-monitor-3.7.90-fix-systemd-build.patch | 28 +++++++++++++++++++ gnome-system-monitor.spec | 5 ++++ 2 files changed, 33 insertions(+) create mode 100644 gnome-system-monitor-3.7.90-fix-systemd-build.patch diff --git a/gnome-system-monitor-3.7.90-fix-systemd-build.patch b/gnome-system-monitor-3.7.90-fix-systemd-build.patch new file mode 100644 index 0000000..202d1db --- /dev/null +++ b/gnome-system-monitor-3.7.90-fix-systemd-build.patch @@ -0,0 +1,28 @@ +From 05bb65268c8f37da220c72bd3e8fb4f3edd484b6 Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Wed, 20 Feb 2013 20:07:36 +0100 +Subject: [PATCH] Add missing include when built with systemd support + +https://bugzilla.gnome.org/show_bug.cgi?id=694314 +--- + src/procman-app.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/procman-app.cpp b/src/procman-app.cpp +index 2aa1de4..587ec1f 100644 +--- a/src/procman-app.cpp ++++ b/src/procman-app.cpp +@@ -4,6 +4,10 @@ + #include + #include + ++#ifdef HAVE_SYSTEMD ++#include ++#endif ++ + #include "procman-app.h" + #include "interface.h" + #include "proctable.h" +-- +1.8.1.4 + diff --git a/gnome-system-monitor.spec b/gnome-system-monitor.spec index f504ff4..f8eae27 100644 --- a/gnome-system-monitor.spec +++ b/gnome-system-monitor.spec @@ -17,6 +17,10 @@ URL: http://www.gnome.org/ #VCS: git:git://git.gnome.org/gnome-system-monitor Source: http://download.gnome.org/sources/gnome-system-monitor/3.7/%{name}-%{version}.tar.xz +# Fix the --enable-systemd build +# https://bugzilla.gnome.org/show_bug.cgi?id=694314 +Patch0: gnome-system-monitor-3.7.90-fix-systemd-build.patch + BuildRequires: libgtop2-devel >= %{libgtop2_version} BuildRequires: libwnck3-devel >= %{libwnck_version} BuildRequires: gtk3-devel @@ -40,6 +44,7 @@ such as CPU and memory. %prep %setup -q +%patch0 -p1 -b .systemd %build %configure --enable-systemd