[packages/xfce4-netload-plugin] - sysctl is not used on linux and that header breaks build on x32 - rel 2
baggins
baggins at pld-linux.org
Tue Mar 31 23:16:52 CEST 2015
commit 9a8e8222cc8129e4badab53a925b1679d74e48b2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 31 23:16:32 2015 +0200
- sysctl is not used on linux and that header breaks build on x32
- rel 2
no-sysctl-on-linux.patch | 10 ++++++++++
xfce4-netload-plugin.spec | 4 +++-
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/xfce4-netload-plugin.spec b/xfce4-netload-plugin.spec
index a70f600..1f161b6 100644
--- a/xfce4-netload-plugin.spec
+++ b/xfce4-netload-plugin.spec
@@ -2,11 +2,12 @@ Summary: A netload plugin for the Xfce panel
Summary(pl.UTF-8): Wtyczka obciążanie sieci dla panelu Xfce
Name: xfce4-netload-plugin
Version: 1.2.4
-Release: 1
+Release: 2
License: GPL
Group: X11/Applications
Source0: http://archive.xfce.org/src/panel-plugins/xfce4-netload-plugin/1.2/%{name}-%{version}.tar.bz2
# Source0-md5: ce53e1135e4bff5afcd899627110bd11
+Patch0: no-sysctl-on-linux.patch
URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin
BuildRequires: autoconf
BuildRequires: automake
@@ -32,6 +33,7 @@ sieciowych na panelu.
%prep
%setup -q
+%patch0 -p1
%build
%{__intltoolize}
diff --git a/no-sysctl-on-linux.patch b/no-sysctl-on-linux.patch
new file mode 100644
index 0000000..7472c23
--- /dev/null
+++ b/no-sysctl-on-linux.patch
@@ -0,0 +1,10 @@
+--- xfce4-netload-plugin-1.2.4/panel-plugin/os.h.orig 2014-11-02 12:50:26.000000000 +0100
++++ xfce4-netload-plugin-1.2.4/panel-plugin/os.h 2015-03-31 23:15:42.249961725 +0200
+@@ -170,7 +170,6 @@
+ #elif __linux__ /* L I N U X */
+ # include <stdio.h>
+ # include <sys/param.h>
+-# include <sys/sysctl.h>
+ # include <stdlib.h>
+ # include <stdarg.h>
+ # include <unistd.h>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xfce4-netload-plugin.git/commitdiff/9a8e8222cc8129e4badab53a925b1679d74e48b2
More information about the pld-cvs-commit
mailing list