[packages/sysdig] - added linux4 patch (fixes build with kernel 4.9.1+)

qboosh qboosh at pld-linux.org
Tue Jan 24 21:00:54 CET 2017


commit 1dbaede1032e52474b302f1892367d497f48f274
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 24 21:02:20 2017 +0100

    - added linux4 patch (fixes build with kernel 4.9.1+)

 sysdig-linux4.patch | 13 +++++++++++++
 sysdig.spec         |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/sysdig.spec b/sysdig.spec
index 9bbae2f..67ba167 100644
--- a/sysdig.spec
+++ b/sysdig.spec
@@ -32,6 +32,7 @@ Group:		Applications/System
 Source0:	https://github.com/draios/sysdig/archive/%{version}/%{pname}-%{version}.tar.gz
 # Source0-md5:	a8658daee5277d2a3a0bbb8381fb020f
 Patch0:		buildflags.patch
+Patch1:		%{name}-linux4.patch
 URL:		http://www.sysdig.org/
 BuildRequires:	rpmbuild(macros) >= 1.701
 BuildRequires:	cmake >= 2.8.2
@@ -162,6 +163,7 @@ Ten pakiet zawiera moduł sysdig-probe for jądra Linuksa.\
 %prep
 %setup -q -n %{pname}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
diff --git a/sysdig-linux4.patch b/sysdig-linux4.patch
new file mode 100644
index 0000000..a8a841a
--- /dev/null
+++ b/sysdig-linux4.patch
@@ -0,0 +1,13 @@
+--- sysdig-0.13.0/driver/main.c.orig	2016-12-20 16:58:06.000000000 +0100
++++ sysdig-0.13.0/driver/main.c	2017-01-24 20:56:10.452973281 +0100
+@@ -1737,8 +1737,10 @@
+ 	}
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 1)
+ int __access_remote_vm(struct task_struct *t, struct mm_struct *mm, unsigned long addr,
+ 		       void *buf, int len, int write);
++#endif
+ 
+ TRACEPOINT_PROBE(syscall_procexit_probe, struct task_struct *p)
+ {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sysdig.git/commitdiff/1dbaede1032e52474b302f1892367d497f48f274



More information about the pld-cvs-commit mailing list