[packages/sysdig] - partial fix for kernel 5.1

baggins baggins at pld-linux.org
Tue May 7 21:33:39 CEST 2019


commit 912b01b040e6bb913c391c45c05b838419a3e482
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue May 7 21:33:23 2019 +0200

    - partial fix for kernel 5.1

 kernel-5.1.patch | 12 ++++++++++++
 sysdig.spec      |  2 ++
 2 files changed, 14 insertions(+)
---
diff --git a/sysdig.spec b/sysdig.spec
index bbd955d..f1666d0 100644
--- a/sysdig.spec
+++ b/sysdig.spec
@@ -35,6 +35,7 @@ Group:		Applications/System
 Source0:	https://github.com/draios/sysdig/archive/%{version}/%{pname}-%{version}.tar.gz
 # Source0-md5:	ea98fc19fea18f02651a7955d069dcf1
 Patch0:		kernel-5.0.patch
+Patch1:		kernel-5.1.patch
 URL:		http://www.sysdig.org/
 BuildRequires:	rpmbuild(macros) >= 1.701
 BuildRequires:	cmake >= 2.8.2
@@ -161,6 +162,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/kernel-5.1.patch b/kernel-5.1.patch
new file mode 100644
index 0000000..cd77c74
--- /dev/null
+++ b/kernel-5.1.patch
@@ -0,0 +1,12 @@
+--- sysdig-0.24.2/driver/ppm_flag_helpers.h~	2018-12-21 21:38:44.000000000 +0100
++++ sysdig-0.24.2/driver/ppm_flag_helpers.h	2019-05-07 19:25:30.678391028 +0200
+@@ -13,6 +13,9 @@
+ #include <asm/mman.h>
+ #include <linux/futex.h>
+ #include <linux/ptrace.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++#include <linux/mman.h>
++#endif
+ 
+ #include "ppm.h"
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sysdig.git/commitdiff/912b01b040e6bb913c391c45c05b838419a3e482



More information about the pld-cvs-commit mailing list