]> git.pld-linux.org Git - packages/sysdig.git/commitdiff
- added linux4 patch (fixes build with kernel 4.9.1+)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 24 Jan 2017 20:02:20 +0000 (21:02 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 24 Jan 2017 20:02:20 +0000 (21:02 +0100)
sysdig-linux4.patch [new file with mode: 0644]
sysdig.spec

diff --git a/sysdig-linux4.patch b/sysdig-linux4.patch
new file mode 100644 (file)
index 0000000..a8a841a
--- /dev/null
@@ -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)
+ {
index 9bbae2f83ded5ee1d2c268e309ec517470e385c9..67ba167140dfc9645305d700864844b410a30b08 100644 (file)
@@ -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
This page took 0.051822 seconds and 4 git commands to generate.