[packages/lttng-modules] - fix building with 3.14.25 - rel 3

baggins baggins at pld-linux.org
Sun Nov 23 15:30:33 CET 2014


commit 109f5cff63f4636f6a5dabf04b09d2e38928d20c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 23 15:30:17 2014 +0100

    - fix building with 3.14.25
    - rel 3

 linux-3.14.25.patch | 11 +++++++++++
 lttng-modules.spec  |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/lttng-modules.spec b/lttng-modules.spec
index 4034ca8..a7e893e 100644
--- a/lttng-modules.spec
+++ b/lttng-modules.spec
@@ -20,7 +20,7 @@ exit 1
 %define		kpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%kernel_pkg ; done)
 %define		bkpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%build_kernel_pkg ; done)
 
-%define		rel	2
+%define		rel	3
 %define		pname	lttng-modules
 Summary:	LTTng 2.x kernel modules
 Summary(pl.UTF-8):	Moduły jądra LTTng 2.x
@@ -33,6 +33,7 @@ Source0:	http://lttng.org/files/lttng-modules/%{pname}-%{version}.tar.bz2
 # Source0-md5:	2d99bb7311ba92e82e3b675f0b8dee7d
 Patch0:		build.patch
 Patch1:		linux-3.17.patch
+Patch2:		linux-3.14.25.patch
 URL:		http://lttng.org/
 %if %{with dist_kernel}
 BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.38
@@ -105,6 +106,7 @@ p=`pwd`\
 %setup -q -n %{pname}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{expand:%bkpkg}
diff --git a/linux-3.14.25.patch b/linux-3.14.25.patch
new file mode 100644
index 0000000..8775540
--- /dev/null
+++ b/linux-3.14.25.patch
@@ -0,0 +1,11 @@
+--- /home/users/baggins/devel/PLD/rpm/BUILD/lttng-modules-2.5.1/instrumentation/events/lttng-module/compaction.h~	2014-10-20 22:48:47.000000000 +0200
++++ /home/users/baggins/devel/PLD/rpm/BUILD/lttng-modules-2.5.1/instrumentation/events/lttng-module/compaction.h	2014-11-23 15:28:33.501139643 +0100
+@@ -46,7 +46,7 @@
+ 	TP_ARGS(nr_scanned, nr_taken)
+ )
+ 
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) || ((LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,25)) && (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)))
+ TRACE_EVENT(mm_compaction_migratepages,
+ 
+ 	TP_PROTO(unsigned long nr_all,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lttng-modules.git/commitdiff/109f5cff63f4636f6a5dabf04b09d2e38928d20c



More information about the pld-cvs-commit mailing list