Fix the build
This commit is contained in:
parent
aa448250fa
commit
fba0e1fdff
28
gnome-system-monitor-3.7.90-fix-systemd-build.patch
Normal file
28
gnome-system-monitor-3.7.90-fix-systemd-build.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 05bb65268c8f37da220c72bd3e8fb4f3edd484b6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kalev Lember <kalevlember@gmail.com>
|
||||||
|
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 <glibtop.h>
|
||||||
|
#include <glibtop/close.h>
|
||||||
|
|
||||||
|
+#ifdef HAVE_SYSTEMD
|
||||||
|
+#include <systemd/sd-daemon.h>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include "procman-app.h"
|
||||||
|
#include "interface.h"
|
||||||
|
#include "proctable.h"
|
||||||
|
--
|
||||||
|
1.8.1.4
|
||||||
|
|
@ -17,6 +17,10 @@ URL: http://www.gnome.org/
|
|||||||
#VCS: git:git://git.gnome.org/gnome-system-monitor
|
#VCS: git:git://git.gnome.org/gnome-system-monitor
|
||||||
Source: http://download.gnome.org/sources/gnome-system-monitor/3.7/%{name}-%{version}.tar.xz
|
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: libgtop2-devel >= %{libgtop2_version}
|
||||||
BuildRequires: libwnck3-devel >= %{libwnck_version}
|
BuildRequires: libwnck3-devel >= %{libwnck_version}
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
@ -40,6 +44,7 @@ such as CPU and memory.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .systemd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-systemd
|
%configure --enable-systemd
|
||||||
|
Loading…
Reference in New Issue
Block a user